June 12th, 2003, 08:29 PM
Help with delayed countdown
I'm new to js and program mostly in php. I am trying to do a delayed countdown (from 15 to 1) but it either hangs indefinately or does not display the count.
does what I want (ignore the '\', I"m calling the js with php) but without the delay. I'd like it to pause for one second after each count.
docount=docount - 1;
} while (docount >0)
document.write(\"<br> $player2 forfeits!\");
June 13th, 2003, 11:35 AM
I managed so I countdown.
Put it in a function, called say tick()
Put this at the end of your function
then outside of the function put:
window.onload = tick;
And best not to loop it, the imeout will do the looping.
You should be able to figure it out from there, if you need more help I'll send you some more of the code.
June 13th, 2003, 02:17 PM
June 13th, 2003, 07:10 PM
Ah, I see that one now. Thanks for pointing it out.