.
Step 1.: You absolutely must NAME the applet in its <APPLET>
tag, thus:
<applet code="jsview.class"
NAME="George" WIDTH="300" HEIGHT="300">
Step 2.: Then exercise the jsviewDo( ) function, referenced to the
applet NAME, thus:
George.jsviewDo('image1.gif','http://www.this.com/page1.html','_new')
The example above would load image1.gif into the applet
space. When that image is clicked, it will open the page at
http://www.this.com/page1.html in a new window. Step
3.: Eliminating JavaScript errors during loading (see
JavaScript Page Preparation, above) Using the ready
variable assigned and set to false in the head and condition in the
body onload= you now "lock
out" the use of the function until the page has loaded, thus: if(ready)George.jsviewDo('image1.gif','http://www.this.com/page1.html','_new') Step
4.: Last, just attach the code above to an event or an anchor. The
provided demo html pages (which see) amply show how to do this, in detail, for just
about all of the expectable options, as follows:
Demo HTML Page |
Technique |
demo_1.html |
Clickable Thumbnail Images |
demo_2.html |
MouseOver Thumbnail Images |
demo_3.html |
Radio Buttons |
demo_4.html |
Clickable Text Links |
demo_5.html |
MouseOver Text Links |
|