Fading Text

This applet allows the user to define separate messages that 'fade in' from the background color to a new color. Each message may have a distinct color, URL, and targeted browser frame associated with it.

Downloading

The applet may be downloaded for free by clicking on the TAR-file link below (read the FAQ if you're not sure what to do with a TAR file). The FAQ also has step by step instructions on how to embed an applet into your own webpage.

FadingText1.tar

Once unTARed, you should find the following classes (plus a '.jar' file if you want to use the archive= attribute in the <applet> tag):

Parameters

Below are descriptions of all the parameters you may use to customize the applets to your webpages. Be sure to enclose any parameters that contain white space in double-quotation marks. Most parameters have default values in case you do not specify your own values, but the first two parameters (AUTHOR and COPYRIGHT) are necessary. If you are not sure how to incorporate an applet into a webpage (with its parameter names and values), looks at the source of this webpage and the applet embedded for an example, or read the FAQ page.

  • AUTHOR: This parameter must appear exactly as follows:
    <param name=AUTHOR value="Eric Harshbarger, http://www.ericharshbarger.org">
    

  • COPYRIGHT: This parameter must appear exactly as follows:
    
    <param name=COPYRIGHT value="FadingText applet, Copyright 1999, Eric Harshbarger">
    

  • BGCOLOR: This parameter indicates the background color of the applet. Consult the FAQ page if you are unsure what format to use for the parameter's value.

  • FGCOLOR: This parameter indicates the foreground color of the applet. Consult the FAQ page if you are unsure what format to use for the parameter's value.

  • FONTNAME: This value indicates the fontface used by the applet. Java1.0.2 has the following values from which to choose (must be spelled exactly): TimesRoman, Dialog, Courier, Helvetica, DialogInput, Symbol.

  • FONTSIZE: This value indicates the size of the font used by the applet.

  • FONTSTYLE: This value indicates the style of the font used by the applet. The value should be one of the following: plain, bold, italic, bolditalic.

  • TEXT.#: Multiple parameters which must start at TEXT.0 and continue successively (TEXT.1, TEXT.2...). Values should be the formatted in the following way:
    "This is the message\with a LINEBREAK. | message_color | http://www.url.com/ | target_frame"
    
    "This example omits the 'message_color' argument. | | http://www.yahoo.com | _self"
    
    You may omit values, but be sure to leave a blank space holder between the '|' symbols. The separating character may be changed with the DELIMITER parameter. If message_color is omitted, the message will default to FGCOLOR.

  • ALIGN: How the applet should align the lines of the message: 'left', 'right', or 'center' (the default);

  • VALIGN: How the applet should vertically align the lines of the message: 'top', 'bottom', or 'center' (the default);

  • CYCLES: The number of times ALL of the messages will be cycled through. A value of '0' means infinite looping.

  • LINEBREAK: This parameter sets the character that will force linebreaks in the messages defined by TEXT.# and TEXTFILE parameters. The default character is the backslash, '\'.

  • DELIMITER: This parameter sets the character that separates the various arguments in the TEXT.# parameters.

  • ON.PAUSE: The number of milliseconds paused while the TEXT.# messages are at 'full color'.

  • OFF.PAUSE: The number of milliseconds paused between separate TEXT messages.

  • FADE.STEPS: The number of steps of fading for the message between the BGCOLOR and the message color (and vice versa).

  • FADE.SPEED: The number of milliseconds between fading step during the transition.



    APPLET DEPOT: INTRO - NEWS - APPLETS - DEMOS - CUSTOM - FAQ - EMAIL
    The Applet Depot and all associated applets, text, scripts, and images, Copyright © 1998-2002 by Eric Harshbarger unless otherwise noted. 'Java' is a registered trademark of Sun Microsystems Incorporated.