Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] innerwidth


  • From: javascript@xxxxxxxxxx (Andrew Dunn)
  • Subject: [Javascript] innerwidth
  • Date: Fri, 24 May 2002 11:09:22 +1000

Hi,
I have a loop as follows, which scrolls to the end of the page slowly:

function startScrolling ()
{
  	window.scrollBy(1,0);
 	i = i + 1;
 	
 	//if (keepscrolling == "true") 
  	//{
  		//alert(parseInt(i));
  		setTimeout ("startScrolling ()",60);
  	//}
  	
}

When the browser gets to the end of the page I want it to go back to the
beginning, but I can't figure out how to do it. I thought about using
innerWidth and a counter (i) but I can't get the innerWidth to work: here is
a link to the page:

http://d2kmail.no-ip.com/qcbricks/main_frame.htm

Thanks.