Here is a workaround script that shows you how the setTimeout invoke function loop could work and build from there.
Code:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Dynamic Drive Scripts</title>
<script type="text/javascript">
h1=5;
onload = function shrinkMe(name)
{
if (h1 == 0)
{alert("The IF condition is true");
h1 = h1;
}
else
{
h1 = h1-1;
alert("The H1 value in the ELSE statement is " + h1 );
setTimeout("shrinkMe(name);", 1000);
}
}
</script>
</head><body>
<h2> find more tutorials @ <a href="http://www.madchaos.com.au/index.html">www.madchaos.com.au</a></h2>
</body></html>
Bookmarks