5) Define the speed of the animation in
this section of the script:
setTimeout("imgStart();",1000);
// the smaller the value the faster the speed
6) Carefully modify these parameters to
adjust the number of rollover images in this section of the script:
Below is an example with 9 rollover images instead
of 10 (as in the example above):
if ( x == 1 )
{
self.document.b1.src='rollover/aboutus2.gif';
self.document.b10.src='rollover/toolkit.gif'; // the last button (9)
etc..
else if ( x == 9 )
{
self.document.b9.src='rollover/default2.gif';
// default2.gif is not a rollover image but a
fictitious name
self.document.b8.src='rollover/affiliates.gif';
// the button 8 (affiliates.gif) is repeated
below
}
else if ( x == 10 )
{
self.document.b10.src='rollover/toolkit2.gif';
// the last button (9)
self.document.b8.src='rollover/affiliates.gif';
}
if ( ++x > 10 ) x=1;
// number of rollover images (9) + 1 = 10
if ( x == 9 ) x = 10;
// number of rollover images (9),
and 9 + 1 = 10
In the last button of the HTML code section note
that the parameter is "b10" instead of "b9".