Typewriter Text Effect


 

 

Customizing the Applet:

Class File Name: TypeText.class
Class File Size: 4K
Notice Tag: Typewriter Text Copyright (c) 1997, OpenCube Technologies, Registered 1105

 

Below is a list of the parameters that may be used to customize the Typewriter Text Effect Java applet...

Parameter 1 must be included in the applet tag in order for the applet to work. Some 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. The Typewriter Text Effect uses the same color definition scheme as HTML. Except that the number that describes a color in this applet 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="Typewriter Text Copyright (c) 1997, OpenCube Technologies, Registered 1105"
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: Italic
param name="italic"
Value=0 or 1, 1=yes italic, 0=no italic

Parameter 5
Attribute: Bold
param name="bold"
Value=0 or 1, 1=yes bold, 0=no bold

Parameter 6
Attribute: The x offset, or Center Text
param name="xoffset"
Value=X, Where X is the horizontal distance from the left side of the applet to start the message - To automatically CENTER the applet use "-1" for the xoffset value

Parameter 7
Attribute: Font Type
param name="font"
Value=X, where x is a valid font name, (e.g. "Times New Roman")

Parameter 8
Attribute: Font Size
param name="fontsize"
Value=X, where X is the size of the message font

Parameter 9
Attribute: Speed
param name="speed"
Value=X, where X is the length of time in milliseconds for the next letter to appear. Usually 100 - 500 works well.

Parameter 10
Attribute: Message Delay
param name="delay"
Value=X, where X is the length of time in milliseconds for the message to pause once completed. (default is "2000" or 2 seconds)

Parameter 11
Attribute: Message
param name="message"
value=X, where X is the message to be displayed


Typewriter Text Effetc, � 1996, OpenCube Technologies