The "TextScrollerApplet.class" applet file is written with Java programming language. This is an area that I don’t know much about. Therefore this tutorial will concentrate on applet tags that are embedded in HTML files.
This homepage is designed to be viewed with Netscape(tm) 2.0 and above.
Parameter Name | remoteText |
---|---|
Possible Values | any url |
Default | none |
Description | A URL of a file containing text to be scrolled. This may be relative or absolute. |
Parameter Name | text |
---|---|
Possible Values | any string |
Default | some stuff |
Description | the text to be scrolled (remoteText will override this, unless there is an error reading from the url) |
Parameter Name | speed |
---|---|
Possible Values | 1-1000 |
Default | 10 |
Description | a relative speed adjustment (the larger the number, the faster the text) |
Parameter Name | dist(distance) |
---|---|
Possible Values | 1-100 |
Default | 5 |
Description | the number of pixels to move the text between each frame |
Parameter Name | font |
---|---|
Possible Values | font name |
Default | Times Roman |
Description | the name of the font to use for the text |
Parameter Name | size |
---|---|
Possible Values | 6-100 |
Default | 36 |
Description | the point size of the font |
Parameter Name | style |
---|---|
Possible Values | bold, italic, and plain |
Default | bold |
Description | the style of the font (can be a combination) |
Parameter Name | textColor |
---|---|
Possible Values | name or red,green,blue in numbers |
Default | blue |
Description | color of the text (can be specified as Red or 255,0,0) |
Parameter Name | backgroundColor |
---|---|
Possible Values | name or red,green, blue in numbers |
Default | white |
Description | color of the background (can be specified as Red or 255,0,0) |
Parameter Name | alignment |
---|---|
Possible Values | top, bottom, and center |
Default | center |
Description | alignment of the text vertically within the applet |
Parameter Name | audioClip |
---|---|
Possible Values | any url |
Default | none |
Description | Specifies a URL for an audio clip to be played |
Parameter Name | audioLoop |
---|---|
Possible Values | on, off |
Default | off |
Description | ON if the audio clip is to loop forever |
The following is an example of Applet tags written in a HTML file.
Copyright 1996.
<CENTER>
<APPLET CODE="TextScrollerApplet.class" WIDTH=600 HEIGHT=50>
<PARAM NAME=text VALUE="Welcome to the scrolling text page....">
<PARAM NAME=speed VALUE="10">
<PARAM NAME=dist VALUE="5">
<PARAM NAME=font VALUE="Arial">
<PARAM NAME=size VALUE="28">
<PARAM NAME=style VALUE="Bold Italic">
<PARAM NAME=alignment VALUE="Center">
<PARAM NAME=textColor VALUE="White">
<PARAM NAME=backgroundColor VALUE="Blue">
<STRONG>Your browser does not understand the HTML tag "Applet"</STRONG>
</APPLET>
</CENTER>
Learning by experimenting
You can see for yourself the resulting scrolltext by modifying and experimenting with those values.
Scrolling Text Courtesy of
Gregory S. Pogue, Toronto, Ontario, Canada. You can go to his web site at www.inforamp.net/~pogue/java/text-scroller-example.html and download "TextScrollerApplet.class" file.
If you have any suggestions or commends, please send them to me @ hxw95368@bayou.uh.edu