Thread: Stuck!!
View Single Post
Old 03-15-2008, 08:25 AM   #1 (permalink)
Smiggy
New Hunter
 

Join Date: Dec 2007
Location: United Kingdom - Dorset - Bournemouth
Posts: 88
iTrader: 0 / 0%
Hunter Bux: 5.00
Smiggy will become famous soon enoughSmiggy will become famous soon enough
Send a message via MSN to Smiggy
Default Stuck!!

How do you get this to loop:

Code:
function expand(id)
{
	var layer = document.getElementById(id).style;
	if(i != 60)
		{
			i += 1;
			layer.width = i + "%";
		}
	time = setTimeout("expand(" + id + ")", 1000)
}
I can't get it to start the time again with the id passed through:(
__________________
<!-- I can type the entire Alphabet in 2.19 seconds -->

/* (X/D)Html, Css, Javascript, Ajax, Xml (DTD), PHP, MySQL, E4X */
/* Learning C++ and German */
Smiggy is offline   Reply With Quote