| DEVELOPER TOOLS ASP Documentation Tool .NET Documentation Tool PHP Documentation Tool SQL Documentation Tool VB6 Documentation Tool Indexing Service Companion The Website Utility TECHNICAL
ARTICLES PHOTO GALLERIES TRAVEL LOG NEW STUFF POPULAR STUFF LINKS
|
Java Banner Ad Rotator AppletThis 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. Warning! Java is no longer supported by many web browsers, so consider using this JavaScript version of the banner ad rotator instead. Applet ParametersSleepTime: the number of seconds to wait before displaying next image. Example Usage
The Banner Ad shown above was incorporated into the page using the following HTML: <applet Using the Applet on your websiteTo 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. DebuggingIf 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. LimitationsThe 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. Source CodeThe source code for the Applet is available using the link below:
Legal issuesThe Java Applet has been released as 'freeware'. No technical support is available for this product. Other resources
|
| Site Map | All content is © 1995 - 2008 Brett Burridge |