5.1 Creating a web page

A Vivant instance can be embedded into a web page with the following bit of code:

<object type=''application/vivant'' name=''Vivant1'' width=500 height=500>
<Param Name=StateFile VALUE=''[full path to state file]''>
</object>
<Script>
Vivant1.setStateFile(''[full path to state file]'')
</Script>
Please note that ``[full path to state file]'' must fully reference a web page or a full path to a local file.

In Firefox, you can also simply open a state file in Firefox (using File... Open) and it will display it fullscreen in the Firefox window.