YOUR BROWSER
DOES NOT
SUPPORT JAVA!

MOVING TEXT APPLET

the JavaBoutique Applet of the Week medallionI would like to invite everybody to use the latest version of my applet for generating moving text that has been selected as the JavaBoutique Applet of the Week. This version dated 2003.07.06 allows to define character encoding and has several bugs fixed. The applet is free for non-commercial use. If you decide to use it however, please mail me the link to your website I just would like to know how my work looks.

USING THE APPLET

In order to use it one simply should place the file containing the applet 'applet.jar' (only 6KB) in the same directory which contains the webpage it is supposed to appear on. This directory should also contain a file with the text to be displayed and optionally a background image. One must add an <APPLET> tag in the HTML source and define the parameters of the applet. The parameters are responsible for the color of the text and background, font size, animation speed and, generally, for the applet look. The detailed description of the parameters is given below.

Click here to download an example as a zip archive (29KB).

The <APPLET> tag should look like this:

<APPLET WIDTH=300 HEIGHT=200 HSPACE=2 VSPACE=2
CODE="MovingText.class" ARCHIVE="applet.jar">

<!--The parameters, ie. -->
<PARAM NAME=font_face VALUE="Serif">

<!-- Rescue information, ie. -->
Your browser does not support Java!
</APPLET>

YOUR BROWSER
DOES NOT
SUPPORT JAVA!

 

WIDTH and HEIGHT define the size of the applet. These can be freely modified. So can HSPACE and VSPACE that define the space between the applet and the rest of the page. The values of CODE and ARCHIVE determine where the applet code is.
 

 

The look and behaviour of the applet depend on <PARAM> tags. It could for example look as above.

YOUR BROWSER
DOES NOT
SUPPORT JAVA!

PARAMETERS

A parameter contains a NAME and a VALUE:

<PARAM NAME=font_face VALUE="Dialog">

If a parameter is omitted or misdefined it will adopt a default value defined inside the applet code. In this case the font_face would have been 'SansSerif'. Other acceptable values for this parameter are: 'Dialog', 'Monospaced', 'Courier', 'Serif', 'SansSerif', 'InputDialog', 'TimesRoman'.


PARAMETER LIST

font_size - default 14 points
is_bold - "yes" or "no", default "no"
is_italic - "yes" or "no", default "no"
line_space - default 2 points

left_margin - default 8 points
right_margin - default 8 points

background_color - ie. "#0000CC", default "#FFFFFF"
background_color_on_mouse_over - default "#FFFFFF"
background_image - ie. "image.jpg", empty string "" denotes no image is needed. An image of any size can be used. The applet will crop it or multiply as needed.

text_file - ie. "text.txt", any text file encoded in Windows format (Cp1250). If no file is defined or it cannot be found the applet will display "TEXT NOT FOUND".

encoding - ie. "Cp1252" or "ISO-8859-1". Set this if you want to display any national characters. Leave the parameter empty if you do not use them.
 


PARAMETER LIST CONTINUED

text_color - default "#808080"
text_color_on_mouse_over - default "#808080"
text_shadow - default "#FFFFFF"
text_shadow_on_mouse_over - default "#FFFFFF"
is_shadow - "yes" or "no", default "no"

border_color - default "#C0C0C0"
border_color_on_mouse_over - default "#C0C0C0"
is_border - "yes" or "no", default "yes"
border_style - "rect" or "round", default "rect"

animation_delay - time interval between animation frames in milliseconds, default 40
listens_to_mouse - "yes" or "no", default "yes"
loop - "yes" or "no", default "yes"

link - address (ie. "http://www.a.link.com/") to redirect a browser to after click. Relative URLs (ie. "../page.html") are not supported.

 

 

   © Witek Mozga