![]()
![]()
The BannerScroll AppletDescription
The BannerScroll applet scrolls the text you specify though a background image. It is most usful in creating "banner" type advertisements or small, informative fields. BannerScroll is written so that it will look for the image it loads inside the same folder the applet loads from. By varying the parameters, you can create a variety of effects. You may optionally supply a URL that the applet will tell the browser to load when clicked. Size: about 4,700 bytes
Examples
(for each example on the left, the HTML that generated it is on the right)
Sorry, your browser does not support Java, so you can't see applet in action.
By keeping the graphic background in tune with the page background, the image blends into the rest of the page. Note that moving the cursor over the scrolling message shows a URL in your browser's status line. Clicking the scrolling message will take you to that URL. The exmaples on this page are small, to make them fit along with the HTML, but they may be much larger in normal use.
<APPLET CODE="BannerScroll.class" CODEBASE="Java"WIDTH=150 HEIGHT=50 ALIGN=middle><NAME="TextFont" VALUE="Arial"><NAME="TextSize" VALUE=14><NAME="TextFace" VALUE=1><NAME="XPos" VALUE=1><NAME="YPos" VALUE=33><NAME="TextWidth" VALUE=148><NAME="TextHeight" VALUE=17><NAME="Speed" VALUE=4><NAME="TextColor" VALUE=0,0,0><NAME="ShadowColor" VALUE=128,128,128><NAME="Background" VALUE=255,255,255><NAME="Text" VALUE="Partly cloudy, High 78, Low 56,20% chance evening showers"> <NAME="ImageURL" VALUE="weatherpt.gif"> <NAME=GoTo VALUE="http://www.anyURL.com"> Sorry, your browser does <B>not</B>support J ava, so you can't see this applet in action.</APPLET>Sorry, your browser does not support Java, so you can't see applet in action.
There are several options for displaying static text and scrolling text on top of a GIF.
<APPLET CODE="BannerScroll.class; CODEBASE="Java"WIDTH=100 HEIGHT=22 ALIGN=middle><NAME=Text VALUE="Morphing"><NAME=TextFont VALUE="Times"><NAME=TextSize VALUE=18><NAME=TextFace VALUE=1><NAME=TextColor1 VALUE=0,0,255><NAME=TextColor2 VALUE=255,0,0><NAME=Steps VALUE=6><NAME=Delay VALUE=100><NAME=Background VALUE=255,255,255><NAME=XPos VALUE=5><NAME=YPos VALUE=18><NAME=GoTo VALUE="http://www.anyURL.com">Sorry, your browser does <B>not</B>supportJava, so you can't see this applet in action.
</APPLET>Sorry, your browser does not support Java, so you can't see applet in action.
Of course, it's also easy to do the standard, beveled banner ad with this applet. There's no reason the dropshadow can't be darker than the text. Of course, it takes more than Java to give your ad taste... but that's another matter. Note: all of the examples used on these pages were just made up, any similarities to actual businesses or persons is accidental.
<APPLET CODE="BannerScroll.class" CODEBASE="Java" WIDTH=180 HEIGHT=100 ALIGN=middle><NAME="TextFont" VALUE="Arial"><NAME="TextSize" VALUE=24><NAME="TextFace" VALUE=1><NAME="XPos" VALUE=45> <NAME="YPos" VALUE=50><NAME="TextWidth" VALUE=117><NAME="TextHeight" VALUE=32> <NAME="Speed" VALUE=8><NAME="TextColor" VALUE=255,55,0> <NAME="Background" VALUE=128,128,128><NAME="Text" VALUE="We'll have youback on the street before the ink of your fingerprints is dry!"><NAME="ImageURL" VALUE="lbb.gif"><NAME=GoTo VALUE="http://www.anyURL.com">Sorry, your browser does <B>not</B>support Java, so you can't see this applet in action.</APPLET>Parameters
The BannerScroll applet takes the following parameters:
Text The message to be displayed Required TextFont Name of the font for the message Optional TextSize Size (points) for message Optional TextFace 0-Plain, 1-Bold, 2-Italic Optional TextColor R,G,B of text Optional ShadowColor R,G,B of text drop-shadow Optional Background R,G,B of background Optional Speed Pixels to move left each step Optional XPos X position of top-left of text box Optional YPos Y position of top-left of text box Optinoal TextWidth width of text box Optional TextHeight height of text box Optinoal GoTo URL to Goto when applet is clicked Optional Outside of PARM tags HTML for those with non-Java browsers Optional
Web Deco Kit Page Shokwave Home Page