Shokwave Software, Inc. -      Web Deco Kit

The Streamer Applet

Description

The Streamer applet streams a single line of text from right to left. You may also specify the color for the text, the color of the background, a drop shadow for the text and a bevel around the box. 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,300 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 this applet in action.

By matching the background color to the page, the text shows up with no box around it. Note that moving the cursor over the streaming message shows a URL in your browser's status line. Clicking the applet message will take you to that URL.


<APPLET CODE="Streamer.class" CODEBASE="Java" 
     WIDTH=150 HEIGHT=30 ALIGN=middle>
<PARAM NAME="TextFont" VALUE="Times">
<PARAM NAME="TextSize" VALUE="18">
<PARAM NAME="TextFace" VALUE="0">
<PARAM NAME="Speed" VALUE="8">
<PARAM NAME="Bevel" VALUE="0">
<PARAM NAME="Background" VALUE=255,255,255>
<PARAM NAME="TextColor" VALUE=0,0,0>
<PARAM NAME="BTColor" VALUE=0,0,0>
<PARAM NAME="BBColor" VALUE=150,150,150>
<PARAM NAME=GoTo VALUE="http://www.anyURL.com">
<PARAM NAME="Text" VALUE="This is the Streamer applet, 
     it's very versatile.">
Sorry, your browser does <B>not</B> support 
     Java, so you can't see this applet in action.
</APPLET>
Sorry, your browser does not support Java, so you can't see this applet in action.

If you specify two different colors and a number of steps, the applet will morph between them, an effect that is a lot more pleasant than blinking text. Note that the size and style of text are different from the previous example.


<APPLET CODE="Streamer.class" CODEBASE="Java" 
     WIDTH=200 HEIGHT=40 ALIGN=middle>
<PARAM NAME="TextFont" VALUE="Arial">
<PARAM NAME="TextSize" VALUE="24">
<PARAM NAME="TextFace" VALUE="1">
<PARAM NAME="Speed" VALUE="10">
<PARAM NAME="Bevel" VALUE="2">
<PARAM NAME="Background" VALUE=200,200,0>
<PARAM NAME="TextColor" VALUE=0,0,0>
<PARAM NAME="ShadowColor" VALUE=100,100,0>
<PARAM NAME="BTColor" VALUE=100,100,0>
<PARAM NAME="BBColor" VALUE=255,255,0>
<PARAM NAME=GoTo VALUE="http://www.anyURL.com">
<PARAM NAME="Text" VALUE="Late breaking news: the 
     Web Deco Kit can help you pack lots of information into a 
     small, eye-catching space.">
Sorry, your browser does <B>not</B> support 
     Java, so you can't see this applet in action.
</APPLET>
Sorry, your browser does not support Java, so you can't see this applet in action.

If you make the Bevel parameter 0, there is no bevel. Turning the Speed parameter down makes the message easy to read, but it can get annoying waiting for it to go by. Notice that the text is always vertically centered within the applet frame.


<APPLET CODE="Streamer.class" CODEBASE="Java" 
     WIDTH=200 HEIGHT=25 ALIGN=middle>
<PARAM NAME="TextFont" VALUE="Helvetica">
<PARAM NAME="TextSize" VALUE="14">
<PARAM NAME="TextFace" VALUE="1">
<PARAM NAME="Speed" VALUE="4">
<PARAM NAME="Bevel" VALUE="0">
<PARAM NAME="Background" VALUE=200,255,255>
<PARAM NAME="TextColor" VALUE=255,0,0>
<PARAM NAME="ShadowColor" VALUE=100,100,100>
<PARAM NAME=GoTo VALUE="http://www.anyURL.com">
<PARAM NAME="Text" VALUE="Java applets add fun and visual
     interest to your web pages.">
Sorry, your browser does <B>not</B> support 
     Java, so you can't see this applet in action.
</APPLET>

Parameters

The Streamer applet takes the following parameters:

TextThe message to be displayedRequired
TextFontName of the font for the messageOptional
TextSizeSize (points) for messageOptional
TextFace0-Plain, 1-Bold, 2-ItalicOptional
BackgroundR,G,B of backgroundOptional
TextColorR,G,B of textOptional
ShadowColorR,G,B of text drop-shadowOptional
SpeedNumber of pixels message moves left each stepOptional
BevelNumber of pixels in frame bevelOptional
GoToURL to Goto when applet is clickedOptional
Outside of PARM tagsHTML for those with non-Java browsersOptional



Web Deco Kit Page     Shokwave Home Page