07.20.08
Scrolling Marquee Text
I recently had a website that needed scrolling pictures from the right to the left. It was a photo album and it achieved this with a marquee tag. I also wanted to increase the speed of the scrolling via javascript so if the users went back to the page it would be simple to scroll back to the point they left at. Here is the code:-
<div align="left"> <button class="FormButtons" onmouseover="scroll(50)" onmouseout="scroll(10)" ><< Scroll Faster</button> <script type="text/javascript"> function scroll(speed) { document.getElementById("scroller").scrollAmount = speed; scroller.start(); } </script> </div> <marquee name="scroller" id="scroller" behavior="slide" direction="left" loop="9999999999"> something to scroll </marquee>
An example of the code can be seen at http://www.sirensmodels.com