# Typewriter Text Effect

Class File Name: TypeText.class, ocjwkey.class
Notice Tag: Typewriter Text Copyright (c) 1997, OpenCube Technologies, Registered (Unique Key ID#)

Information about the applet and its parameters

Required Parameters

Parameter 1 (the "notice" tag) must be included in the applet tag in order for the applet to work. Most of the parameters will default if you fail to define them, at a minimum you must include the notice tag and description parameters for you messages. Usually the easiest way to customize the applet is cut and paste the applet tag information used in the sample and modify it to fit your web page.

Defining Colors

To define a color in one of the color parameters using RGB choose a value between 0 - 255 for the red, green, and blue components separated by commas and typed out in the correct r,g,b order. Below is a sample of how a color parameter using RGB should look, the example specifies several different sample colors for the "bgcolor" parameter.

WHITE: <param name="bgcolor" value="255,255,255">
GREEN: <param name="bgcolor" value="0,255,0">
BLACK: <param name="bgcolor" value="0,0,0">
YELLOW: <param name="bgcolor" value="255,255,0">
OFF WHITE: <param name="bgcolor" value="240,239,234">

The best way to choose the exact color you are looking for without having to guess the numbers is to access your systems Color Picker. Color Pickers usually allow you to drag the mouse over a rainbow type color grid to select a color, and show you the appropriate RGB values. In windows the Color Picker is accessible through MS Paint as well as a majority of the popular Imaging and HTML Authoring Software.

The Applet Parameters

The Applet

Parameter 1
Attribute: Copyright notice.
param name="Notice"
value="Typewriter Text Copyright (c) 1997, OpenCube Technologies, Registered (Unique Key ID#)"
Note: This must be included for the applet to work.

Parameter 2
Attribute: Background Color
param name="bgcolor"
Value=r,g,b, Where r,g,b is the color to use for the background, see above for information on defining colors.
DEFAULT: white

The Typewriter Messages

Parameter 3
Attribute: Message
param name="desc0" - "descN"
value=X, where X is the message to be typed onto the screen. Use desc0 to define your first message, desc1 to define your second, etc., etc.

Parameter 4
Attribute: Text Color
param name="textcolor"
Value=r,g,b, Where r,g,b is the color to use for all messages, see above for information on defining colors.
DEFAULT: black

Parameter 5
Attribute: Message Font Size
param name="size"
value="X", Where X is the specific size for all messages.
DEFAULT: 14

Parameter 6
Attribute: Message Font Name
param name="fontface"
value="X", Where X is the name of a standard Java Font (Dialog, Helvetica, TimesRoman, Courier, Symbol)
DEFAULT: "Helvetical"

Parameter 7
Attribute: Font Style
param name="style"
value= bold, italic, bolditalic, plain
DEFAULT: plain

Parameter 8
Attribute: Center Text
param name="centertext"
Value= true or false, true = yes, center all messages. False = no, left justify all messages to the margin defined with the "xoffset" parameter
DEFAULT: false

Parameter 9
Attribute: Left Margin Width
param name="xoffset"
Value=X, Where X is the horizontal distance from the left side of the applet to start the message, This parameter is valid only if centering is turned off.
DEFAULT: 5

Parameter 10
Attribute: Bottom Margin
param name="yoffset"
Value=X, Where X is the distance from the bottom of the applet to draw the typewriter effect.
DEFAULT: 0

Animation Timing

Parameter 11
Attribute: Typewriter Delay
param name="typedelay"
Value=X, Where X is the length of time in milliseconds until the next letter to appears during the typewriter animation. Usually 25 - 500 works well.
DEFAULT: 100 (1/10th second)

Parameter 12
Attribute: Message Delay
param name="delay"
Value=X, Where X is the length of time in milliseconds for the message to pause once completely typed onto the screen.
DEFAULT: 2000 (2 seconds)

Parameter 13
Attribute: Scroll Delay
param name="scrolldelay"
Value=X, Where X is the length of time in milliseconds between each scroll frame when the text is scrolling out of view
DEFAULT: 10

The Scrolling Message

Parameter 14
Attribute: Use Scrolling
param name="scrollit"
Value= true or false, True = yes, scroll message out of view, false = no, erase messages with no transition effect
DEFAULT: true

Parameter 15
Attribute: Scroll Jump Size
param name="scrolljump"
Value= X, Where X is the distance to jump for each scroll frame. Use this parameter in conjunction with the scrolldelay parameter to precicly time the scroll.
DEFAULT: 2

Typewriter Text Effect, © 1997, OpenCube Technologies