
How do I add a countdown timer to my Web site?Hi there, I noticed, on a previous entry, somebody asked how to add a countdown timer to their website, well I am also interested in one for my website, on how long until the next clan match is for Socom II, am i able to get a visual countdown timer, where when people go on the website, they can watch it count down, also, could it say days, hours minutes, etc, and also maybe colourful. I'll answer with a bunch of links, this time, rather than reinvent the wheel with my own solution. Here's a list of some of the most interesting or clearly-written countdown timers in a variety of different languages. Remember, though, that anything written in JavaScript has the inherent problem that it's relying on the clock of the visitor's computer being accurate. Macs all seem to sync to the network time servers, but I often see Windows machines off by hours, day, and sometimes even weeks (even in an otherwise well-managed IT environment like the University of Colorado, Boulder). However, if you're happy with a "95% solution", JavaScript will work fine...
There are also plenty more listed on Google. Simply search for countdown javascript. Any of the above should get you going without much fuss or hassle. Remember that it's always preferable to copy and paste code rather than link to another server, because you never know what might happen to the remote site. Thanks to Kim Smith, Matthew Edgar, John Carson, Chris Buechler and John Marshall for their suggestions.
Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Stumble Upon
Categorized:
HTML and CSS
(Article 3957)
Tagged: Previous: Where can I find docs for Sony DDS hardware? Next: Sony DVD Recorder DVDs won't play elsewhere? Subscribe!
Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader. My friend made a counter for me the other day and posted it on his new site. http://javascriptjedi.com/countdown It's cool because you can css it, and it will remove itself from the document the moment that it expires. Check it out. JavascriptJedi is still a new work in progress, but the guy is pretty good at what he does. Posted by: Chris at April 12, 2005 10:53 PMHmmm...seems to still flicker in Firefox. I've tried all sorts of fixes and can't seem to get any countdown to not flicker in Firefox (unless I use an INPUT field to display the countdown). Does anyone have a fix for the Firefox flicker? Posted by: Terry Apodaca at August 18, 2005 7:46 PMDear Dave, I would really appreciate if you can get back to me on this. I am developing a quiz game for my students with FrontPage2003, basically each page is a set of multiple choice questions, with one correct choice out of five. I need a countdown timer to start once each page is loaded and this is where I need your help. I am looking for help in including a countdown timer on the pages that would (1.) start timing each page once loaded and (2.) display a page that shows the student has not answered the question correctly, in order words, if the page fails validation by the student not answering in the specified time, a page is displayed saying so. So in effect, this validation failure page is displayed when, (2.)I need this same form validation failure page displayed if a student fails to answer in the specified time. The form would therefore be invalidated by a wrong answer and failure to answer in specified time, it is in the latter I need your help. I'd really appreciate your prompt response, time is of the essence for me here. Thanks for your time
I have a lot to say, but ...
I do have a comment, now that you mention it!
|
![]()
Search
Find just the answers you seek from among our 2000+ free tech support articles by using our Lijit search engine.
Help!
Subscribe to
Ask Dave Taylor!
Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.
Articles and Reviews
Auctions and Online Shopping Blogs and RSS Feeds Building Web site traffic Business and Management Cell Phones and Mobile Phones CGI Scripts and Web Site Programming Computer and Internet Basics d) None of the Above HTML and CSS Industry News and Trade Shows Mac OS X Help MySpace, Facebook, Twitter and Social Network Help Pay Per Click (PPC) Search Engine Optimization Shell Script Programming Sony PSP, MP3 Players, Etc. The Writing Business Unix and Linux Help Video Game Tips and Help Windows Help
Recent Entries
Join the List!
Book Links
|