mercifulrelease
Technical User
Hi,
I would like to know how to continuously loop this counter function. I have very little knowledge of scripts of any kind. Its part of an art project to have a continuous counter repeating itself. I discovered the counter which is extactly the right size and speed but i'm unable to make it start again from zero. Cheers
<script languge="JavaSript">
<!--
var count = 0;
function counter() {
document.timer.field.value = count++;
if (count != 6)
setTimeout('counter()',2000);
}
counter();
//--></script>
I would like to know how to continuously loop this counter function. I have very little knowledge of scripts of any kind. Its part of an art project to have a continuous counter repeating itself. I discovered the counter which is extactly the right size and speed but i'm unable to make it start again from zero. Cheers
<script languge="JavaSript">
<!--
var count = 0;
function counter() {
document.timer.field.value = count++;
if (count != 6)
setTimeout('counter()',2000);
}
counter();
//--></script>