Shokwave Software, Inc. -      Web Deco Kit

The Credits Applet

Description

The Credits applet scrolls a number of lines of text upward, similar to movie credits. Parameters let you vary not only the text font and colors, but also a beveled frame around the text, the speed of the text and so on. 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.

This example scrolls three lines of text, no bevel is used and the background color is the same as the page. Note that moving the cursor over the flashing message shows a URL in your browser's status line. Clicking the flashing message will take you to that URL. Also, notice that placing the applet tags within paragraph tags with align=center has just the effect you would expect: the applet is centered.


<APPLET CODE="Credits.class" CODEBASE="Java" 
     WIDTH=150 HEIGHT=20 ALIGN=middle>
<PARAM NAME=TextFont VALUE="Arial">
<PARAM NAME=TextSize VALUE=12>
<PARAM NAME=TextFace VALUE=0>
<PARAM NAME=NumLines VALUE=3>
<PARAM NAME=Speed VALUE=1>
<PARAM NAME=Bevel VALUE=0>
<PARAM NAME=XPos VALUE=5>
<PARAM NAME=Background VALUE=255,255,255>
<PARAM NAME=TextColor VALUE=0,0,255>
<PARAM NAME=BTColor VALUE=0,0,0>
<PARAM NAME=BBColor VALUE=180,180,180>
<PARAM NAME=Line0 VALUE="Written by Rob Hafernik">
<PARAM NAME=Line1 VALUE="(C) 1996 Shokwave Software">
<PARAM NAME=Line2 VALUE="All Rights Reserved">
<PARAM NAME=GoTo VALUE="http://www.shokwave.com">
Sorry, your browser does <B>not</B> support 
     Java, so you can't see applet in action.
</APPLET>
Sorry, your browser does not support Java, so you can't see this applet in action.

This example includes beveled edges, several lines of text and a lot of color parameters. Notice that the bevel colors work as top-left and bottom-right only.


<APPLET CODE="Credits.class" CODEBASE="Java" 
    WIDTH=200 HEIGHT=30 ALIGN=middle>
<PARAM NAME=TextFont VALUE="Arial">
<PARAM NAME=TextSize VALUE=12>
<PARAM NAME=TextFace VALUE=1>
<PARAM NAME=NumLines VALUE=9>
<PARAM NAME=Speed VALUE=2>
<PARAM NAME=Bevel VALUE=2>
<PARAM NAME=XPos VALUE=5>
<PARAM NAME=Background VALUE=200,200,255>
<PARAM NAME=TextColor VALUE=0,0,0>
<PARAM NAME=BTColor VALUE=100,100,100>
<PARAM NAME=BBColor VALUE=220,220,255>
<PARAM NAME=Line0 VALUE="Mary had a little lamb">
<PARAM NAME=Line1 VALUE="whose fleece was white as snow">
<PARAM NAME=Line2 VALUE="and everywhere that Mary went">
<PARAM NAME=Line3 VALUE="the lamb was sure to go.">
<PARAM NAME=Line4 VALUE="---------------">
<PARAM NAME=Line5 VALUE="OK.  Mary had a problem.">
<PARAM NAME=Line6 VALUE="She needs your help....">
<PARAM NAME=Line7 VALUE="Call 1-800-helpmary">
<PARAM NAME=Line8 VALUE="... today.">
<PARAM NAME=GoTo VALUE="http://www.shokwave.com">
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.

By flipping the bevel around, you can make an area look raised instead of sunken.


<APPLET CODE="Credits.class" CODEBASE="Java" 
     WIDTH=200 HEIGHT=30 ALIGN=middle>
<PARAM NAME=TextFont VALUE="Arial">
<PARAM NAME=TextSize VALUE=18>
<PARAM NAME=TextFace VALUE=1>
<PARAM NAME=NumLines VALUE=4>
<PARAM NAME=Speed VALUE=4>
<PARAM NAME=Bevel VALUE=2>
<PARAM NAME=XPos VALUE=5>
<PARAM NAME=Background VALUE=128,128,128>
<PARAM NAME=TextColor VALUE=255,255,255>
<PARAM NAME=BTColor VALUE=215,215,215>
<PARAM NAME=BBColor VALUE=50,50,50>
<PARAM NAME=Line0 VALUE="Now is the time">
<PARAM NAME=Line1 VALUE="for all good persons">
<PARAM NAME=Line2 VALUE="to come to the aid">
<PARAM NAME=Line3 VALUE="of their party.">
<PARAM NAME=GoTo VALUE="http://www.shokwave.com">
Sorry, your browser does <B>not</B> support 
     Java, so you can't see this applet in action.
</APPLET>

Parameters

The Credits applet takes the following parameters:

Line(N)Where N is the number of the line of text to be displayed (starting with 0 - Line0, Line1, Line2, etc)Required
TextFontName of the font for the messageOptional
TextSizeSize (points) for messageOptional
TextFace0-Plain, 1-Bold, 2-ItalicOptional
NumLinesNumber of lines to displayRequired
SpeedNumber of pixels to scroll up each time.Optional
BevelWidth of the bevel in pixelsOptional
XPosX position of left edge of textOptional
BackgroundR,G,B of backgroundOptional
TextColorR,G,B of TextOptional
BTColorR,G,B of bevel top-leftOptional
BBColorR,G,B of bevel bottom-rightOptional
GoToURL to Goto when applet is clickedOptional
Outside of PARM tagsHTML for those with non-Java browsersOptional



Web Deco Kit Page     Shokwave Home Page