Web Robot View of http://www.brettb.com/JavaBannerAdRotator.asp

Page Item Value
Title Java Banner Ad Rotator Applet
Description A freeware Java Banner Ad Rotator Applet that can be used to display a sequence of images on a web page, each hyperlinked to a different URL
Keywords java, applet, download, free, banner, ad, advert, rotator, display, displayer
Robots Meta Tag  
Page Content   HOME | ABOUT ME | BIOTECHNOLOGY | ARTICLES | TOOLS | GALLERY | CONTACT Search: Go DEVELOPER TOOLS
ASP Doc Tool
ASP.NET Doc Tool
SQL Doc Tool
Index Server Companion
The Website Utility TECHNICAL ARTICLES
ASP
ASP.NET
JavaScript
Transact SQL

PHOTO GALLERIES
Canon EOS 300D Samples
Red Arrows 2004
Living Coasts
Web Page Backgrounds
More Galleries...

NEW STUFF
SQL Color Coder
Canon EOS 300D Samples
The Website Utility
Search Engine Optimisation
Build an ASP Search Engine
My Tropical Fishtank
Savings Other New Stuff...

POPULAR STUFF
Regular Expressions
ASP Documentation Tool
Index Server ASP
JavaScript Ad Rotator

LINKS
Business Website
ASPAlliance Articles

Home JavaScript Articles

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.

Applet Parameters SleepTime : the number of seconds to wait before displaying next image.
DebugMode : include this parameter to turn on Applet debugging to the Java console.
ImageFolder : folder that contains the images.
CursorStyle : include this parameter to display a hand cursor when mouse is moved over Applet (instead of the default mouse pointer).
TargetFrame : the name of the frame in which to open the URL the Applet links to (default is same window).
Image1...10 : name of the image file name (max. 10 images can be displayed).
Hyperlink1...10 : URL that each image should link to.

Example Usage

The Banner Ad shown above was incorporated into the page using the following HTML:

applet
code= BannerAdRotator.class
name= BannerAdRotator
width= 468
height= 60 VIEWASTEXT
param name= SleepTime value= 6
param name= Image1 value= ASPDocumentationToolBannerAd3.gif
param name= Image2 value= WinnershTriangleWebSolutions_BannerAd.gif
param name= Image3 value= AmazonAd2_anim.gif
param name= Hyperlink1 value= hhttp://www.winnershtriangle.com/w/Products.ASPDocumentationTool.asp
param name= Hyperlink2 value= http://www.winnershtriangle.com/w/
param name= Hyperlink3 value= http://www.amazon.com/exec/obidos/redirect?tag=brettbcom path=subst/home/home.html
param name= CursorStyle value= hand
param name= TargetFrame value= _blank
param name= ImageFolder value= images/
/applet

Using the Applet on your website To use the Applet on your website, save the following .class file somewhere in your website: BannerAdRotator.class The Applet has been downloaded 1603 times since Thursday, April 04, 2002.

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.

Debugging 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.

Limitations 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.

Source Code The source code for the Applet is available using the link below: BannerAdRotator.java . JavaDoc generated technical documentation . Legal issues The Java Applet has been released as 'freeware'. No technical support is available for this product.

Other resources Want to help your website vistors find stuff? Then put a JavaScript Search Engine on your website! A JavaScript banner ad rotator . Sams Teach Yourself Java 2 in 21 Days, Second Edition . Start learning Java using the book that helped me on my way. Site Map

All content is © 1995 - 2006 Brett Burridge

Image Alt Tags Brettb.Com
Microsoft Certified Professional
Internal Links http://www.brettb.com/Default.asp (3 links in this page) [ Robot View of this URL ]
http://www.brettb.com/ASPDocumentationTool.asp (2 links in this page) [ Robot View of this URL ]
http://www.brettb.com/JavaScriptArticles.asp (2 links in this page) [ Robot View of this URL ]
http://www.brettb.com/js_banner_ad_rotator.asp (2 links in this page) [ Robot View of this URL ]
http://www.brettb.com/DeveloperTools.asp (2 links in this page) [ Robot View of this URL ]
http://www.brettb.com/TheWebsiteUtility.asp (2 links in this page) [ Robot View of this URL ]
http://www.brettb.com/redirector.asp (2 links in this page) [ Robot View of this URL ]
http://www.brettb.com/technicalwriting.asp [ Robot View of this URL ]
http://www.brettb.com/Website_Search_Engine_Optimisation.asp [ Robot View of this URL ]
http://www.brettb.com/SearchResults.asp [ Robot View of this URL ]
http://www.brettb.com/web.asp [ Robot View of this URL ]
http://www.brettb.com/CanonEOS300D_Gallery1.asp [ Robot View of this URL ]
http://www.brettb.com/BuildingAnASPSearchEngine.asp [ Robot View of this URL ]
http://www.brettb.com/backgrounds.asp [ Robot View of this URL ]
http://www.brettb.com/VBScriptRegularExpressions.asp [ Robot View of this URL ]
http://www.brettb.com/toc.asp [ Robot View of this URL ]
http://www.brettb.com/ASP.NETArticles.asp [ Robot View of this URL ]
http://www.brettb.com/Investments_ISAs.asp [ Robot View of this URL ]
http://www.brettb.com/TransactSQLColorCoder.asp [ Robot View of this URL ]
http://www.brettb.com/MyTropicalFishtank.asp [ Robot View of this URL ]
http://www.brettb.com/CanonEOS300D_Gallery3.asp [ Robot View of this URL ]
http://www.brettb.com/ASPWatchArticles.asp [ Robot View of this URL ]
http://www.brettb.com/Red_Arrows_2004.asp [ Robot View of this URL ]
http://www.brettb.com/BannerAdRotator_JavaDocs/index.html [ Robot View of this URL ]
http://www.brettb.com/Living_Coasts_Photos.asp [ Robot View of this URL ]
http://www.brettb.com/SQL_Help.asp [ Robot View of this URL ]
http://www.brettb.com/contact.asp [ Robot View of this URL ]
http://www.brettb.com/Biotechnology.asp [ Robot View of this URL ]
http://www.brettb.com/Gallery.asp [ Robot View of this URL ]
http://www.brettb.com/ASPNetDocumentationTool.asp [ Robot View of this URL ]
http://www.brettb.com/gallery.asp [ Robot View of this URL ]
http://www.brettb.com/what's_new.asp [ Robot View of this URL ]
http://www.brettb.com/IndexServerCompanion.asp [ Robot View of this URL ]
http://www.brettb.com/SearchingIndexServerWithASP.asp [ Robot View of this URL ]

Reporting Main Page

Report generated by The Website Utility 2.8