Please visit my
What's Hot in ...
pages regulary
to check for Java news, interesting applets and a lot of other information.
Display Java Applet V1.5 Description
Parameters
Required Parameters
- <param name="script" value="[URL | file]">
Specifies the script describing the actions in the display.
Optional Parameters
- <param name="background" value="[URL | file]">
Specifies the background image. The value can either be a complete URL or a file name
relative to the document base directory.
Default is no background image.
If the file/URL is not valid, the parameter is ignored.
- <param name="backgroundcolor" value="[0-255],[0-255],[0-255]">
Color of the background of the display (only if no background image is specified).
Default is dark grey.
If one of the values contains no number, the backgroundcolor is set to dark grey.
If one of the numbers is <0, the number is set to 0.
If one of the numbers is >255, the number is set to 255.
- <param name="bordercolor" value="[0-255],[0-255],[0-255]">
Color of the border.
Default is grey.
If one of the values contains no number, the bordercolor is set to grey.
If one of the numbers is <0, the number is set to 0.
If one of the numbers is >255, the number is set to 255.
- <param name="linecolor" value="[0-255],[0-255],[0-255]">
Color of the lines.
Default is grey.
If one of the values contains no number, the linecolor is set to grey.
If one of the numbers is <0, the number is set to 0.
If one of the numbers is <255, the number is set to 255.
- <param name="titlefont" value="[string],[int]">
The font family name and the font size of the title text.
Default is "TimesRoman,22".
- <param name="titletext" value="[string]">
The text shown in the title area of the display.
Default is an empty string.
- <param name="titlecolor" value="[0-255],[0-255],[0-255]">
Color of the title text and of the clock characters.
Default is white.
If one of the values contains no number, the titlecolor is set to white.
If one of the numbers is <0, the number is set to 0.
If one of the numbers is >255, the number is set to 255.
- <param name="messagefont" value="[string],[int]">
The font family name and the font size of the message area characters.
Default is "TimesRoman,14".
- <param name="border" value="[int]">
Width of the border (the number of pixels is tree times the value).
Default is 3.
If the value in invalid (no number), the value is set to 3.
If the value is <0, the value is set to 0.
- <param name="colgap" value="[int]">
Number of pixels between the characters.
Default is 0.
If the value in invalid (no number) or <0, the value is set to 0.
- <param name="rowgap" value="[int]">
Number of pixels between the lines in the message area.
Default is 3.
If the value in invalid (no number), the value is set to 3.
If the value is <0, the value is set to 0.
- <param name="validchars" value="[string]">
The valid characters of the display messages in the sequence the characters are changed.
Default is " a-z0-9A-Z.:-,;+*/!?()<>".
If a message contains an invalid character, it is changed to the first character
in the validchars array.
If the array does not contain a blank, it is added as the first character.
- <param name="delay" value="[int]">
Delay in milliseconds between the character changes.
Default is 50.
If the value in invalid (no number), the value is set to 50.
If the value is <0, the value is set to 0.
- <param name="maxchanges" value="[int]">
The maximum number of character flips until the all target characters
are displayed.
Default is show all flips.
If the value in invalid (no number), the value is set to show all flips.
If the value is <2, the value is set to 2.
- <param name="timedisplay" value="[YES|NO]">
Switches the time display on/off.
Default is YES.
If the value is not NO, the value is set to YES.
Script Functions
- //
Comment.
- Show [line=[int]] [URL=[URL | file],[string]] [text=[string]]
Display a message on the display.
- line
Specifies the line number (1 - n).
Default is 1.
If the values contains no number, it is set to 1.
If the number is <=0, it is set to 1.
If the number is higher than the number of lines, the function is ignored.
- URL
Any valid URL or file name, optional a comma and the target frame for the URL.
Default is null (no URL or file).
If it is not valid, the URL is set to null (no URL or file).
- text
The message text to be displayed. This parameter must be the last one in the line.
The default is an empty string.
To specify the color of the following text, write a \ (backslash) followed by
a color character. Valid characters are
l | black
|
w | white
|
r | red
|
g | green
|
b | blue
|
o | orange
|
c | cyan
|
y | yellow
|
p | purple
|
To display a backslash, write \\ (two backslashes).
- Remove [line=[int]]
Sets a message line back to blanks.
- line
Specifies the line number (1 - n).
Default is 1.
If the values contains no number, it is set to 1.
If the number is <=0, it is set to 1.
If the number is higher than the number of lines, the function is ignored.
- Sleep [wait=[int]]
Waits until the next script line is executed.
- wait
Wait time in milliseconds.
Default is 1000 (1 second).
If the values contains no number, it is set to 1000.
If the number is <0, it is set to 1000.
- Do
The begin of a block. The block must end with a repeat function.
- Repeat [times=[int]]
The end of a block started with "Do".
- times
The number of times the block is repeated.
A value of -1 indicates an endless loop.
Default is -1.
If the values contains no number, it is set to -1.
- Reload
Reloads the script and starts from the beginning again.
History
- Version 1.5
- Added parameter "maxchanges" to limit the number of flips
until all target characters are displayed.
- Version 1.4
- Added parameter "timedisplay" to turn off the time display.
- Corrected time display (show local time).
- Version 1.3
- Added background image support ("background" parameter in applet tag).
- Removed possible problems when parsing the script file.
- Version 1.2
- Updated painting again. Sometimes, the target characters were not
shown correctly.
- Added "delay" parameter for the applet to control the update speed.
- Version 1.1
- Updated painting algorithm. Especially on slower computers,
the display was not repainted correctly.
- Version 1.0
(c) Copyright 1996 by
Stefan Ruettinger
(Homepage:
http://www.geocities.com/SiliconValley/9812/index.html)