The IntColor() constructor takes two Color objects-start and end-plus


The IntColor() constructor takes two Color objects-start and end-plus the number of steps between the start and end colors and the current step.
The resultant object is identical to a Color object and can be used as such. It may be convenient to think of IntColor() as just another constructor for a Color object.

The Fader object itself is similar in construction to the Alternator object


The Fader object itself is similar in construction to the Alternator object. The Fader() constructor takes a beginning BodyColor object (bodyA), an ending BodyColor object (bodyB), and a text string containing the HTML and text to be displayed.
In addition, the Fader() constructor takes the number of steps to be used in the transition from the beginning colors to the ending colors.

The toString() method, FaderString(), is a bit more complex


The toString() method, FaderString(), is a bit more complex than its Alternator counterpart. It creates a temporary BodyColor object, and populates it with IntColor objects for each color attribute that is present in both the beginning and ending BodyColor objects. It then increments the current step.
When all steps have been completed, it resets the current step to zero, so the object can be reused. It returns the specified text, along with an embedded BODY tag generated from the temporary BodyColor object.

When creating events for Fader objects, it’s important to remember


When creating events for Fader objects, it’s important to remember that the number of loops specified for the event should normally be the same as the number of steps in the fade.
If you specify a smaller number of loops, you’ll get an incomplete fade; specify a larger number, and the fade will start over with the initial color.

You have probably seen dozens of pages with a scrolling text ticker


You have probably seen dozens of pages with a scrolling text ticker down at the bottom in the status area. Besides being hard to read, these tend to block out the usual status messages associated with cursor actions.
The Java applet marquees and tickers are much better, but they take awhile to load and won’t run on all platforms. However, you can enjoy the best of both worlds by creating a JavaScript marquee that’s both readable and quick to load.

The Text object is designed to mimic JavaScript strings


The Text object is designed to mimic JavaScript strings, but with some important differences. The Text object has a length property, for instance, and a substring() method.
But while the length property returns the length of the text itself, the substring() method returns the requested substring plus the HTML tags required to render the substring in the desired font, size, and color.

The Block object is used to combine two or more Text objects


The Block object is used to combine two or more Text objects, JavaScript strings, or even other Block objects in any combination. Like the Text object, the Block object mimics JavaScript string behavior. A call to its substring() method might return portions of several of its constituent objects, with all their HTML formatting intact.
The Block() constructor accepts any number of Text, string, or Block objects. These can be considered to be logically concatenated in the order specified in the argument list.

The text parameter can be a Block object, a Text object or a JavaScript string object


The text parameter can be a Block object, a Text object, or a JavaScript string object. The text produced by this object will be scrolled across the screen to create the marquee effect.
Any colors embedded in this object will override the foreground color specified in the body parameter for the corresponding section of text.

The maxlength parameter is the maximum length of the text returned by Marquee object


The maxlength parameter is the maximum length of the text returned by the Marquee object, not counting HTML formatting tags. You will need to experiment with this a bit to get the right width. A good starting point is to use the width of the marquee frame divided by ten.
So for a 400-pixel-wide window, start with 40 and then adjust as necessary. It’s okay to specify a length slightly larger than the frame width, but if you specify a much longer length, it will slow down processing and increase memory usage.

The step parameter specifies the number of characters the marquee will scroll


The step parameter specifies the number of characters the marquee will scroll each time it is invoked. You will generally want to set this to 1 or 2, or, to scroll backwards, -1 or -2.
Combined with the delay time defined for the Marquee event, the step parameter determines how fast the Marquee scrolls across the screen.