Class File Name: SpeedText.class
Class File Size: 6K
Notice Tag: Speedy Messages, (c) 1997
OpenCube Technologies, Registered 2862Parameter 1 must be included in the
applet tag in order for the Speedy Messages Java applet
to work. Most of the parameters will default if you fail
to define them, however we suggest you include all the
parameters so the applet is ensured to work correctly.
Usually the easiest thing to do is cut and paste the
applet tag info used in the sample and modify it to fit
your web page.
Color definition. Speedy
Messages uses the same color definition scheme as HTML.
Except that the number that describes a color in Smooth
Scroll must be specified in decimal as an integer between
0 and 16777215 decimal (0 and FFFFFF hex). Reading from
left to right, the red component of the color is
contained within the first FF component of the hex
number, the green component is in the second FF
component, and the blue is in the last FF component. This
may sound daunting, but if you have a calculator that can
convert between the two formats it isn't. (The calculator
that is shipped with Windows95 has this function.)
Color Encoding. Just pick
a red component between decimal 0 and 255. Convert it to
its hexadecimal equivalent (e.g., 255 = FF), this is now
the first component of the three component hexadecimal
number (i.e, FF????). Do the same with the green
(second), and blue (third) components. Then convert the
resulting hexadecimal number to decimal. Use this number
in the appropriate color related applet parameter tag.
Parameter 1
Attribute: Copyright notice.
param name="Notice"
value="Speedy Messages, (c) 1997 OpenCube
Technologies, Registered 2862"
Note: This must be included for the applet to work.
Parameter 2
Attribute: Background Color
param name="bgcolor"
Value=X, where X is a color represented by a decimal
number as described above.
Parameter 3
Attribute: Text Color
param name="textcolor"
Value=X, where X is a color represented by a decimal
number as described above.
Parameter 4
Attribute: Bold
param name="fontbold"
Value=Ture or False, True=yes bold, False=no bold
Parameter 5
Attribute: Font Type
param name="font"
Value=X, where x is a valid font name, for example
"times", "arial"
Parameter 6
Attribute: Font Size
param name="fontsize"
Value=X, where X is the size of the message font
Parameter 7
Attribute: Speed
param name="speed"
Value=X, where X is the speed of the speedy messages, 1 =
fast - higher the
number, faster the speed, usually 1 - 30 works well.
Parameter 8
Attribute: Number of Frames
param name="frames"
Value=X, Where X is the number of frames it takes for
each character to scroll into place, a suitable value
depends on the speed setting, however 10 - 100 is usually
a good range.
Parameter 9
Attribute: Delay
param name="delay"
Value=X, Where x is the delay time in milliseconds before
the next message starts scrolling into view. The default
is 2000 (2 seconds).
Parameter 10
Attribute: Accelerate Character Animations
param name="accelerate"
Value= true-accelerate, false-do not accelerate
Parameter 11
Attribute: Message
param name="desc0" - "descN"
Use "desc0" as the param name for the first
line of text to be shot into view, "desc1" for
the second, "desc2" for the third... you may
use as many messages as you wish!
value=X, where X is the message ("my message"),
make shore your messages shorter than the width of the
applet or its shore to get cut up.
Parameter 12
Attribute: Number of Message Lines
param name="desctotal"
value=X, where x is the number of message lines to be
shot into view, for example if you use, as above,
"desc0" = "hello world" and
"desc1" = "Welcome to my web page"
then numberoflines would = 2
|