Jump to content

countdown timer


contra10

Recommended Posts

setInterval('code to eval....', milliseconds);

 

 

That function works like eval, executing the string as if it were js. And the milliseconds is the delay time between intervals. Once you set that, it will keep on running. To cancel it, you'd have to store the returned value from setInterval in a variable and call clearInterval

 

 

var timer = setInterval('code to eval....', milliseconds);

 

clearInterval(timer);

 

 

Hope that helps...

Link to comment
https://forums.phpfreaks.com/topic/151013-countdown-timer/#findComment-793440
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.