Transact SQL Other Articles Software Reviews
Java Banner Ad Rotator Applet
This simple Java Applet can be used to display a selection of images, each of which is linked to a different URL. Each of the images is shown after a specified amount of time.
SleepTime: the number of seconds to wait before displaying next image.
The Banner Ad shown above was incorporated into the page using the following HTML:
Using the Applet on your website
To use the Applet on your website, save the following .class file somewhere in your website:
Once you have done this, modify the Applet's parameters as shown above. Don't forget to change the Applet's width and height to the same dimensions as your images.
If the Applet does not appear to be working, then consider using the debug mode. This is activated by using the DebugMode parameter, e.g.
<param name="DebugMode" value="1">
The Applet will then output debugging information to the Java Console. On Netscape 4, the console is made visible using the menu command Communicator > Tools > Java Console.
The Applet has to download each of the images over the Internet, so the fewer images you use the better performance the user will see. There is a hard coded limit of 10 images per Applet.
Although the Applet can display GIF images in animated GIF format, not all animations work particularly well.
The source code for the Applet is available using the link below:
The Java Applet has been released as 'freeware'. No technical support is available for this product.