Here is the script for the scrolling star images
from URL
http://www.javascriptmall.com/jsc
Setting up the Image Scroller #1 and Image Scroller #2
scripts requires that you determine how many images appear
on the page prior to these scripts. This value is needed to
set the first variable in the portion of the code that goes
into the body of the page. This variable is firstImg1 for the
Image Scroller #1 and firstImg2 for the Image Scroller #2.
If there are no other images prior to your script, then set
this variable to 0, the count for images on a page starts with
0. Otherwise count the number of images that are on the page
and set the value of this variable to the results. For example
on this page I have three images (the green divider lines)
prior to Image Scroller #1. So, I set the value of firstImg1
to 3. The second variable, noImgs1 or noImgs2, can be set for
the number of images you would like to make up the scroller.
In the case of Image Scroller #2, this should always be an even
number.
The images that I used for the image scrollers are displayed below. You can use these or your own.
Scrolling Images by Ray Stott, 1998
Here is the script for the scrolling star images
from
Ray Stott
function startImageScroll()
{
imgNo = firstImg
StarImage = new Image(20,20)
StarImagea = new Image(20,20)
StarImage.src = "scrollimg1.gif"
StarImagea.src = "scrollimg2.gif"
imageScroll()
}
function imageScroll()
{
document.images[imgNo].src = StarImagea.src
if(imgNo>firstImg)
document.images[imgNo-1].src = StarImage.src
else
document.images[firstImg+noImgs-1].src = StarImage.src
if (++imgNo==firstImg+noImgs)
imgNo = firstImg
var timeoutID = setTimeout("imageScroll()", 100)
}