Have you ever tried this awesome jQuery countdown timer script with your web application?
Here is the original creator link & the demo page:
https://code.google.com/p/jquery-countdown/
https://github.com/dalpo/jquery-countdown
NEW VERSION:
https://github.com/Reflejo/jquery-countdown
Sample Usage:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <title>Countdown that doesn't sucks</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script> <script src="js/jquery.countdown-original.js" type="text/javascript" charset="utf-8"></script> <!--[if IE 8]> <script src="js/jquery.countdown-second.js" type="text/javascript" charset="utf-8"></script> <![endif]--> <!--[if IE 7]> <script src="js/jquery.countdown-second.js" type="text/javascript" charset="utf-8"></script> <![endif]--> <script type="text/javascript"> $(function(){ $('#counter').countdown({ image: 'img/digits.png', startTime: '01:12:12:00' }); $('#counter_2').countdown({ image: 'img/digits.png', startTime: '00:10', timerEnd: function(){ alert('end!'); }, format: 'mm:ss' }); }); </script> <style type="text/css"> br { clear: both; } .cntSeparator { font-size: 54px; margin: 10px 7px; color: #000; } .desc { margin: 7px 3px; } .desc div { float: left; font-family: Arial; width: 70px; margin-right: 65px; font-size: 13px; font-weight: bold; color: #000; } </style> </head> <body> <div id="counter"></div> <div> <div>Days</div> <div>Hours</div> <div>Minutes</div> <div>Seconds</div> </div> <br /> <br /> <br /> <div id="counter_2"></div> <div> <div>Minutes</div> <div>seconds</div> </div> </body> </html>
So in any browser including IE 9 will work with the original code and then if is IE 7 & 8 will take the next line of code respectively.
<script src="js/jquery.countdown-original.js" type="text/javascript" charset="utf-8"></script> <!--[if IE 7]> <script src="js/jquery.countdown-second.js" type="text/javascript" charset="utf-8"></script> <![endif]--> <!--[if IE 8]> <script src="js/jquery.countdown-second.js" type="text/javascript" charset="utf-8"></script> <![endif]-->
You can see the demo or can download the script it uses it on your project!
I spent so much time searching for nice countdown code, better solution was to create one of my own, I was just thinking… BUT (!), I found this awesome post. Thank you, dude!
it’s really awesome,you save my day thanks!