The ScrollColor Java applet displays a user
supplied text string in a rainbow of colors on a black
background. It allows selection of the font name and style as
well as the speed of the color rotation. The font size is
dynamically adjusted to best fit the applet display window. You
can also define the width and color of a 3D border around the
applet window. Here is an example of the ScrollColor applet:
The HTML applet tag defines the width and
height of the applet window. In addition, the ScrollColor applet
is controlled through six optional HTML parameters.
- usertext - Defines the
text that is displayed in the applet window. It defaults
to the copyright message if none is supplied.
- fontname -Defines the
name of the font used to display the text. It defaults to
"Serif" if none is supplied.
- fontstyle - Defines the
style of the font used to display the text. It defaults
to "bold" if none is supplied. Allowed values:
plain, bold, italic or bold-italic.
- sleeptime - Defines the
number of milliseconds to sleep between increments of
color movement. It defaults to 100 if none is supplied or
if the supplied value is not in the range of 10 through
- 3DBdrWdth - Defines the
width in pixels of the 3D border around the display
window. It defaults to 0 if none is supplied or if the
supplied value is not in the range of 0 through 10.
- bdrRGB - Defines the 3D
border color. The format is: nnn nnn nnn - where nnn may
range from 0 through 255. It defaults 0 255 255 (cyan) if
none is supplied or if the supplied value is out of
If you are running a current browser, check out
the interactive capabilities of ScrollColor. These capabilities allow you to dynamically adjust
parameters until you obtain the look that you want. Then all you
have to do is plug the parameters into your HTML file.
This SBSW.COM page has been optimized for printing.
Web Content Copyright © 1997 - 2010 Stuart Baker Software. All rights reserved.