Scroller
Example

About
A scrolling applet which scrolls both images and text. The items can be paused when they reach the center of the screen. Each item can linked to any other URL.

Source
Java Files HTML Files Class Files Other Files Zip Files
JZOOScroller.java
jzooscroller.html
JZOOScroller.class
items.txt
chewbacca.gif
chewbaccabig.gif
jzooscroller.zip

Parameters
bgcolor Background color in hexadecimal, eg '#000000' for black
bgimage URL of an image to display in the background.
textcolor Text color in hexadecimal, eg '#000000' for black
textalign Alignment of the text. Can have the values: 'left', 'center' or 'right'.
delay Number of seconds to wait before displaying next image
speed Speed of the scroll. A higher number gives a faster scroll
fontname Font to use for text
fontstyle Style to apply to font. Can have values: 'plain', 'bold' or 'italic'.
fontsize Size of the text.
itemfile File which contains display data.

Each line of the file represents one item to display. There are four possible options per line - text, image, url and target. Each item must be seperated by a '#' character.

Each line may have one of two forms

  • text # url=... # target=...
  • image=... # url=... # target=...
The url and target are optional and can be omitted. eg.
image=images\image01.gif # index.html
would display the image 'images\image01.gif' and would go to 'index.html' if clicked on.

eg.
Welcome to our home # welcome.html # target=_blank
would display the text 'Welcome to our home' and would open 'welcome.html' in a new browser window when clicked on.

See items.txt for an example.


Usage Example
<applet code="JZOOScroller.class" width="500" height="100">
<param name="bgcolor" value="#ffffff">
<param name="bgimage" value="bg001.jpg">
<param name="delay" value="5">
<param name="speed" value="4">
<param name="textcolor" value="ff0000">
<param name="textalign" value="center">
<param name="fontname" value="courier">
<param name="fontstyle" value="bold">
<param name="fontsize" value="24">
<param name="itemfile" value="items.txt">
</applet>



Last Updated 13 Feb 1999
Copyright © Kevan Stannard 1999

Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the United states and other countries. JZOO is independent of Sun Microsystems, Inc.