Site hosted by Angelfire.com: Build your free website today!
Java Technology Home Page
Downloads, APIs, Documentation
Java Developer Connection
Docs, Tutorials, Tech Articles, Training
Online Support
Community Discussion
News & Events from Everywhere
Products from Everywhere
How Java Technology is Used Worldwide
A-Z Index

The Source for Java Technology

ADBANNER APPLET
Open Studio | Adding Applets | Freebie Applets | Resources
What Is JavaTM | Tutorial | Java Developer Connection


The Banner applet was developed for the JavaOneSM '98 co-sponsor page. The media co-sponsors had to be presented on a rotating banner which could receive a click-through to the advertiser's subscription page.

Download Now (This file contains all the applets - download only once)

The Banner applet displays a series of images in a loop. If an image is clicked, the browser loads a specified url.

It has the following parameters:

bgcolor The background color of the applet in RGB hexadecimal.
delay The delay between frames in milliseconds.
itemN A "|" delmited string where the first item is an image URL, and the second is a URL to load if the image is clicked. N represents a value from 0 to number - 1.
length The duration in seconds for each image.
number The number of images.

For example:

<applet codebase="classes" code="JavaBanner.class" width="234" height="60" >
<param name="bgcolor" value="ffffff">
<param name="delay" value="100">
<param name="item0" value="../images/adt.gif|http://www.adtmag.com/">
<param name="item1" value="../images/dev.gif|http://www.developer.com">
<param name="item2" value="../images/dr.gif|http://www.ddj.com">
<param name="item3" value="../images/jr.gif|http://www.javareport.com/javaform_javaone.html">
<param name="item4" value="../images/jw.gif|http://www.javaworld.com/index.html?javaone">
<param name="item5" value="../images/jdj.gif|http://www.javadevelopersjournal.com">
<param name="item6" value="../images/pc.gif|http://www.zdnet.com/pcweek/ibd/main.html">
<param name="item7" value="../images/web.gif|http://www.thirdcoast.net/hallmark/wb/">
<param name="length" value="3">
<param name="number" value="8">
</applet>

This applet loads eight images. Each image is displayed for 3 seconds before it is replaced by the next image. If you click on one of the images, the browser loads a specified url. Note: the location of the images are relative to where the .class files exist.

See also: Clock | Banner | Glossary | Quote | Logo

If you have any suggestions or comments regarding the contents of this page, we welcome your feedback.


[ This page was updated: 23-Apr-99 ]

Products & APIs | Developer Connection | Docs & Training | Online Support
Community Discussion | Industry News | Solutions Marketplace | Case Studies
Feedback | Map | A-Z Index
For information, call:
(800) 786-7638
Outside the U.S. and Canada, dial your country's AT&T Direct Access Number first.
Sun Microsystems, Inc.
Copyright © 1995-99 Sun Microsystems, Inc.
All Rights Reserved. Legal Terms. Privacy Policy.