adSpace
Applet Name: "adSpace"
Import(s): java.applet, java.awt, java.io, java.lang, java.net, java.util
Feature(s): image, audio, animation, network, mouse
Source: adSpace.java
Author: David Nicol, Calum
Smeaton
The adSpace emulates a football stadium style rotating advertising hoarding. It downloads a series of image files, and resizes them to create a rotating animation. Clicking the mouse over the current image follows the hypertext link associated with that image. The images and associated URLs are specified in a configuration file, which is downloaded and parsed by the applet. The applet parameters are:
adList: The URL to the configuration file.
pause: The length of time (in milliseconds) to display each image
deltaY: The pixel length between each frame in the rotation
animation scrollPause: The length of time (in milliseconds) between
each frame in the rotation animation.
numFrames: The number of frames in each rotation animation (takes precedence
of the deltaY parameter)
aniAudio: The URL to an audio file used during rotation animation
The config file format is: { URL to image1 URL image1 should link to when clicked [URL to audio1 file] } { URL to image2 URL image2 should link to when clicked [URL to audio2 file] } etc. Usage example: <applet code="adSpace.class" width=468 height=60&lg <param name=adList value="adlist.txt"&lg <param name=pause value=4000&lg <param name=deltaY value=2&lg <param name=scrollPause value=40&lg <param name=aniAudio value="danger.au"&lg </applet&lg