Copy codeThe Code is as follows: <! --
Var sh;
MarqueesWidth = 533;
PreLeft = 0; currentLeft = 0; stopscroll = false; getlimit = 0; preTop = 0; currentTop = 0;
Function scrollLeft ()
{
If (stopscroll = true) return;
PreLeft = marquees. scrollLeft;
Marquees. scrollLeft + = 2;
If (preLeft = marquees. scrollLeft)
{
// Marquees. scrollLeft = templayer. offsetWidth-marqueesWidth + 1;
}
}
Function scrollRight ()
{
If (stopscroll = true) return;
PreLeft = marquees. scrollLeft;
Marquees. scrollLeft-= 2;
If (preLeft = marquees. scrollLeft)
{
If (! Getlimit)
{
Marquees. scrollLeft = templayer. offsetWidth * 2;
Getlimit = marquees. scrollLeft;
}
Marquees. scrollLeft-= 1;
}
}
Function Left ()
{
Stopscroll = false;
Sh = setInterval ("scrollLeft ()", 20 );
}
Function Right ()
{
Stopscroll = false;
Sh = setInterval ("scrollRight ()", 20 );
}
Function StopScroll ()
{
Stopscroll = true;
ClearInterval (sh );
}
Function SelectType (value)
{
Document. all. sendForm. page. value = 1;
Document. all. sendForm. type. value = value;
Document. all. sendForm. submit ();
}
Function init ()
{
With (marquees)
{
Style. height = 0;
Style. width = marqueesWidth;
Style. overflowX = "hidden ";
Style. overflowY = "visible ";
Style. align = "center ";
NoWrap = true;
}
}
// -->
Package and download files