[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Continuous countdown timer using jQuery or PHP

Posted on 2013-02-07
4
Medium Priority
?
1,313 Views
Last Modified: 2013-02-07
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
Comment
Question by:rafique12
  • 2
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
Pyromanci earned 2000 total points
ID: 38864811
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
 

Author Comment

by:rafique12
ID: 38864827
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
 
LVL 5

Expert Comment

by:Pyromanci
ID: 38864858
Then the little code snippet I included should work nicely for you as a starting point.
0
 

Author Closing Comment

by:rafique12
ID: 38864888
Thankyou!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses
Course of the Month18 days, 7 hours left to enroll

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question