• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1336
  • Last Modified:

Continuous countdown timer using jQuery or PHP

I am looking for a countdown timer that resets when it reaches 00:00:00

Basically I need it to set it the countdown from 12am to 2pm.

I'm new to jQuery and have not seen a script that does this yet...

If anyone knows I'd be grateful for the shared knowledge...
0
rafique12
Asked:
rafique12
  • 2
  • 2
1 Solution
 
PyromanciCommented:
The best solution really depends on what you using the countdown timer for, if the count down is suppose to be continue through page loads, if it's based on server time or client time.

There are a few different solutions you can use. Most of which are pretty flexible.

http://keith-wood.name/countdown.html Is a jquery based system and you can easy make it functional with php by doing something like:
$('#timer').countdown({
    until: '<?php echo date("h:i:s"); ?>' // change this, obviously
});

Open in new window

0
 
rafique12Author Commented:
Thanks for the link, It would be based on server time the thing is I need to reset when it reaches zero and start counting down again!
0
 
PyromanciCommented:
Then the little code snippet I included should work nicely for you as a starting point.
0
 
rafique12Author Commented:
Thankyou!
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now