Scrolling Text applet

This applet allows you to vertically scroll messages over an applet with an optional background image (for example, like movie credits at the end of a film). Messages may be defined by individual parameters or in a single TEXTFILE, and each message may have a different URL 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.

ScrollingText1.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="ScrollingText applet, Copyright 1999, Eric Harshbarger">
    

  • BACKGROUND: This parameter points to an image file that is used as a background to the applet. All the various texts of the applet will be painted on top of this image. Consult the FAQ page if you are unsure about what image formats you may use.

  • 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 is the name of the type of font used. Consult the FAQ page for more information.

  • FONTSIZE: This is the size of font used. Consult the FAQ page for more information.

  • FONTSTYLE: This is the style of font used. Consult the FAQ page for more information.

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

  • CYCLES: The number of times ALL of the messages will be cycled through.

  • 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, '\'.

  • MARGIN.LEFT: The number of minimum pixels on the left side margin of the applet. The default is 0.

  • MARGIN.RIGHT: The number of minimum pixels on the right side margin of the applet. The default is equal to MARGIN.LEFT

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

  • SCROLL.STEP: The number of vertical pixels the lines are moved during each step of scrolling (default is 2).

  • SCROLL.SPEED: The number of milliseconds between each typed letter.

  • TARGET: The targeted web browser frame for URLs spawned. The default is '_self' (the same frame the applet webpage is in). URLs are defined in the TEXT/TEXTFILE parameters.

  • TEXT.#: Multiple parameters which must start at TEXT.0 and continue successively (TEXT.1, TEXT.2...). Values should be the messages to be displayed by the applet followed by a comma (,) and the URL of the page which is spawned when the applet is clicked. For example:
    "This is the message., http://www.url.com/"
    
    If no URL is desired, use the word 'null'. Line breaks in the message maybe forced by using the LINEBREAK character. If you want to force a blank line between two paragraphs, uses a LINBREAK-space-LINEBREAK combination.

  • TEXTFILE: Path to a textfile in which each line is equivalent to another TEXT.# entry. One line per message (again, line breaks forced with LINEBREAK character). URLs are indicated after a final comma. Messages from a TEXTFILE are cumulative to any TEXT.# parameters (and come after such messages in a cycle).

    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.