Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Scroll window horrizontal


Message #1 by "Alexander Bienz" <alex@v...> on Mon, 7 Jan 2002 12:06:15
I do this by simply scrolling one pixel and putting that within a for loop.
If this is too fast, consider putting a setInterval within a for loop.

Cheers -

George L Smyth, Webmaster
U.S. Naval Academy Alumni Association

 -----Original Message-----
From: 	Alexander Bienz [mailto:alex@v...] 
Sent:	Monday, January 07, 2002 7:06 AM
To:	javascript
Subject:	[javascript] Scroll window horrizontal

Hi,

Does anyone know how to scroll a window horrizontally at a certian speed? 
I know onMouseDown="javascript:scrollBy(500, 0) will scroll the page 500 
pixels in the horrizontal but what I need to do is smoothly scroll the 
page over a certain time.

If anyone can help me out?

Alex.

  Return to Index