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 */
|