AdBanner applet
AdBanner is an animated image panel which allows each image to have
its own associated URL. Clicking on the image loads its associated
URL into the browser frame or window.
HTML syntax:
<applet width=w height=h code=AdBanner.class>
<param name=imageArray value="img1.gif,img2.gif, ...imgn.gif">
<param name=urlArray value="http://url1/, ...http://urln">
<param name=targetWindow value="_top">
<param name=frameDelay value="5"></applet>
For best results, the width w and height h of
the applet should match the dimensions of the images, all of which should be the
same size.
The number of images need not equal the number of URLs--a
difference between the two results in an interesting pattern
of offset--but when the same number of each is provided, clicking
on an image loads its associated URL
- into the main browser window if 'targetWindow' is set
to "_top" or left blank
or
- into the specified window (or frame) if 'targetWindow' is set
to any other value
The time interval between frame changes, in integer seconds, is
indicated by the frameDelay parameter.
Source code
Back to Jay's Java Goodies