Applet name: FunScroll
Applet Source: FunScroll.java
Import(s): java.util, java.applet, java.awt, java.awt.image
Feature(s): text, animation
Author: Jan Andersson
The following are some examples of FunScroll usage:
<APPLET CODE="FunScroll.class" WIDTH=400 HEIGHT=60> <PARAM NAME=line0 VALUE="<20>Simple Text, delayed 20 units"> <PARAM NAME=line1 VALUE="<20><nervous>Same, but nervous"> <PARAM NAME=line2 VALUE="<20><sine-wave>Same, but sine-wave"> <PARAM NAME=line3 VALUE="<15><up>Scroll up, delay, and scroll down<down>"> <PARAM NAME=line4 VALUE="<15><up>Scroll, delay, scroll and delay<15><down>"> <PARAM NAME=line5 VALUE="<15><up>Line with line-break\ncontinuing here.<down>"> <PARAM NAME=bgcolor VALUE="#EED5B7"> <PARAM NAME=fgcolor VALUE="#FFFFFF"> </APPLET>
Another example, with foreground color and font specified, as well as the delimiter used to separate tags:
<APPLET CODE="FunScroll.class" WIDTH=440 HEIGHT=60> <PARAM NAME=delim VALUE="#"> <PARAM NAME=line0 VALUE="#down#You can specify colors as parameters#down#"> <PARAM NAME=line1 VALUE="#down#As well as Font#down#"> <PARAM NAME=line2 VALUE= "#up#Lines can also be splitted\n like this\n into a group of lines...#up#"> <PARAM NAME=font VALUE="Courier"> <PARAM NAME=size VALUE="16"> <PARAM NAME=fgcolor VALUE="#FF0000"> </APPLET>
Here we make the text move faster (and not so smooth) by setting dx, dy and the delay parameter...
<APPLET CODE="FunScroll.class" WIDTH=380 HEIGHT=70> <PARAM NAME=line0 VALUE="<20><down>We can move faster<up>"> <PARAM NAME=line1 VALUE="<left>In both directions"> <PARAM NAME=line2 VALUE="<left><sine-wave><20><Two-liner with\nsine-wave..."> <PARAM NAME=delay VALUE="50"> <PARAM NAME=dx VALUE="4"> <PARAM NAME=dy VALUE="3"> <PARAM NAME=fgcolor VALUE="#FF0000"> <PARAM NAME=bgcolor VALUE="#EED5B7"> </APPLET>