HScroll



HScroll is simple applet that just scroll given text horizontally from right to left. This applet isn't exactly so simple, since HScroll can also scroll text from left to right ;-) And even better, HScroll can also put text to make zigzag, wave, jump etc.

HScroll will use whole applet area. So changing "width" and "height" in applet-tag makes scrolling a bit different.

When mouse is moved over applet, scrolling text will be displayed also in brownser status bar.



Parameters

Required parameters
Name Possible values Description
Text String Scrolling text.
Additional parameters
Name Possible values Description
AppletBgColor Hex RGB-color Applet background color.
TextColor Hex RGB-color Text color.
FontName String
("Arial", "Serif", "Courier"...)
Name of the font used to print 'Text'. All systems doesn't support all fonts, so it's better to use some common font.
FontSize Number
(Positive integer)
Font size.
Delay Number
(Positive integer)
Defines how many milliseconds applet will wait until text moves forward. Smaller value make text scrolling faster.
Pause Number
(Positive integer)
After text is scrolled away from applet are, 'Pause' tells how many milliseconds applet will wait before it start scrolling text again.
ScrollType "RandomLevel", "ZigZag", "Wave", "Jump", "ReverseJump", "Shake" or "Random" "RandomLevel" select new vertical position for text every time when it start scrolling. "ZigZag", "Wave", "Jump" are obvious. "ReverseJump" is like "Jump" but text is jumping toward top of applet instead of bottom. "Shake" shakes text while scrolling it. "Random" choose new vertical position for text every time when text moves forward. (See examples below.)
LeftToRight (Anything) Reverse horizontal scrolling direction.


Example

Example applet running Example applet HTML-code
Your browser can't run Java! <APPLET CODE="HScroll.class" WIDTH=250 HEIGHT=80>
<PARAM NAME="Text" VALUE="Simple text scroller!">
<PARAM NAME="AppletBgColor" VALUE="C0C0C0">
<PARAM NAME="TextColor" VALUE="550000">
<PARAM NAME="ScrollType" VALUE="RandomLevel">
Your browser can't run Java!
</APPLET>


ScrollType examples

Your browser can't run Java!
Your browser can't run Java!
Your browser can't run Java!
Your browser can't run Java!
Your browser can't run Java!


Download

HScroll.class (5.692 bytes)




Back to "Free applets"-page

Back to "Java"-page



www.tiikoni.net/java/free/applets/hscroll.php Full page map Copyright © Pasi Laaksonen