James Greene
Fachbüro für EDV Beratung, Systeme und Dienstleistungen
|
Copyright © 1999-2000, 2002
|
WalkingText a FREEWARE Java Applet that will display text that 'walks' across the display area, either horizontally or vertically, as you see in the examples above.
The behaviour of WalkingText.class is controlled via parameters supplies when the Applet is called.
The following <PARAM ...> parameters are recognised by WalkingText.class:
| name= | value= | Description |
| bannercount | 1 | Defines the number of texts to be displayed |
| vertical | "false" | Determines if the text scrolls horizontally or vertically. "true", "yes", or a non-zero value is interpreted as true. "false", "no" or zero is false. Default is false. |
| valign | "-1", "0", or "1" |
If vertical="true", then valign="-1" causes the text to be left-aligned. valign="0" causes the text to be centered. (This is the default behaviour) valign="1" causes the text to be right-aligned. |
| textn | "text to be displayed" | Defines the text to be displayed. text 1 = the first text, text 2 the second, ... |
| linebreak | "|" | If vertical scrolling is used, this character defines where the text string(s) should be wrapped onto the next line. Each text may contain up to 24 line breaks. |
| fontn | font name | Defines the font for text n. This can be a logical font name or a font face name. A logical name must be either: Dialog, DialogInput, Monospaced, Serif, SansSerif, or Symbol. |
| formatn | "bold" | Defines the format for text n. "b" = bold, "i" = italic, "bi" = bold-italic |
| colorn | "darkred" | Defines the color for text n. May be a RGB definition, e.g. "#C0C0C0" or one of the following color names: black, darkgray, gray, lightgray, white, darkred, magenta, red, pink, orange, yellow, green, darkgreen, darkblue, blue, cyan. |
| shadown | "darkred" | Defines the text shadow color for text n. See color for the supported colors. |
| hrefn | "somepage.html" | Defines the web page to open when the user clicks on text n. |
| targetframen | "_self", "_top", "someframe" | Defines the frame in which to display the selected web page. n. |
| sizen | 16 | Defines the size of the font to be displayed (in pixels). |
| speed | 2 | Defines how fast the text will scroll. Try 1 to 2 for vertical scrolling, and 6 to 8 for horizontal scrolling texts. |
| background | "white" | Defines the background color for the Applet window. See color for the supported colors. |
| border | 1 | Defines if the display has a border: 0 =no border, 1 =simple border, 2 =3D raised border, 3 =3D sunken border, 4 =rounded rectangle |
| bordercolor | "gray" | Defines the color of the border. See color for the supported colors. |
| highlight | "lightgray" | Defines the color of the border when the mouse is over the Applet window. See color for the supported colors. |
| bgimage | "imagefile.gif" | Defines the background image for the Applet window. |
| bgimagemode | 0, 1 or 2 | Backround image mode: 0=centered, 1=scaled, 2=tiled |
| xmargin | 2 | Width of the X-axis margin (how far the text is clipped from the border). |
| ymargin | 2 | Width of the Y-axis margin (how far the text is clipped from the border). |
Note: Defining any of the values without the n suffix defines the 'default' value.
The simplest form of WalkingText is illustrated below:
This simple example is created with the following code:
<applet code="WalkingText.class" width=250 height=28>
<param name=bannercount value=1>
<param name=text1 value="A simple example of WalkingText in action.">
<param name=border value=1>
</applet>
WalkingText.class is Copyright © 1999-2000, 2002 by James Greene .
WalkingText.class has placed it in the public domain. This means you can use it free of charge for any purpose you like, with nearly no conditions being placed on its use.
The source code, WalkingText.java, is available from the author for a small fee. Please contact for more information.
WalkingText.class was developed by James Greene, with the Sun Microsystems JDK v1.4.1.
Back to the Shareware Overview
This page was last updated on Friday, 21. October 2005.
Copyright © 1999-2000, 2002
James Greene. All rights reserved.
Information in this document is subject to change without
notice.
Please send any questions or comments about this page to
.
Any product names or trademarks mentioned are property of their respective owners. All rights respected.