|
Datafile Reloading
In normal use, Zoom loads your datafile at startup, and this defines the styles, behavior and images shown by the applet. The Datafile Reloading feature makes it possible to tell Zoom to restart using a different datafile in compatible browsers. You might want to do this to display a different collection of images.You can use this feature via JavaScript, either in response to a click on an ordinary HTML link, or to some other scripting event. This is done by setting the applet's newdatafile variable to the location of the datafile, as in this example function: function loadDataFile(d)If you changed the name 'Zoom' in your HTML code, change the instances in the script code above so they match the new name you chose. You can use an absolute or relative URL for the datafile name. If you use a relative URL, note that the location of the datafile is relative to the location of the SWF file (not the location of the web page).
|