Applet Tag |
The applet tag is an HTML tag that you will add to your webpages to include the demo player.
Here is an example:
codebase: The URL of the directory that contains the applet code, namely: demoscripter.zip. ("." means use the same directory as the HTML page.)
archive: The file containing the DemoScripter player code (do not change)
code: The Java class name of the DeomScripter applet (do not change)
width: The width of the applet. For best results, set equal to your images' width
height: The height of the applet. If you are not showing the section 'quick links' or showing them at the 'top', set equal to your images' height.
Otherwise, you may want to include some extra padding so that the section links don't cover up your screens.
(You can set the exact height of the section links using the <section_nav_height> tag within <demo>)
demo_script param: The location of the demo's xml script (relative to the HTML file; Make sure the demo script is somewhere in the same sub-directory as 'demoscripter.zip', or you may get "Security Errors" during local testing.)
license_code_file param: The location of the license code, supplied after you purchase (relative to the HTML file; Make sure the license file is somewhere in the same sub-directory as 'demoscripter.zip', or you may get "Security Errors" during local testing.)
Some additonal optional applet parameters:
align: The alignment of this applet relative to the other text on screen. The possible values of this attribute are the same as those for the IMG tag: left, right, top, texttop, middle, absmiddle, baseline, bottom, absbottom
vspace: The number of margin pixels above and below this applet
hspace: The number of margin pixels to the left and right of this applet
Helpful HTML hints:
How do I add a border around the demo?
Put a table border around the applet tag. Example:
Use Javascipt to open a popup window. Example:
<applet codebase="."
archive="demoscripter.zip"
code="com.innovive.demoscripter.DemoApplet"
width=968
height=570>
<param name=demo_script value="demo_scripts/demo_script.xml">
<param name=license_code_file value="license_code.txt">
(The demo can not start because your browser not Java-enabled.)
</applet>
(For more applet tag examples, view the HTML files within the example demos)
Parameters explained: <table cellspacing=0 cellpadding=0 border=1><tr><td>
[APPLET TAG GOES HERE]
</td></tr></table>
How do I show the demo in a new window?
<script>
function uniPop(href,width,height,x,y,toolbar,scrollbars,resizable,status) {
var theParam = "width=" +width+
",height=" +height+
",toolbar=" +toolbar+
",scrollbars=" +scrollbars+
",resizable=" +resizable+
",status=" +status+
",screenX=1,screenY=1,top=" + y + ",left=" + x;
var thePopup = window.open(href,null,theParam);
}
</script>
<a href="javascript:uniPop('./demo.html',600,600,200,50,'no','yes','no','yes')">
Start Demo</a>
The window size (width & height) should be about the same size as your applet.
Next