
(The coast, storm, and bridge images were taken by Chris Taylor.)
Several main things of interest/importance to SlideViewer 2.0:
The following changes were made in SlideViewer 2.1:
pic key=coast url=ca_coast7.gif page=http://java.sun.com/ target=myframe
will bring up the java.sun.com page in the frame "myframe".
If left unspecified, SlideViewer defaults the target to
"_self" to bring up the page in its own frame.
SlideViewer is completely controlled via a script file. The specification of the images to use and the transitions to go through are specified in the script. This allows for large transition sequences to be easily written and edited. Read the SlideViewer Script Description page for more information.
As a brief example of the script format, the blinking above was implemented as a loop of Appearing a black image, pausing, Appearing the normal image, and pausing again. The following script section implements the blinking shown above:
do
appear pic=black
delay 300
appear pic=interesting
delay 300
repeat times=2
Look at the script to see the entire commented script which is being performed above. The Full Example page displays the applet with descriptions of the transitions below it.
The above example is a bit abnormal since it goes through every transition, doing every direction. You may be interested to look at a more practical example.
Any errors discovered in the script file will be logged in the java console. SlideViewer also prints all lines it reads to the java console, which allows the user to see if Java has locked up SlideViewer (if it has stopped reading the file before reaching the end).
SlideViewer has the capabilities of having a page associated with each image. The URL for the image will be displayed as a "Go to" in the Status bar of the browser. Clicking on the image when the "Go to" message is displayed will take the user to the specified page. As an example, in the SlideViewer script being displayed above, clicking on the Netscape image that appears occasionally will take you to http://java.sun.com/.
There are also several keys that can be used to control the show:
The complete documentation, source, and compiled class files from SlideViewer are available in one packaged tar.gz:
SlideViewer consists of two source files (below). I wrote a modularized version in which each transition was a separate module in a different .java file, but scrapped it because it took too long to load the 20 .class files.
If there is any interest, the Java Alpha3 version is also available. The HotJava browser is necessary to see Alpha3 applets.
Last updated: March 18, 1996