Quote: It is an honour for a man to cease from strife: but every fool will be meddling. -- Proverbs 20:3
Applet: Coolbanner
|
APPLET COOLBANNER
Brought to you by reystar.com
OVERVIEW:
This applet takes any number of banners (468x60) and rotates them in order
using different cool transitional effects to hide one and display the next. The
user of this applet can set the number of banners to be rotated, the speed of the
transitional effect, the time for a banner to remain shown before the next rotation,
whether to display a border or not when banner is selected, and if a border is used,
the border color.
ZIP FILE CONTENT:
Download file coolbanner.zip contains:
- coolbanner.html -- This html file.
- coolbanner.class -- Main class file.
- coolbanner&imageInfo -- Secondary class file.
- Sample gif files -- Files to demostrate the applet's functionality.
SAMPLE HTML CODE:
<HTML>
<BODY>
<CENTER>
<APPLET CODE="coolbanner.class" WIDTH="468" HEIGHT="60">
<PARAM NAME="img1" VALUE="banner0.gif">
<PARAM NAME="link1" VALUE="http://www.adlandpro.com/partner.asp?ref=19269&pg=main">
<PARAM NAME="img2" VALUE="banner1.gif">
<PARAM NAME="link2" VALUE="http://www.webshots.com/webshots.cgi?cashclub|reystar">
<PARAM NAME="img3" VALUE="banner3.gif">
<PARAM NAME="link3" VALUE="http://friendfinder.com/go/b33813">
<PARAM NAME="speed" VALUE="1">
<PARAM NAME="delay" VALUE="10">
<PARAM NAME="useborder" VALUE="Y">
<PARAM NAME="bordercolor" VALUE="2">
<PARAM NAME="bordercolorred" VALUE="255">
<PARAM NAME="bordercolorgreen" VALUE="255">
<PARAM NAME="bordercolorblue" VALUE="255">
</APPLET>
</CENTER>
</BODY>
</HTML>
PARAMETERS:
- img1 ... img<n> -- Image files to be rotated. Note: Image
files must reside on your server.
- link1 ... link<n> -- URLs to be loaded when a banner is clicked.
- speed -- How fast a transitional effect will take place. Normally
it should remain as 1.
- delay -- How long a banner should remain visible before it is replaced
by another one. The code above has it set to 10 for demo purposes only.
- useborder -- 'Y' if you want to display a thin border for the banners
when the cursor is moved over. 'N' otherwise.
- bordercolor -- If a border is used and you want to use one of the
predefined colors as listed below, set this field to the appropriate code. Otherwise
leave it blank.
white = 0
black = 1
blue = 2
green = 3
cyan = 4
red = 5
magenta = 6
brown = 7
lightGray = 8
darkGray = 9
brightBlue = 10
brightGreen = 11
brightCyan = 12
brightRed = 13
pink = 14
yellow = 15
- bordercolorred -- If you want to define your own color, set this
field to the red component of the color you want to use (0 - 255)
- bordercolorgreen -- If you want to define your own color, set this
field to the green component of the color you want to use (0 - 255)
- bordercolorblue -- If you want to define your own color, set this
field to the blue component of the color you want to use (0 - 255)
NOTES:
If you want to use less or more banners, simply remove or add the <PARAM
NAME=Img* and <PARAM NAME=link* in your html code.
Click Here to Download
Coolbanner

|
|
|