![]()
![]()
The Credits AppletDescription
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)
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>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>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 TextFont Name of the font for the message Optional TextSize Size (points) for message Optional TextFace 0-Plain, 1-Bold, 2-Italic Optional NumLines Number of lines to display Required Speed Number of pixels to scroll up each time. Optional Bevel Width of the bevel in pixels Optional XPos X position of left edge of text Optional Background R,G,B of background Optional TextColor R,G,B of Text Optional BTColor R,G,B of bevel top-left Optional BBColor R,G,B of bevel bottom-right Optional 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