Home / Free Java Applets / Here

JavaScript Kit

Cut & Paste ProScroll

Credit: Slava Pestov

Description: A highly configurable, fast loading, and multi-featured text scroller. Allows the content of the scroller to be an external txt file. 



Step 1: Save the below .class file(s) into your web page directory by either clicking the files with the "shift" key depressed, or simply clicking it for IE users:


Step 2: Cut and paste the below into the webpage that will show the applet. The webpage should be in the same directory as the .class file(s):

Applet Parameters

The below table lists the parameters available to the applet in configuring it:

TEXT The text to scroll. For multi-colored text, put the following codes in:
#red# - red
#green# - green
#blue# - blue
#yellow# - yellow
#orange# - orange
#white# - white
#lightGray# - light gray
#gray# - gray
#darkGray# - dark gray
#black# - black
#cyan# - cyan
#magenta# - magenta
#pink# - pink

For example, TEXT="#blue#Hello #green#world" will scroll the word 'Hello' in blue and 'world' in green. To insert an image, place a $ sign in the place where you want it be. Then in the IMAGES parameter, specify a space separated list of image file names, in the order in which they appear in the text.
Here's the tag for an example applet that will scroll image1.gif and image2.gif:
<PARAM NAME=IMAGES VALUE="image1.gif image2.gif">

If you want an actual # or $ symbol in the text, rather than a color change or an image, insert /# and /$. If you want a /, use //.

TEXTURL The URL to fetch the text from. If an error occurs while loading the URL, the text from the TEXT parameter is used instead.
FONT The font to use for display. Default is TimesRoman.
SIZE The font size to use for display. Default is 12 point.
STYLE The font style to use for display. Valid styles are plain, bold, italic and bolditalic. Default is plain.
URL The URL to point the browser to when the user clicks on the scroller. There isn't a URL by default.
TARGET The frame to display the URL in, this is either _self, _top, _blank, or the name of a frame. Default is _self. This is only used if a URL is specified.
SPEED The speed at which to scroll. Valid values are slow, medium, and fast. Default is fast.
IMAGES See TEXT parameter info.
BGCOLOR The background color of the scroller. This is specified as a TEXT parameter-style color name. See the TEXT parameter info for a list of all the colors names. Default is black. Note that the # aren't needed, so specify something like red instead of #red#.

Copyright 1997-2014 JavaScript Kit. NO PART may be reproduced without author's permission.