Thread: Stuck!!
View Single Post
Old 03-16-2008, 03:25 PM   #6 (permalink)
SpOrTsDuDe.Reese
Senior Moderator
 
SpOrTsDuDe.Reese's Avatar
Default

Ah ok. You got the solution worked out or you still need the loop. Assuming you do, try...

Code:
function expand(id)
{
	var layer = document.getElementById(id).style;
	if(i != 60)
		{
			i += 1;
			layer.width = i + "%";
		}
	time = setInterval("expand(" + id + ")", 1000)
}
Without seeing your code I can't be sure whether the parameters of the setInterval is correct.
__________________
+-(X)HTML, CSS, JavaScript, SEO, PHP, Flash-+
Code:
<style type="text/css"> u { text-decoration: none; } </style>
GameYin. Redesigning for DevPlooth.
SpOrTsDuDe.Reese is offline   Reply With Quote