04-03-2009, 02:39 PM
|
#3 (permalink)
|
|
The Gregarious
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
|
Thanks, Krik!
That looks pretty simple, however, I'm not sure I know how to use that properly. Here is what I put on my page, if I can get it to display just 1 countdown, I should be able to figure out how to put it in a loop.
Code:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<script type="text/javascript">
var stopcount = 93;
var loopcount = 0;
function myfunc() {
loopcount++;
if (loopcount == stopcount) {
clearTimeout(counter);
}
else {
counter = setTimeout("myfunc();", 1000);
}
}
</script>
<script type="text/javascript">
setTimeout("myfunc();", 1000);
</script>
</body>
</html>
|
|
|
|