Personal tools
You are here: Home / Members / gdew004 / test
Navigation
Log in


Forgot your password?
 

test

While GUIS for zinc applications are usually specified with a xul file, for very simple applications you can use a plain html file. You still need a javascript file but your xul file can be replaced with something like:

<pre>
<html> <head> </head> <body onload="init();" onunload = "//Work around bug in ATI back/forward not caching." />

&lt;disabled script type="application/x-javascript" src="chrome://zinc/content/zinc.js"/&gt; &lt;disabled script type="application/x-javascript" src="example_a1_html.js"/&gt;

<embed id="generalplugin" height=512 width=512 type="application/x-zinc-plugin"
pluginspage="https://addons.mozilla.org/en-US/firefox/addon/5764">

</embed>

</body> </html>

</pre>

Note that the id for the plugin can be whatever you choose. You will use this id from within your javascript to fetch the plugin so that the scene can be created.