837 previous comments
For Web page: http://www.hashemian.com/tools/javascript-countdown.htm Add your comment by: Ayodeji on 2022-08-15 22:31:13 how will i add multiple of the timmer on my html page
by: Ahmad on 2020-12-13 04:05:18 Dear admin, I have used your countdown timer script in one of my projects and is working fine. Its only when there is a validation that kicks in on the login page and the warning message is to be displayed like 'invalid user name of password', the timer disappears and only gets back once the page refreshed. Its an MVC based website and the login page has a 'control' behind where the login validation is handled. The timer scrip
by: rh [admin] on 2019-03-06 20:12:22 @kei possible your browser is not rendering the element needed to display the countdown info. got a test page?
by: Kei on 2019-03-03 16:35:12 <img src="https://i.imgur.com/VsP2Hro.png" />
by: Stacey on 2019-01-15 22:09:56 How do I modify the code to exclude weekends & holidays? I only want to include in the count work days only
by: Larry Dew on 2017-11-02 01:59:52 Is there a way when the countdown has completed instead of an message have it redirect to a new page?
by: Cocos on 2017-04-09 12:45:27 What can I do for put several countdowns in the same page?
Thank you for all
by: Ndudim on 2017-03-25 19:45:47 Can I use a date string from MYSQL database to insert as my TargetDate
by: Ndudim on 2017-03-25 09:19:52 How can I count down to a stored date in a mysql database
by: Arie on 2017-03-14 13:35:35 The script is not suitable for https site or weblog due to a http/https conflict. Could you please furnish the https script version for the countup timer ? Thanks in advance for your effort thereto.
by: Mike on 2017-03-08 19:39:40 How can I make it the counter larger?
by: Marcela on 2016-11-25 22:37:21 It was very helpful, could you tell me please the code to increase the size of the text? Thanks a lot!
by: Rui C on 2016-11-01 20:49:21 Hi, I can't download the multiple countdowns from links Mun Rashid. I've try to change you code for symple countdown but its not wrking. I need that your code work in five countdows on the same html page. Can you help me, please? Thank you for your time
by: Blank calendar 2017 on 2016-10-29 13:56:35 Thank you so much!
by: Grant on 2016-08-08 02:44:29 Great script. Love the fact it is simple and easy to edit.
Note: if you want to clear the clock and leave other elements where they are around it, change the finish message to
by: GIANPIERO on 2016-07-22 11:47:48 Thankyou very much it works very well, simply to install
by: Max on 2016-07-20 05:58:39 Hello Robert , the script works perfectly . Would it be possible even add years and months , I need it for my website .
Best regards from Basel Max
by: Jochen on 2016-06-24 10:20:01 Hi, i want to place a link as FinishMessage, but that doesn't work. Can you tell me how to do this?
by: Jochen on 2016-06-24 10:19:50 Hi, i want to place a link as FinishMessage, but that doesn't work. Can you tell me how to do this?
by: Nik on 2016-03-22 15:09:57 Dear all.
Could you please let me know if I could use count-up and multiple counydowns in the same page? I have put count-up CountStepper = 1; and is updating only when the pages is refreshed. Or how to use one of my countdowns as count-up.
Also if I could use 24h and DD/MM/YYYY format will be nice too?
Thanks in advance
by: Petr on 2016-03-21 17:19:04 Thank you working like a charm! & i donate a little bid :-) 5 dollars make you a little bid happier :-), thanks a lot for great work. I just implement to several sharepoint sites. Easy and nice solution! Good Work, thank you!
by: elbren on 2016-02-15 01:26:48 I love this comment.. I'ts direct to point.. not like other.. to much stories to explain
by: Rob Vloemans on 2015-11-26 15:09:25 Cant see the countdown on my iphone I does show up on my desktop (iMac) Contact me at robvloemans(ad)gmail.com
by: Rob Vloemans on 2015-11-26 15:00:27 I can't see the countdown on my iphone... On my iMac is does work.. How come?
by: Juan on 2015-10-29 00:05:40 Amazing code. Easy to use. Thank you
by: Srinivas on 2015-09-29 11:20:09 The problem I have is that the clock do not stop counting,when the clock come to 0 it begin go backwards counting like this.-1 d, -1 uur, -9 min, -3 sec . could anybody plz tel me how to stop it when it hits 0 I don't want this. I need help fast please mymail Id :[email protected]
by: Srinivas on 2015-09-24 06:37:05 hi i want the target date to accept only time how can i achieve this could u please let me know is there a way to make the target date to accept only time ?
by: Daniel on 2015-09-11 17:31:26 Is the YEAR format no longer supported?
I am using this as a count-up times since my wedding. I would like it to read "We have been married XX Years, XX months, XX days." Is this possible using this code?
by: Daniel on 2015-09-11 17:12:36 Is the YEAR format no longer supported?
I am using this as a count-up times since my wedding. I would like it to read "We have been married XX Years, XX months, XX days." Is this possible using this code?
by: Daniel on 2015-09-11 16:38:13 When previewing the web page locally, the time appears correctly (7 years, 6 weeks) but after uploading to the web host, it appears as 7 years 370 weeks. Note that 370 weeks is the total weeks in the 7 years.....so somehow it isn't just giving the weeks since the 7 year anniversary.
Any ideas?
by: Jay on 2015-07-10 13:09:46 Hello, i am trying to use this code in Content editor web part in SharePoint 2007. It works fine when src=reference your site, but where can i upload your .js to reference to my own location? Please HELP!! Thanks in ADVANCE :)
by: Chris on 2015-07-09 17:44:25 How can I cange the font size???
by: Jim on 2015-06-22 19:16:55 Is there a way to run this multiple times on the same page?
by: PrimoNX on 2015-05-31 14:36:45 Excellent code man. thank you very much. I have use this code on my site http://sportstv24.net/ and it's working good.
by: Devarajan on 2015-05-19 12:13:09 Super. Thank you.
by: PipBoy2000 on 2015-05-14 13:08:41 Hi, Nice plugin indeed. I wonder is there an option to specify TargetDate as every working days from Monday to Friday without Saturday and Sunday?
by: Arp on 2015-05-13 07:03:59 Thanks, awesome code! Very simple and easy to customize, works great and does exactly what I was looking for. I've used it to count remaining days to opening Estonian National Museum's new building. Sorry, blog is only in estonian: http://arbifoto.blogspot.com
by: SergioPalacio on 2015-04-21 03:28:17 THANK YOU VERY MUCH
by: ФА on 2015-03-15 13:19:58 Is it same library? http://countdownjs.org/
by: r4p1t7 on 2015-02-18 18:42:49 Nice work but if I want Background Image do ? Where and what code I need put inside ?
by: Ananth on 2015-01-28 09:23:38 Works great
by: slack on 2015-01-26 16:06:53 Thanks for a very neat little script.
I was looking for a simple countdown and this fit the bill and then some. Easy to customize, does exactly what it says on the box.
by: LOGECT on 2015-01-08 13:42:22 Thanks
by: YANS on 2014-12-27 10:39:25 Thanks dude. Thanks alot.
by: Gary Graefen on 2014-10-08 02:32:59 Nice script -we picked it up on our site http://www.widgetsofvalue.com/2014/10/simple-count-down-widget.html
by: devesh soni on 2014-09-20 16:32:27 work great but time is not same for all client system how can i reload in time intervals...plzz suggest
by: Theawesome67 on 2014-08-18 22:07:00 Hey, would you mind if I hosted this on my site (It uses X10Hosting so no high usage warnings) so others could use the script and you don't get high usage warnings?
Thanks.
by: Lars on 2014-06-30 13:45:50 I am currently using the counter for a project. However, I would like the website to be made repsonsive. Therefore I would like the counter to break into sepearte lines when the user is viewing the site in a resolution with a width less than 767 px. In other words, I would like to stack "hours", "minutes", "seconds" and so forth on top of eachother. How would I do that?
by: Claire Donovan on 2014-06-24 10:49:01 Just wanted to say MASSIVE THANKS for this, very much appreciated
by: wizlntlkyr on 2014-06-24 04:17:31 zruxsibtifnjbo, <a href="http://www.iollbiiffp.com/">zquevvdeyl</a> , [url=http://www.qgktovhdso.com/]pnsgccfvyu[/url], http://www.hwmwdsddkr.com/ zquevvdeyl
by: Chris on 2014-03-26 19:11:25 Just wanted to say thanks for the JavaScript countdown, it was very helpful.
by: saifee on 2014-03-10 11:38:56 how to pass mysql time to TargetDate variable?pls replay asap
by: raju9529 on 2014-03-05 03:59:30 if seconds are going to 00 then how to raise an event after complete plz give me some clarification
by: raju9529 on 2014-03-05 03:57:29 after complete the process how to raise event
by: Brian on 2014-02-26 01:15:11 How do you make this bigger?
by: MB on 2014-02-19 19:59:27 Thanks for this js - Works great! Question, how do you show an image for the FinishMessage?
by: anton on 2014-02-14 10:14:33 hi, I want to show only the seconds and milliseconds or tenths. Is it possible? What should I change?
by: philthom4s on 2014-01-24 22:28:57 There are all sorts of comments here. I hope no one cares if I add this little one. Just to say hello!
by: Sasha on 2014-01-08 23:30:00 Can you somehow add Years? Would that be to complicated to add?
Keep up with awesome work!
by: chaitali sheekhar on 2014-01-05 08:15:57 document.getElementById("myImg").src="Cap_Img.jsp";
is not working in iE9 and firefox.how to make it work
by: vijish on 2013-12-06 12:06:11 how to add milli seconds to it?
by: Bruce R on 2013-10-24 09:25:32 correction Webkit does not like that format, try "mm/dd/YYYY HH:mm"
by: Bruce R on 2013-10-24 08:52:45 I just tried your script, it works perfectly in the latest Chrome browser, anybody with NaN errors, make sure you use the correct date format eg. 2013-10-24T10:00:00
by: terese on 2013-10-19 21:10:19 Perfect little widget. Simple and easy to customize. THANKS.
by: Irish Angel on 2013-10-02 02:02:31 Thanks for the code. Been looking for this for 2 weeks now. I am no expert on JavaScript so I want to ask if how can I put the Display Format on a Label on my .aspx file.
by: Jared Newnam on 2013-09-30 13:17:58 Very cool. Very light weight and easy to use. Been looking for something like this all day long.
by: Lars on 2013-09-19 20:42:54 Hey man, thanks alot, this was very simple and just what I have been looking for!
by: rh [admin] on 2013-09-18 19:27:10 you'd need to download the js file from here and upload it to your own site and then change the url to point there. if still doesn't work, your host may be blocking js files. you'd have to check with them. good luck
by: Gary on 2013-09-18 17:09:58 How would I change the change the script src to point to its location on my site? I changed the http://scripts.hashemian.com part of the script but then the countup timer disappears. What am I doing wrong? Any help would be appreciated, thanx....
by: BenHavo on 2013-07-13 20:29:13 Thanks, this is really great!
by: Intouch on 2013-06-21 14:44:24 Excellent! Many thanks.
by: Marco on 2013-06-19 13:11:34 it is possible to change the countdown size?
by: ASdavid on 2013-06-12 13:43:12 Million of thanks!!!!
by: nigmastar on 2013-06-12 06:57:47 I've downloaded the countdown.js modified by Mun Rashid and the relative html sample in the same folder but I always get a blank page (same result giving an absolute path). Is that supposed to work as it is? thanks
by: dymitr on 2013-05-29 14:43:21 well done, light and simple. thx! :)
by: Nick on 2013-05-19 10:32:53 Forget that leaving the field blank means it goes transparent.
by: Nick on 2013-05-18 17:28:32 I was looking into using your code, Nice work. One little thing as anyone figured out how to have a transparent background on it? Any help is greatl appreciated
by: hull on 2013-04-22 07:30:06 how can i make a button to change "Targetdate" to current date and time?
by: aman on 2013-03-26 12:01:51 Hello, I want to implement this timer multiple on same page.Can this possible, if so please tell me....Thanks :)
by: Dave on 2013-03-18 11:45:57 Perfect, thank you!
by: Nazim on 2013-02-21 15:57:05 Can I start countdown with button click
by: stacey on 2013-02-21 01:41:31 is there any way we can change it so it counts years not 366 days?
by: GTA 5 on 2013-02-11 04:08:02 Love it. Simple and effective. Using it on our website.
by: Pcwolf on 2013-02-10 14:39:58 Hello,
How i can use 2,3,4... timers in 1 page because i have a webshop and sometimes i need this.
I tried to past the html code in many articles but it shows only 1 timer.
How i can change this ?
-Thanks
by: CountdownGuy on 2013-02-08 09:22:47 ... (continuing) On the FAQ page, it shows us how to wrap a span tag around the last line of the script, but I want to be able to change the font style of more than one thing inside the Javascript. Can you help please? Thanks.
by: CountdownGuy on 2013-02-08 09:20:58 In the below example, I wanted the number of days to be red, number of hours to be green, number of minutes to be blue, and number of seconds to be gray. I also wanted the number of days, hours, minutes, and seconds to be in size 16px font, while having the words be in only size 10px font.
On the FAQ page, it shows us how to wrap a span tag around the last line of the script, but I want to be able to change the font style of more than one
by: CountdownGuy on 2013-02-08 09:18:53 I want to do something like this, but it won't let me:
DisplayFormat = "<span style="color:red, font-size:16px;">%%D%%</span> <span style="font-size:10px;">Days,<span> <span style="color:green, font-size:16px;">%%H%%<span> <span style="font-size:10px;">Hours,<span> <span style="color:blue, font-size:16px;">%%M%%<span> <
by: Abe on 2013-02-02 00:10:36 Please dis-regard previous message. I later saw where you suggested iframing - that works great - thanks gain :)
by: Abe on 2013-02-01 23:53:08 This is an awesome script...thanks. However, I seem to run into trouble when I use it more than once on a page? The second instance does not display? Do I need to do something differently?
by: Ken on 2012-12-26 18:36:26 Just wanted to say thanks for this! I have used this code on my blog to track the 2038 problem!
by: Agnes on 2012-12-15 09:04:48 how can you change the countdown to allow for multiple countdows, e,g christmas, easter etc your websites very handy, keep it up
by: Kiran on 2012-12-12 20:54:53 Nice Job !!!!
Keep it up !!!!
by: rh [admin] on 2012-12-05 17:16:43 appreciate the kind words. really, no need for donation. the reward is builtin, giving back to the community.
by: Avo Sarafian on 2012-12-01 06:12:05 i have been using this for over 3 years, now... and it never gets old... up till today, im really glad this exists... lots of love!... you should create a donation portal... i couldn't find one here
by: Ashton on 2012-11-19 22:52:43 Thank you for this!!! so simple and perfect
by: skikkato on 2012-10-20 14:19:27 hi i want button for pause resume countdown its possible? tank you
by: claudiadell on 2012-10-16 09:56:54 College essay writing help. Effective essay writing service with informative tips. Academic custom essay help. Online, professional essay writer.
by: rh [admin] on 2012-10-01 20:41:06 this was an old infection that had escaped cleanup. it has now been fixed. appreciate the note and sorry for the trouble.
by: Idiot server on 2012-09-29 12:29:58 The HTM download for the Mun Rashid alternate code has been compromised. It has a trojan injected iframe!
by: RAJPUT DHIRAJSINH KARTARSINH on 2012-09-27 20:38:06 FORM Canform ho gaya he par potu or sing print me nahi aaraha he or janret me nahi ho raha to form ko me bhej sakta hu ki nahi
by: Katy on 2012-09-26 15:42:46 I'm seeing the same "403 forbidden" when I try to download the js. It was working fine but has stopped working suddenly today.
by: Libania on 2012-09-26 14:10:59 I'm recieving a "403 forbidden" when I try to download the js... What is happening? By the way, great work! Thanks a lot!!
by: Paul on 2012-09-19 09:08:11 Outstanding script. Can be tailored, easy to follow instructions.
Worked first time and looks great on my site.
Thanks for all your time and effort. Great job!
by: Matze on 2012-08-24 20:44:15 How is it possible to have more than 2 countdows on one website with Tilesh Khatri's script for multiple countdowns? :)
by: CRAIG on 2012-08-14 17:14:51 I am having problems with changing the date and time to the one that i want. I am editing the script so it displays the date and time that i need but when I view the site it is still displaying the default countdown- any ideas?
by: rippin on 2012-08-09 21:02:05 IE requires that you put in the html, head, and body tags You can also do this all in one block without linking to a separate .js file, just make sure you enclose the javascript part with the "script" tags and put the html comment characters <!-- in there too
by: Rajiv Maity on 2012-07-18 08:47:39 Thanks a lot, the code was a life saver.
by: David Refoua on 2012-07-16 12:17:22 Reply to USNCPO-RETIRED:
Your welcome, hope I helped u. Thank you 4 using my script.
contact me at: [email protected]
by: Nabeel_co on 2012-07-05 07:58:56 This script works great if you only have one instance on your web page. If you have it counting two different things it seems to cause problems. Any idea on how to fix this?
by: varallyayivan-f3z on 2012-06-29 20:32:11 I put your code on my site. It works fine if I don't shut my PC down. After shutting it down the time will not be counted. Switching it on later, the counter continous counting at the time when the pc was shutting down. I need a counter which counts the time left during the time it is not turning on. Could you kindly help me?
All the best Ivan
by: iqbal on 2012-06-20 10:10:17 really excellent script
by: Josh on 2012-06-15 20:42:52 Hello, thank you for the script, i am very new to javascript/html. I used this for a sharepoint page and it is one of the only ones that works. I would like to change the font type and size easily, what would be a good code for that to insert? (where) Thanks you!
by: yuufa10182006 on 2012-06-14 16:59:42 it's not working with IE browser? How can I make it work with IE browser?
by: USNCPO-RETIRED on 2012-06-09 19:44:32 Reply to David Refoua
Doc, that was exactly what I was looking for, thank you very much
by: Julian Egelstaff on 2012-06-02 18:22:09 Awesome script, thank you so much for sharing!
by: Alvin on 2012-06-01 08:20:20 Hi,
I am pulling a dynamically created date from my database. The format is: day-month-year hour:minutePM (31-01-2012 13:00PM)
Is there a way to change the script to recognize that format?
Great script! Thank you.
by: How on 2012-05-31 13:48:38 thanks men!!
by: thomas on 2012-05-24 13:37:54 Thanks! I made this with it :)
http://thomascrossman.co.uk/doihavewater/
much love x
by: David Refoua on 2012-05-21 06:35:49 Hi! I made a script based on this script It's better (as I think!) you can use Years and months calculating on my script
http://drsdavidsoft.persiangig.com/Pages/Day-Count-Down-by-DRS.html
by: Helios on 2012-05-20 00:45:55 In my Phpadmin dbase the end date is formatted as stampdate (1337550004). Is it possible to connect Targetdate to stampdate?
by: Andrei Vidaicu on 2012-05-17 04:45:44 Hi,
How would I make Days, Hours, Minutes, Seconds appear on top of the numbers as block level elements?
thanks, Andrei
by: Guillermo on 2012-05-14 21:30:08 Hi, I would like to repeat the countdown at same time every weekday, for example display the countdown each M-F at 5:00pm
by: Santosh on 2012-05-12 08:51:10 Awesome coding... Thanks dude for the codes...
by: Vishal Lakhani on 2012-05-07 06:14:13 I Dont want to show Days I want to show in this just Hours Mins and Seconds.. How is it Possible? I have changed format but its not working .. its not adding that Days hour.. it's just hide Day so its coming wrong any one can help me?
by: jd on 2012-04-28 02:03:17 Can it be easily modified to either blink in the taskbar or show the count in the taskbar when countdown =0
by: Drea Flo on 2012-04-25 00:37:47 It only counts down how do you make it count up?
by: Tasha on 2012-04-18 23:51:27 Is there any way to style the output with CSS?
by: rh [admin] on 2012-04-03 01:51:47 your web host maybe blocking javascript or your editor maybe breaking it. view page source in browser to make sure the code is intact and ask tech support if javascript is allowed.
by: Suzanne on 2012-03-31 21:12:10 I can't get the code to work. I put it in my index.html file but it doesn't even show up.... any suggestions?
by: Branko on 2012-03-28 23:09:42 How to have multiple countdowns on same page?
by: Louise on 2012-03-17 12:24:07 Thank you so much! Works great and exactly what I was looking for. Great work,
by: Lee on 2012-03-16 14:10:53 How do you reference the target end date to a textbox value? If I wanted the target end date to be dynamically changed.
by: rh [admin] on 2012-03-07 19:51:59 have seen some comments about innerHTML issues in IE but personally haven't run into any with this widget. tested on versions 6,7,8, and 9, and other browsers and platforms too. if you have a specific page, cite here or send email and i or someone will take a look.
by: Eric on 2012-03-06 13:48:11 Hello,
My countdown doesn't work with IE.
I must add any update. Do you have this update ? countdown does work with IE on your PC ?
by: Bea on 2012-02-29 23:45:42 You are awesome. This worked like a charm!
by: Sugandh Mishra on 2012-02-19 13:14:05 its the best script i was searching for from the last 6 months, thanks a lot, i downloaded the js to my server saving ur bandwidth. Once again thnks
by: Bajdoras on 2012-02-09 16:28:52 How to have multiple countdowns?
by: Karthik on 2012-01-28 17:20:42 Hi, Thanks for the code. Works simple and great.
by: Dave on 2012-01-18 20:26:58 Works fine for us on all the latest IE, FF, Opera, and Chrome browsers, also fine on IE8, IE6, and older Opera. Even Opera Mini on older Java phone (doesn't count down, but does display). Wrapped the script in some span tags for sizing and css, perfect! THANK YOU!
by: Robert Queen on 2012-01-14 15:22:04 Can this script be customize with add styles (css)?
by: Mark on 2012-01-06 07:23:15 Does not work with Internet Explorer. The cause is the setting of innerHTML that is not supported in IE (and by standards). The solution is to use BetterInnerHTML function (look up on internet) instead of setting innerHTML.
by: Larry W on 2011-12-28 18:07:10 Thanks for the effort. Works great on our intranet. Easiest to use.
by: ankit on 2011-12-27 12:08:51 i use your coutdown timer..how i start the timer as i want on button click or window.onload
by: LOL on 2011-12-25 17:06:58 To anyone whining about it not working on IE - Shut Up and go away - nothing ever works properly on IE without modification to the source code, you should be aware of that already and prepared to make those modifications yourself.
by: Tony on 2011-12-20 02:13:24 Thank you!!!! This saved me a ton of time - very configurable.
by: burcu h. on 2011-12-08 14:57:59 Thank you very much, you saved hours of my work ;)
by: dsdcsd on 2011-12-06 16:18:16 cascacascasc
by: Nicolaj Frederiksen on 2011-12-04 13:21:41 Excellent script. The The UTC-xxxx parameter for Universal Time does not work in Internet Explorer 8 and the LeadingZero switch dos not seams to work at alle in the the .js that Mun Rashid has modified the JavaScript code by using object wrapping to allow for multiple countdowns on one page.
by: Download Games on 2011-11-26 20:39:16 Hey, Thanks! Nice code. Working fine with my page!
by: mjavad.mirzabeigi on 2011-11-26 11:46:24 So usefull. excelent mr hashemian. please if you have time loock our weblogs & help us to improve them :
http://mjm-eng.blogfa.com http://cyber-officers.blogfa.com
by: Gerardo on 2011-11-25 18:57:58 THX for the code, but the timer only appears once inside a gridview.
by: android tablet pc on 2011-11-23 07:09:35 thank you
by: wholesale nfl jerseys on 2011-11-23 07:07:36 I like this ,It's very good
by: Chawley on 2011-11-22 06:05:01 Thanks for your code! it is amazing
by: Ramakrishna on 2011-11-19 12:33:08 Time Saving, I like this
by: geetha on 2011-11-14 11:09:08 nice , i didnt waste much time for this, thank you
by: Charlie on 2011-11-09 07:28:21 It only counts down from the default date in 2020. I update the TargetDate variable, but it doesn't change anything.
by: Ahmet on 2011-10-31 10:52:33 Hello,
Looking for a countup number code with a given paramenters such as the number of savings done until this date. So each time the page loads code should increase from previous and while open it should count up with given constraints... Has anyone come a cross with such code?
Thank you Ahmet
by: Lakshmikanth on 2011-10-28 11:10:31 Hi,
This Code Rocks.... Moreover 1 issue I face. when i click on a button to save information this timer gets refreshed at a fraction of a second. Please help me about this.
Thanks in Advance.
by: Digss on 2011-10-26 13:26:57 I want to insert this script in my web site..how can i do this..and i want to count down the time on each refresh...my web site is online test,so it can be done.?..i want after 30 minutes the test should exited...plz plzz give me fast reply..
by: Khushi on 2011-10-04 16:37:31 Hi there, Great Script!! Just wondering how could i manipulate the display - I need to display year in 4 digits. like 0000 days, 00 hours: 00 mins: 00 Secs. even if the result is 13years it shouuld show 0013 years. Please suggest.
Another problem i am facing when i am embedding script in ASP.Net page it is giving me document.getElementById(...) is null or not an object. I test the script in HTML page it working fine.
by: Stella on 2011-09-27 19:04:11 Thank yo so much!!!! I´m an absolute begginer in programming but thanks to this script and some CSS I´ve managed to create a great FB landing page for the company I work for and it looks amazing:)
by: oscar on 2011-09-23 19:07:21 Thanx so much!!! your script ROCKS!!!
CHEERS
by: OmegaMan on 2011-09-22 23:19:40 This rocks. You did a bit of a complex task in a way that i could understand it. I've got CSS applied and now i have a mayan calendar countdown! Thank you for sharing (yes, you have a link on my site when it goes live).
by: DA Hayford on 2011-09-19 00:10:43 Thanks for your script! :)
by: ryan placido on 2011-09-10 11:23:02 hi,
tnx for your script, it helped me a lot. one thing, i would like to reformat it, like changing the font size using CSS, what should i do?
by: sudhir on 2011-09-06 07:46:59 Hy... is a nice code... but can be uses in multiple sessions in a single page? I need to have up to 10 countdowns in a single page with diferent periods of time... is this possible?
by: Cupry on 2011-08-23 13:46:13 Hy... is a nice code... but can be uses in multiple sessions in a single page? I need to have up to 10 countdowns in a single page with diferent periods of time... is this possible? 10x
by: Beverley on 2011-08-22 17:29:42 I am doing a project and trying to change the code to reflect the number of jobs lost since 01 February 2010. It should start on this date at 300 000 and count up by 1 every 2.54 seconds. I dont have the website up and running as yet.
by: viewer on 2011-08-20 20:48:53 Nice java code I think it's the simplest one and easily manipulated for everyone's needs. Thank you.
by: Nikolov DZvonko on 2011-08-19 01:29:25 Hi, I like Your script, works fine, but only one counter is shown. I have mysql database with date/time field with date in future. I need to count down from that future time till now. Example: Jimmy 31.12.2011 21.00 birthday Mary 21.11.2011 19.30 wedding ...... must show live counter: Jimmy 123 days 20 hours 15 min 25 sec (and live counting) Mary 89 days 15 hours 25 min 12 sec (and live counting)
how to do that? T
by: owara on 2011-08-18 13:32:16 Very cool bit of script. It was perfect for my blog. THANKS!
by: Gerry Rice on 2011-08-17 10:50:02 Perfect code for a little project at work.
by: Pamela on 2011-08-13 22:12:14 I forgot to mention I put the script in the body of HTML page
by: Pamela on 2011-08-12 00:47:40 Solution
I would like to let some one know who may have been having the problem with element being null(cntdwn) The script with TargetDate color CountActive ect. has to be called before the major script with all the function calls. I just out everything in one script and got it working. I was only having the problem with IE8. Now working fine on all browsers I have tried
Its always the obvious.
PamelaPDH
by: Pamela on 2011-08-11 18:28:45 I'm getting an error when I use the IE8 for this script it works on chrome and ff. I used the IE8 debugger and it complains document.getElementById("cntdwn").innerHTML = DisplayStr;
is null or not an object. I cntdwn in my css and on the HTML page the tag <span>
Appreciate your help Pamela
by: sami on 2011-08-01 17:27:55 Best compact code seen till now
by: night on 2011-07-29 06:09:08 hi, can I create weekly/daily countdown using this code? I want to create a countdown for a show that air every week at certain hour.
by: Stacey on 2011-07-28 07:44:19 Thankyou so much - just what I was looking for. Much appreciated!
by: Alexis on 2011-07-13 15:59:08 Thank you! This is most helpful. I Donated!
by: ahmad balavipour on 2011-07-09 12:24:14 thanks alot, very good javascript code
by: Pita Tuwere on 2011-07-08 14:34:14 Thanks For The Countdown Timer Java code.
by: dotnetn00b on 2011-06-30 14:36:22 Excellent script, works beautifully. Anyone know how to replace the numbers with a message when the countdown reaches zero instead of going into minus figures?
by: akhilesh on 2011-06-30 08:32:46 How to pass dynamic value - date to the TargetDate in javascript
by: Pablo on 2011-06-19 02:39:48 can JS create a count down timer with a specific target date which when meet changes the js timer to a count up timer?
by: Christine on 2011-06-18 01:51:57 Omfg. Who is the genius behind this? I've been looking everywhere for this thing! I just wanted plain text. No background or table and this is like the only place that has it. And it WORKED. I've been looking for this for hours and oh my god, just thank you. I love you guys. :') <3
by: varun on 2011-06-17 10:07:35 How to move the counter to specific place in my page?
by: J on 2011-06-15 13:45:01 Is it me or does this run fast? (Fireforx 4)
by: Mike on 2011-06-08 18:53:01 Hanna,
Javascript requires Month/Day/Year order. However, you can input "31 May 2011" and it will work just fine.
by: Hanna on 2011-06-03 10:43:55 Hi there, I have a question: I want to change MONTH to DAY and DAY to Month. for example: instead of TargetDate = "05/31/2011 5:23 PM"; TargetDate = "31/05/2011 5:23 PM";
Thanks all your scripts, so great.
by: scott on 2011-05-30 21:40:49 hello sent you an email but dont know if you got it, really like the counter.. i want to use it on a future website.. i was wondering if it is possible for the counter to have 2 leading zero's on 'day'? so that the day always displays 3 characters ie 001 or 365?
by: John T on 2011-05-27 16:19:32 This was the easiest to install, most hassle free, ad free website countdown I could find. It's really awesome! Thank you!
by: Azhar Kamar on 2011-05-27 08:57:59 Awesome! Simple. I'm definitely using this. Thanks!
by: Caiaphas Flag on 2011-05-19 22:18:56 The coming Rapture is now being counted down! To see how I used it:
My website is http://yeoldefalseflag.com
by: Caiaphas Flag on 2011-05-19 22:15:08 Thanks for the script! I downloaded the countdown.js and switched the src to point to my js! Thanks so much!
by: Ganybhat on 2011-05-19 05:55:30 Or How to create 10th of a second ?
Thanks
by: Ganybhat on 2011-05-19 05:28:12 How to show milliseconds ?
Thanks in advance.
by: Alexandre on 2011-05-10 14:54:04 teste
by: Las1YouLsee on 2011-05-03 19:07:16 Thank you! We use this every year to countdown to our annual camping trip. I downloaded the countdown.js as you requested
by: Lital on 2011-05-03 08:21:49 Thank you so much!
by: sr on 2011-04-30 04:34:20 Thanks! Using it on my new site. Very clean...NICE!
by: tomtastic on 2011-04-22 11:40:34 startrekcountdown.com
I see that the code works off the users computer, is there a way to use a central server time so that it won't differ?
by: Ray on 2011-04-22 06:50:00 Is it possible to to change the code to call test out of a folder to set the start point of the timer?
by: Garry on 2011-04-15 14:12:04 Great script. Thanks.
Do you have a version (or a modification) to show Years?
by: Davey on 2011-04-14 19:47:41 Great script! Super simple and easy to style, just what I needed. Thanks!
by: Jack Wadd on 2011-04-14 00:12:03 This is a great script! Thanks! I am using it on the site http://www.screw-paypal.com and it works really good. everybody loves it! Adds a sense of dread!
by: Diane on 2011-04-10 13:15:29 I'm using the modified script and figured out the modifications I needed to do for the results I wanted. I'm not a javascript programmer and wanted to know how I can pass a number from the web page back to the countdown script so I can vary the countdown results ?
If you want to see my countdowns, it's located at http://www.nracerts.org/
All my data is stored in a mysql db and I'm building my countdowns page on
by: Cindy on 2011-04-03 02:46:39 THANK YOU!! I've been looking for a script like this, and I am just getting into learning javascript, and you made this SO easy!!
I was wondering if there is a way to stack the numbers and letters like:
10 4 29 Hours Minutes Seconds
(As if it were in a table.) Tried putting it into a table and it wasn't working, tried breaking the words from minutes, nothing worked!
by: Valentin on 2011-04-01 13:05:21 Excelent work sir! It's possible to display hours over 24 like as 72 hours, 12 minutes, 13 sec ?
I tried to change in code: DisplayStr = DisplayStr.replace(/%%H%%/g, calcage(secs,3600,1));
with 1 instead 24 but with no succes.
by: Goulart on 2011-03-30 21:40:11 The routine is giving an error "countdown.js" in: document.getElementById ("cntdwn). FinishMessage innerHTML =; Message: 'document.getElementById (...)' is null or not an object It is not recognizing "cntdwn" ... What to do?
by: Goulart on 2011-03-30 21:36:50 The routine is giving an error "countdown.js" in:
It is not recognizing "cntdwn" ... What to do?
by: Pete Rands on 2011-03-26 21:56:03 Can not insert script on my web page, copy and paste will not work. Any ideas why.
by: vivek on 2011-03-17 04:12:38 thanks for giving a such good script
by: Steve on 2011-03-16 22:50:02 I'd like to set it up to do a 5 minute (or however many minutes) countdown and I'm having a hard time doing that.
Thanks in advance!
by: Ai on 2011-03-16 13:48:24 How i can modify the code to count date based on yyyy-mm-dd HH:MM:SS??? Thks
by: Diane on 2011-03-14 19:47:12 I needed more than 1 timer so I downloaded the modified version. The problem I'm having is I can't eval %%D%% from the javascript on webpage. Want to change display depending on time left. Example below would work if can get the value of %%D%% .
if ( /%%D%%/ >= 1 ) { cd1.DisplayFormat = "%%D%% days"; } else { cd1.DisplayFormat = "%%H%% hrs, %%M%% mins, %%S%% secs"; }
by: chesney on 2011-03-13 16:52:38 hi, thanks for the code! all i want to know is: how do you change the font and size?
by: yogesh on 2011-03-10 10:59:47 Thx for countdown code... really useful
by: aggson on 2011-03-05 09:31:22 Need help with a count up to display my age on my webpage @ local time. No need to count up from specific time. Local midnight (00.00) is enough.
Thanks in advance!
by: Julian on 2011-03-04 06:18:36 How do I change the size of the font? I'd like it to be really big. the whole screen.
and can I make the font a specific typeface?
I am a novice at Java. but i sorta know my way around it enough to change things. but not add new sections.
thank you for your help.
by: Krista on 2011-03-03 21:00:05 This is just what I needed. Thanks!
by: Peter on 2011-03-01 06:04:16 I couldn't get the original script to work, because I was getting a conflict, so I downloaded the modified script. It works great, however, I don't see in the new script where I can provide text when the timer ends like in the original. How would I do that?
TIA
by: Ken on 2011-02-28 22:03:37 Mark: Just translate the line reading: DisplayFormat = "%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds.";
And leave the %%D%%, %%H%%, %%M%%, %%S%% parts alone.
by: kaden hamilton on 2011-02-25 01:24:21 Thanks for your help.
by: Daniel on 2011-02-22 04:00:08 Awesome function, thanks heaps.
by: Mark on 2011-02-17 14:51:30 I would like to display "days, hours, minutes, seconds" in another language. Any advice on how to modify the script would be greatly appreciated. Thanks in advance.
by: Ken on 2011-02-09 15:51:59 Works fine in Firefox 3.6.13. If you are having a problem in Firefox, you may have JavaScript turned off of something is blocking it.
by: marc on 2011-01-27 20:48:59 is it possible to increase the size of the font
by: Ron F. on 2011-01-04 17:18:04 The script works fine with Internet Explorer 8 but wont display wit the latest version of Firefox. Any help available on this?
by: Enrico on 2010-12-23 18:52:40 You have found a solution to the compatibility of the Opera browser?
by: Marko Vojvodic on 2010-12-22 11:10:52 Thank you for the script
by: rh [admin] on 2010-12-16 21:40:09 your computer's time may be incorrect. the countdown runs against the user's computer clock, not some central server.
by: Asker on 2010-12-15 07:45:11 I change the date to the date today, but I change the hour. It said "It is Finished" Even it is not yet the setted time
by: Brooke on 2010-12-10 22:05:29 How can I place two counters on the same page without altering the results???
SO far when I paste the code and change the date..it alters the first counter and the second counter will not appear...help!!!
by: Guy Vincent on 2010-12-06 11:38:25 I used Mun Rashid's code for multiple countdowns, and it worked fine. However, when the counts get to zero, they begin counting up. Is it possible to implement Robert's 'FinishMessage' into Mun's code? If so, does anyone know how? Thanks.
by: majed906 on 2010-12-05 22:35:53 Islam in Saudi Arabia, Muslims
by: Frank on 2010-12-01 03:50:10 [email protected] using iframe you can run it multiple times on the same page.
by: saravanan on 2010-11-26 10:29:12 i want to run multiple times this counter on different time. it is possible.. Please help me with this code
by: Charley on 2010-11-22 10:23:33 Used with multiple lottery countdowns on a lottery pool site in development. Like a charm. Thanks very much. Simple, and excellent.
by: Manish Gupta on 2010-11-18 02:19:36 Hi,
There seems to be some problems in the countdown code. My target date is 11/22/2010 9:00 AM and considering today's date i.e., 11/18/2010 10:00 AM, then it should show 95 hours but it shows 22 hours
by: Habib on 2010-11-11 21:40:43 small script but surely is excellent ... thank you
by: kristen on 2010-11-10 00:37:42 I can't seem to get the count up to work. I just changed the date. Am I supposed to do something else too?
by: Wayne on 2010-11-09 17:54:38 How can we change the FONT Size and Style?
by: rh [admin] on 2010-11-08 22:58:30 sorry but millisecond doesn't work and for a good reason. the value changes so fast that it'll just tax the browser and you won't even see it change much anyways.
by: Corey on 2010-11-07 23:44:31 Hi, Thanks for having this code! It's awesome! But I was wondering if you could tell me how to add milliseconds as well (if that's possible?)? I tried adding %%MS%% Milliseconds. but that didn't work too well. Thanks in advance!
by: GavoTrav on 2010-11-07 05:06:20 Thanks for the count down!
Works perfectly for black ops!
BLACK OPS IN:<bR> <script language="JavaScript"> TargetDate = "11/9/2010 11:59 AM"; BackColor = "white"; ForeColor = "black"; CountActive = true; CountStepper = -1; LeadingZero = true; DisplayFormat = "%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds."; FinishMessage = "BLACK O
by: Neno on 2010-10-30 09:57:15 I want make on my web page debt clock of my country (Croatia) but I can't find any software. Can you help me?
by: buy wow account on 2010-10-29 10:08:10 Im impressed, I must say. Very rarely do I come across a blog thats both informative and entertaining, and let me tell you, youve hit the nail on the head. Your blog is important; the issue is something that not enough people are talking intelligently about. Im really happy that I stumbled across this in my search for something relating to this issue.
by: simon on 2010-10-29 09:08:32 is it possible to have months and years on the timer, my client is travelling for 5 years and wants to count it all. thanks
by: tomtastic on 2010-10-26 05:55:50 Looking to point the script to my server but how is it mapped out to the location in the code? Very nice and customizable script.
by: sKuF on 2010-10-22 12:37:13 Excelent script. Thanks!
by: Jack on 2010-10-06 23:15:52 Thanks.............very useful....
by: Lauren on 2010-09-27 23:40:01 Can you use Hex values for the Fore and Back colors? I've gotten the background to work with a hex color, but the text displays in black, not the hex value I entered.
by: Fo4thid on 2010-09-22 18:44:46 Im making a countdown timer for the overhad projector with some of your JS, but im new to all this is there a way to make a form input to use as the variable in the targetdate="" ? so my boss can easly put in a time or date and time and your countdown starts? please help
by: Rob on 2010-09-21 05:37:45 Is there a way to get this countdown timer to display more than once on a page? I can only seem to get it to display once even if it's referenced multiple times. Thanks....
by: francisco on 2010-09-16 12:44:50 Thanks friend Your code is wonderful
by: kevbo on 2010-09-09 04:28:57 error says document.getElementById(...) is null or not an object.
by: rh [admin] on 2010-09-04 15:27:46 @tim: read Q1 in the faq page
by: Crystal Arcand (3Stairs) on 2010-09-01 22:48:22 Just what I needed - thank you so much!
by: tim on 2010-09-01 21:22:44 How do you change the font size in the js? thanks in advance.
=)
by: Praveen Kumar on 2010-08-26 12:17:52 Thanks A Lot For Give A Code.. IT Works very fine......
by: Dimitrios Petikas on 2010-08-24 15:58:29 What would I need to change to make it count us continuously? Thanks.
by: Addy on 2010-08-06 11:25:02 HI Nice Script.
Thanks Addy
by: smiletour on 2010-08-06 10:03:15 tourphuket, phuket,tour,good website
by: TheThoth on 2010-08-02 05:15:29 Thanks bud! I have your script running on the GuysOnFOSS blog.
by: jilly jopper on 2010-08-01 15:53:59 can you hide things in the multiple-clocks script when they become zero? i built extra digits (year, month and week) and it really takes space. thanks.
by: Dennisiej on 2010-07-30 14:55:40 Never mind, found out myself
by: Dennisiej on 2010-07-30 14:53:42 How do you remove the leading zero in the multiple clocks-script?
by: Joyanna222 on 2010-07-28 13:28:27 I was able to get 2 count "down" clocks on my SharePoint site using Mun's modification but I really need them to count the number of days since out last injury. So, I need to count up. I can't figure out how to change the code to count up. Any help?
by: Arockia Raj on 2010-07-28 12:25:20 The problem I have is that the clock do not stop counting,when the clock come to 0 it begin go backwards counting like this.-1 d, -1 uur, -9 min, -3 sec . I don't want this. I need help fast please mymail Id : [email protected]
by: AAA on 2010-07-25 04:38:51 never mind...i changed the color by my self
by: AAA on 2010-07-24 21:05:31 i want to add color to finishmessage : FinishMessage = "It is finally here!";
how do i do that?
by: rhaethe on 2010-07-24 01:30:22 Is there any way to have no background color set at all?
by: rh [admin] on 2010-07-23 03:18:52 see Q1 in the faq page
by: RonJ on 2010-07-22 15:19:49 It would be nice if you could change the Font size also. Not a programmer myself... It was fairly easy to get this working, but modifying to allow a different font size is killing me...:(
by: Ronny on 2010-07-18 18:52:29 I want to put the multiple clock into my website.The problem I have is that the clock do not stop counting.When the clock come to 0 it begin go backwards counting like this.-1 d, -1 uur, -9 min, -3 sec I need help fast please I am from the netherlands. my email adres is busi[email protected] and my skype is businessman_nl please help
by: rh [admin] on 2010-07-12 01:56:43 sorry but you're out of luck with google sites. they don't allow certain tags and <script> is one of them.
by: Wayne Rhodes on 2010-07-11 18:34:08 The URL for my homepage is: http://sites.google.com/site/baseballarchive/Americas-Pasttime
Like I say...I am not sure exactly where to paste the code you provided. I want it to be on a page by itself (temporarily called "xxx").
you can see it is a "google sites", and I don't know how to edit the page to get your code in.
by: rh [admin] on 2010-07-11 15:14:08 it's possible that your hosting service or your html editor is clobbering the tags, thus rendering the code block broken. feel free to share a url here and hopefully someone will take a look.
by: wayne rhodes on 2010-07-10 17:59:10 url above
by: wayne rhodes on 2010-07-10 14:44:46 ok...i am a web novice. you say "copy and paste to your web page". I do that and I get the code pasted in...not executing. Am I supposed to go in and add it to / modify the HTML code for my page? Tried that and got serious warning error box. Please advise. thanks
by: Min. Allen on 2010-07-09 21:29:35 I was wondering how can I make it repeat weekly like if I set a countdown for Wednesday but want the counter to reset for the following Wednesday after the initial wednesday ends and the script ends? Is this possible?
by: rh [admin] on 2010-07-06 03:10:44 if you mean the script src tag, it's prudent to define the parameters before including the script src that makes use of them, or else there will be errors.
this may not be necessary for some browsers as they defer loading and executing the scripts, but better to be safe.
hth
by: Yehuda on 2010-07-05 09:17:26 Just for my enlightenment - why does the script block have to be on the bottom?
by: pimes on 2010-07-01 05:02:09 The last line of the code I posted was cut off. Here it is: if(CountStepper>0) gsecs = Math.floor((dnow.valueOf()-dthen.valueOf())/1000); else gsecs = Math.floor((dthen.valueOf()-dnow.valueOf())/1000); CountBack(gsecs);
by: pimes on 2010-07-01 05:00:43 I think I've got the Safari on a Mac issue worked out. The script worked fine for me in Safari 3.0+ but didn't in 2. I changed the way countdown.js calculates the difference between the current time and the target time. Change the last few lines of countdown.js to this: if(CountStepper>0) gsecs = Math.floor((dnow.valueOf()-dthen.valueOf())/1000); else gsecs = Math.floor((dthen.valueOf()-dnow.valueOf())/1000); Count
by: Mark Slawinski on 2010-06-25 22:08:21 just wondering, how do you make it sop when it reaches the desired date? thank you.
by: Chuck on 2010-06-25 12:02:05 Thanks very much! Just what I was looking for!
peace
by: Ferdy on 2010-06-23 14:12:48 This is the VERY BEST COUNTDOWN TIMER I ever found... very easy to use and configure. I've used it several times. Thanks!
by: rh [admin] on 2010-06-10 02:29:39 code is fine and should work. feel free to share a page link and hopefully someone will look at it.
by: Jenny on 2010-06-09 02:25:04 I still get the orginal count down. Here is wat i have: <script language="JavaScript"> TargetDate = "06/09/2010 1:00 AM UTC-0500"; BackColor = "palegreen"; ForeColor = "navy"; CountActive = true; CountStepper = -1; LeadingZero = true; DisplayFormat = "%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds."; FinishMessage = "Time's Up!"; </scrip
by: David on 2010-05-31 23:50:47 Thanks for the clock, Robert. It's just what was needed. See it in action at www.fieldofficeonline.com home page.
by: Lewis M on 2010-05-28 03:53:32 Thank you very much, it's about time somebody made it simple, good job buddy.
by: Marco Vega on 2010-05-25 02:17:18 Excellent mate, thank you, my html is commented with a link back to this page.
by: JavaScript Countdown Timer on 2010-05-24 02:03:35 that's all cool & great js countdown, thank you very much for sharing.
Can you give me favor by <a href="http://www.javascriptbank.com/submit/">sharing this countdown</a> on my JavaScript library?
Awaiting your response. Thank
by: Anna on 2010-05-23 16:10:30 Saw now that it was just appreciated. Will fix that. =)
by: Anna on 2010-05-23 16:07:22 Thanks alot. It�s really simple and useful. So little code. =) thanks again.
just one question: do i need to refer to you somewhere? the src should be to my page?
by: Ana on 2010-05-21 20:47:36 Muchas gracias nuevamente!! He agregado su contador sin inconvenientes en el sitio web: http://www.supercanal.tv
by: Jarryd on 2010-05-16 13:32:39 thanks. this countdown timer worked on my site. had no problems whatsoever in setting it up. don't know why the other are complaining, was pretty basic
by: Ana on 2010-05-13 16:43:21 Muy buen trabajo gracias!!!!!!!!!!
by: kinkuna on 2010-05-08 15:40:27 Still doesn't work for me. <script language="JavaScript"> TargetDate = "5/08/2009 8:03 PM UTC-0400"; BackColor = "none"; ForeColor = "white"; CountActive = true; CountStepper = -1; LeadingZero = true; DisplayFormat = "%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds."; FinishMessage = "Go, Go, Go!"; </script>
by: rh [admin] on 2010-05-08 02:57:13 your code block is incorrect. your script source block is up top and you need 2 script blocks, not one. follow the example on the page as shown. just point the src to you own site as you have done. good luck.
by: kinkuna on 2010-05-07 21:35:58 and i still get the original countdown
by: kinkuna on 2010-05-07 21:33:50 My code is: <script language="JavaScript" src="http://theempire.ucoz.com/countdown.js"> TargetDate = "05/08/2010 8:03 PM "; BackColor = "none"; ForeColor = "navy"; CountActive = true; CountStepper = -1; LeadingZero = true; DisplayFormat = "%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds"; FinishMessage = "Go, Go, Go !!"; </script>
by: Mateusz on 2010-04-30 22:07:50 Good script, thanks a lot. Used it here: www.franciszkanie.tv
by: Lobo on 2010-04-18 05:15:27 I wrote one too :-) http://praveenlobo.com/blog/javascript-countup-timer/
a demo page - http://praveenlobo.com/blog/wp-content/uploads/2010/04/counters_demo.html
by: kakimu on 2010-04-15 20:40:17 Great tools. Will use the tools at http://www.transportkenya.com later this month.
May God bless you. :>
by: Marvin on 2010-04-14 14:04:46 @Grissli and Phyllics Can't get the whole thing fit because of the limit, but here it is:
http://rapidshare.com/files/375791886/script.txt
by: uday on 2010-04-12 19:11:28 bullcrap!!.....its noting but just referencing script page from another source.....
by: Liviu on 2010-04-12 15:26:21 how can i set the script to count up from a date?
by: Phyllis on 2010-04-05 21:12:05 I'm wanting to use this a little differently. I can get it to count up but I want it to jump by 170 every second. I won't be displaying the days, hours, or minutes and will change the seconds to read total to date. Can that be done with this script?
Thanks !!!!
by: Grizzli on 2010-04-02 11:41:25 Hello,
The script is great indeed. Just how do I get it to display the total number of seconds? Like instead of "0 days, 0 hour, 59 minutes, 59 seconds", I want it to read "3599 seconds" ?
by: Jude on 2010-03-31 15:58:12 Hi, excellant little script. Is there any way to round up the minutes value as I'm not displaying the seconds?
by: Albert Wiersch on 2010-03-23 20:22:30 Thanks! I am using your countdown timer here: http://www.htmlvalidator.com/beta
I like it better than a flash timer I was using previously. This one is "clean & simple".
by: Christine on 2010-03-15 16:56:31 Actually... I figured it out. Thanks!
by: Christine on 2010-03-15 16:52:54 Where do I enter the code on the website? I'm not a rookie, but not an expert at web design.
Thanks!
by: Suz on 2010-03-14 18:47:39 PERFECT! Just what I was looking for. Thank you!
by: Ehinarr on 2010-01-24 21:30:13 Hi, Nice work, countdown.js works like a charm. Thanks a lot. How to make disappear days, hours and minutes when countdown for each one reaches zero? Something like if 0days, do not show it. Thanks again.
by: JP on 2010-01-22 08:08:47 Use div tags or css to control the size.
by: AV on 2010-01-20 20:01:09 Is there a way to increase font size?
by: Maria V. Campano on 2010-01-05 20:14:23 I figured it out! Sorry, the code is correct, I was using a calendar, to manually count the days, that only had the 5 workday week so I was not counting the right number of days since Sunday and Saturday were not in the count. Thanks for a great code!
by: Maria V. Campano on 2010-01-05 18:07:56 I do not get the correct number of days countdown. I have used the code by itself and I still get the wrong number of days in countdown.
Your prompt attention to this matter is greatly appreciated.
Thanks!
by: SuperWaz on 2009-12-30 18:42:46 Thank you. Works a treat.
by: nic on 2009-12-27 03:43:46 I've tried to add a static (nonactive, just zeros) coundown timer under my countup timer but can't get the second one to appear. I even tried to add a active countdown timer. What should the code look like?
by: rh [admin] on 2009-12-09 02:57:32 for fonts, see q1 on the faq page.
by: Sara on 2009-12-08 16:17:45 Can someone provide me with the code to modify the font size of the whole sentence that is displayed? THANK YOU!!
by: rh [admin] on 2009-12-08 02:30:48 just about all modern email readers block scripts for security. so in general, the counter will not work in an email.
by: rak on 2009-12-06 23:56:43 For Safari users getting a 'NaN' error when using a UTC time option. Switch UTC with GMT and it seems to work.
by: nic on 2009-12-06 04:36:59 Is it possible I can add a countup timer into an email that I send? I've been trying it with no luck.
by: Drake Burns on 2009-11-17 14:37:16 I am creating an online test for a class. I wanted to know if it is possible to make the test automatically submit the answers when the time limit is reached. Can anyone help me with that.
by: Lourens on 2009-11-14 06:17:59 I want to use it as a count down timer for lectures and then calling the next count down when time has run out. I.e. 1st lecture starts at 7:00 PM for 40min, then 10min break, then another 40min lecture, then a break again etc.
I've got the whole thing working well except I do not not how to drop the date part. I do not want to count down to any specific date but only the specific time on any day I open the page.
Please help
by: Henze on 2009-11-11 13:39:12 I changed it a little for my own needs (like made it a function that canbe called every time you want on just one page) and included an option to let it synchronize with the clock of the server using Ajax every 20 seconds! the server returns his count of seconds left until the given date!
by: c on 2009-11-10 17:26:42 Hmm has to be something wrong here. I cant change the targetdate, whatever i write the counter shows 4098 days left :/
by: assd on 2009-11-07 15:38:21 Thx you
by: Firi on 2009-11-06 10:47:08 Is it possible to make it so that once the timer reaches the date specified, it adds 7 days to the time so that it can be a weekly countdown?
by: Gary on 2009-10-31 19:56:49 i see in the double clock when both run displays same thing is there way that the first clock does "aution over" second clock when run down goes to a link?
by: khaja on 2009-10-29 08:06:04 Superb code.. u r a great programmer.. Thank you.. :)
by: coxon2 on 2009-10-21 18:28:17 Gracias por el contador, estaba buscando algo asi ya lo agregue a mi pagina, saludos!!! desde mexico
by: Rod on 2009-10-19 00:05:51 I'm trying to get multiple times on one page. I created 2 seperate folders, put the countdown.js file into each. On the web page I had one pointing to one folder and the other to the other folder. I get "underterminate string constant" error and only 1 of the 2 shows up. I then changed the file names to 2 different file numbers and get the same error. WHAT am I doing wrong? or is it not possible to have two JS files on 1
by: Eric on 2009-10-18 19:57:24 Thank you very much for the timer script. I have integrated it into my web page documenting my attempt to quit smoking.
by: Eric on 2009-10-18 19:07:23 Thank you very much for the code. I have copied the countdown.js as you suggested and moved it to my server to lessen the load on yours, as well as added a link to your site for credit. Thanks again!
by: Frank on 2009-09-21 14:30:15 Great counter!! When using the counter to count down from 40 seconds to zero, is it possible to have the counter re-start when the countdown reaches zero? Frank
by: rh [admin] on 2009-09-16 22:46:54 not without modifying countdown.js and hosting it on your own site (you are welcome to it.) the javascript code for redirecting is: window.location='http://whatever.com';
put that after the following line in the code and it's good to go: if (secs < 0) {
hth
by: george on 2009-09-16 17:23:10 hello, is it possible to redirect to redirect to another web page when the timer reaches zero? thanks in advance
by: Lee Bekir on 2009-09-02 12:10:15 This is the third year I am using this for our polio conference countdown. Non-profit orgaizations like mine ALWAYS appreciate truly FREE and ad-free software!. Thank you!! www.njpolio.org
by: kiss on 2009-08-29 10:01:03 Really good idea just about this list! One would see law essay writing service to buy essay online, as well students would like to order <a href=" http://www.essaysexperts.com">custom essay writing</a>.
by: sunflower on 2009-08-13 13:17:34 thank you...this was so easy to add to my family's webpage...
by: Eddie Ma on 2009-08-04 13:46:12 Thanks for the countdown script :D -- I might edit it so that I can have more than one countdown timer going to different times. I bet the easiest way is to push all the parameters into a class.
by: Eno on 2009-07-15 07:24:00 I find solution for my problem with possition pf clock. I just move script declaration tag on place where I want to show clock.
by: Eno on 2009-07-14 14:39:04 I use myEclipse, jsp pages and I was trying to use script like in example on this page. I don't know how to define position of clock. I try with div, table, p tag and always I get clock in top of my page. Thanks.
by: ash007 on 2009-07-13 13:32:12 Hi, I would like to call one ajax function when the auction over for multiple countdown.is it possible? Please give some example..? Thanks in advance
by: Matt on 2009-07-12 18:57:38 Just what I was looking for :) Launching a new website tomorrow and I wanted to build the anticipation. Thanks!
by: Jenny on 2009-07-09 20:46:58 When we use the code, we get 7,6,5,4,3,2,1,0 Days.
We would like it to do this: 7,6,5,4,3,2,Last Day! Is there a way to do this?
Thanks
by: rh [admin] on 2009-07-06 15:16:16 sure thing. please see Q9 on the faq page about year/month challenges.
by: Don on 2009-07-03 18:32:03 First I want to thank you for a great program.
I see a few people have asked for "years" to be added to the counter but did not see any responses. Are you gong to add "years"...I sure could use it?
Thank you.
by: Seab=n on 2009-07-02 18:28:19 Thanks for this great script! I use it all the time!
by: Ashitha on 2009-07-01 11:01:20 Hi, This code is very helpful for me.But when click on the submit button how can I increment the time countdown value 20 seconds.
Thanks in advance
by: Ashitha on 2009-07-01 09:22:45 Hi everyboy, This time countdown code is working fine for me.Insie while loop also I can excecute this code.but when click on the button I want to increment the time 20 seconds. How can I do this??
by: Tyler on 2009-06-30 12:40:14 Hey this is awesome but for some reason the count down on the site just... broke for some reason... i tried just C&P again which worked intill i set the date tell me if this is right
"06/04/2009 4:00 PM UTC-500"
it is set for july 4th :D anyways email me!
by: BOB on 2009-06-22 23:06:54 THANKS ABUNCH <script language="JavaScript"> TargetDate = "12/31/2020 5:00 AM"; BackColor = "palegreen"; ForeColor = "navy"; CountActive = true; CountStepper = -1; LeadingZero = true; DisplayFormat = "%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds."; FinishMessage = "It is finally here!"; </script> <script language="JavaScript&
by: BCS on 2009-06-20 18:17:46 Thank you, that is exactly the concept I needed to see.
by: avume on 2009-06-17 13:49:08 I LUV IT
by: shadow on 2009-06-17 13:47:12 Thanks for this, its great. here is the script that when you click on it takes you to this page:
Wah, sorry, i didnt have enogh characters left! anyway to do it with the link just add :
Thanks for this script!
by: David on 2009-06-10 17:36:52 Thank you so much!
by: rh [admin] on 2009-06-09 02:23:57 for fonts see q1 on the faq page. for image must rework code to set css background image. then set "display" css to "none" when reaches 0. .NET should make no difference. try pure html first and then add .NET code.
by: laserbug on 2009-06-08 20:21:37 Hello , great script, but one question, is there any possiblity to change font and size of the digits. if so can you tel me how ? i am just starting with javascript greetings laser
by: Gerry Vrbensky on 2009-06-08 20:07:21 This is an excellent script. Works like a charm. Much Appreciated.
by: helen on 2009-06-04 10:44:19 this countdown is great!!! What do I have to do to put an image as background? and when the countdown arrives to 00 days and 00 hours... I want just that it disappears any help? thanks!!
by: Tanya on 2009-06-01 18:22:10 I can not download the code to enable mutliple countdowns on one page
by: Max on 2009-05-31 03:17:06 I am using .Net. I can't get this to work as it throwing error that 'document.getelement is null.
Do I need to put some ID to the control (cntdown) ?
here is my code- <head runat="server"> <title>Untitled Page</title> <script language="JavaScript" type="text/javascript" src="Scripts/countdown.js"></script> </head> <body&g
by: jdsprst on 2009-05-30 06:07:37 it's perfect but i can't call more different target dates in a page. thank you very much
by: Matt on 2009-05-15 09:38:43 It works very well. Thanks!
by: P Prog on 2009-05-14 20:07:28 This is such a useful and configurable script.
Would it be possible to add one more piece of information and that would be the percentage % of the total time completed?
Thanks...P Prog
by: raptory on 2009-05-10 09:14:28 nice script! http://raptory.com
by: Matt on 2009-05-07 20:23:27 This script works great in IE, but certain (not all) Firefox users experience the countdown numbers disappearing/reappearing each second. Has anyone else had this problem with FF and what is a solution?
by: freedom123 on 2009-05-07 02:54:32 hi learner,
using Tilesh Khatri file , u wont get that error, i also come across when i copied directly,
Thx..
by: EBohl on 2009-05-05 03:02:04 When I run this script it doe not calculate the time correctly. TargetDate = "09/07/2009 1:15 PM UTC-0800"; BackColor = "white"; ForeColor = "#0033cc"; CountActive = true; CountStepper = -1; LeadingZero = true; DisplayFormat = "%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds."; FinishMessage = " It is finally here!"; </script> <script language="J
by: Learner on 2009-04-30 08:23:41 Hi Thanks for the code. When I try to add this and run there is an error at the end of the page and its not running the time. It is saying that document.getElementById(..)is null or not an object. I am a newbie for javascript. Can anyone pls help me out. thanks a lot in advance
by: Eva on 2009-04-24 11:34:20 Great! I could never have worked it out myself. Thanks!
by: Joe on 2009-04-22 22:43:55 Hey, just wanted to say thank you for this script. We're using it to display a count down for news release - this saved the developers about 4 hours of work.
by: Alfredo Uribe on 2009-04-14 23:46:34 hi. is it possible to add the months and the years??
by: P on 2009-04-08 14:18:53 wonderful! simple! highly customizable! check it on my site
by: Glenn on 2009-03-24 05:14:01 Just a short note to say Thanks for providing a hassle-free customizable script- just about impossible to find these days...
by: Benjamin Higginbotham on 2009-03-11 17:32:57 I was wondering if it is possible to have the counter count down to an event with text in front of it, then start counting up as soon as the event hits with different text? For example:
Space Shuttle Discovery Launches in T-1day, etc., etc Then once it launches switch to: Mission Elapsed Time: T+1hour, etc, etc.
Thanks!
Benjamin
by: omendesigns on 2009-03-10 14:59:49 ok, so my question is as follows:
I am using this as a countup clock, and I need to know how(or even if) on an "onclick" function if there is a way to set the targetdate to the current time/date. Is this possible?
by: Kelly on 2009-03-08 23:49:22 I'm trying to add this code on in several places on the same page. The first code shows up fine, but my second code, that I changed to the new date, won't show up at all. Can you help me, please? Thanks!
by: Luke on 2009-03-08 12:17:15 I was wondering how to remove the minuses when the timer had gone over the specified date any way to do this? awesome script though :)
by: iron arm on 2009-03-06 15:41:03 The code seems to require a <br> before the script or it's blank. Strange
by: Joy on 2009-03-06 05:46:29 I'm trying to alter and place the timer on my myspace page. Input code into notepad - saved as .htm, previewed in my browser as I was editing and everything looked fine. But than when I copied the code to my myspace page it shows the code instead of the countdown timer. So I copied over your code from this page directly and it's still doing it. (I am fairly new to coding) So I'm not sure if I'm doing something wrong or if it
by: Yoyo on 2009-03-06 03:03:30 how can I set the time clock for 5 minutes? For example, if someone visits to my site and clock starts from 5 minutes and stops at 0 minutes after 5 minutes.
by: Nige on 2009-03-05 17:10:14 This Ticker is perfect for what I want. I followed the instructions - copied and pasted - altered the target date, but then still got the countdown from 12/31/2020.
Can you help me.
by: Josh on 2009-03-04 17:16:58 I only want to show days, but I don't want the timer to show "0 Days" for the last 24 hours. How can I make the timer say "1 day" until it reaches the target date?
by: Mark on 2009-03-04 10:30:07 I wanted to completely remove leading zeroes. I re wrote the first function in the javascript a tiny bit. Here is my new version, I've just added one line.
function calcage(secs, num1, num2) { s = ((Math.floor(secs/num1))%num2).toString(); if (LeadingZero && s.length < 2) if (LeadingZero && s.length < 1) s = "0" + s; return s; }
by: rh [admin] on 2009-03-04 02:44:14 don't know about that error. all is fine now but if you need an alternate url to download, go here: rhashemian.googlepages.com/countdown.js
hth
by: Ron on 2009-03-04 01:11:42 Still not working for me. "DNS setting expired" If you could post the script's text, I'd be happy to quit sucking your bandwidth. Thank you very much for writing and sharing this! I really like it!
by: Bart on 2009-03-03 17:18:58 Thanks. It works perfectly again.
by: rh [admin] on 2009-03-03 16:16:13 we're back up now. sorry everybody, demand on the tools exceeded resource limits on the host and they just shut off the account. guess it's time to open the wallet wider :)
by: Count Master on 2009-03-03 14:45:49 counter dead disaappeared today.
by: Bart on 2009-03-03 14:00:12 My counter stopped working today... It vanished from my website
by: jruz on 2009-02-28 05:35:07 thanks a lot!
by: Menn on 2009-02-28 02:20:03 Ok, I have it running with just seconds and repeating itself. The only question I have now is: how do I set it to a specific timezone. I am using new Date (), but whenever I try and specify the zone, it goes back to the defaults.
by: rh [admin] on 2009-02-27 02:13:33 the counter is working properly based on the usa date style: month/date/year. you can specify 3/11/2009, or even, march 11,2009.
by: Animaster on 2009-02-26 22:29:27 Please help me... Why does my timer display 249 days left when I write "11/03/2009 5:00 AM" in the code? Please help me.
by: Menn on 2009-02-20 16:21:33 Is there any way to display the counter in seconds only? (instead of days / hours / minutes / seconds). And to have it repeat itself once the counter hits zero?
by: Crystal on 2009-02-19 04:26:39 How would I code this so that it does not allow the same computer to visit the page more than once, or refresh the page, so that the countdown restarts?
by: Matty on 2009-02-18 08:59:45 Hi - love the script, but was wondering how I can check when the timer has already reached zero...? Obviously I know that the FinishMessage solves this, but only for users already on the page. How can I stop the countdown displaying negative when a 'new' user lands on the page? (Problem is I don't wish to update the TargetDate to the next day (my event is daily) since the event is 'Live' for a few hours once the countdow
by: Marc on 2009-02-13 09:01:45 Figured it out. Thanks anyway. btw...this truly is a nice lightweight script with no body onload bullcrap. thanks!
by: Marc on 2009-02-11 19:37:40 Hi! I am using asp.net to create a quiz engine. the time that has to be set varies among different tests, so i cannot hardcode it in the methods that you describe below. i am completely useless at java script. Any ideas?
by: Andover IT on 2009-02-11 12:52:30 A great script - small, simple, lightweight and customisable.
by: miftahhilmi on 2009-02-07 19:21:51 thanks
by: sonia on 2009-02-06 19:20:06 I reconstructing a web site. This was beautifully short, elegantly scripted. Good work! Thanks!
by: Don on 2009-01-23 23:54:35 Very Nice Code. Thanks for sharing!!!
by: Mandy on 2009-01-23 20:20:21 THANK YOU!! THis is the cleanest countdown clock, visually and technically!
Thank you for sharing.
by: van on 2009-01-17 17:41:16 is it possible to change the font, especially the size? thanks, and great simple product.....
by: Van Tyner on 2009-01-17 17:40:56 Can you make the count down larger? Was wanting the #'s to be bigger.
Thanks
by: Limpan on 2009-01-14 15:58:36 Nice mate saved me alot of time.
by: Benson on 2009-01-11 21:01:57 how do you converting the day varibale into hours? say...1 day 3 hours 20 minutes..etc into 27 hour 20 minutes..
by: Rob on 2009-01-10 20:19:57 Yes, use the <font> tags inside were it says DisplayFormat = "...
by: Robbie on 2009-01-10 19:52:02 Hey, is there any way to change the font? Great work tho, really like it
by: Chris on 2009-01-09 15:22:10 A thing of beauty, works great,
thanks!!
by: Jason on 2009-01-07 20:16:38 I want to show only the number of hours until the event. When I set the timer to count by -3600 and display only the %%H%% the results are the number of hours from NOW until the event. ie; at this moment it should show 556 hours, but it is showing 3 hours. It is 15:00 now, and the end is 18:30 in 23 days.
by: rh [admin] on 2009-01-06 14:01:23 browse to your page and view source. check the script block to see if it looks correct. your web page editor may be breaking it.
by: CEMariette on 2009-01-05 15:02:43 I have some what of a problem. I have inserted the link, adjusted the calendar days but its replicating the date shown on this web page. How can I get the countdown to reflect a 06/16/2009 date?
by: Geoff on 2009-01-05 02:21:02 Hi, Great Script, works perfectly! Please advise, if it's possible to change the date formate from mm/dd/yyyy to dd/mm/yyyy. Thanks.
by: Geoff on 2009-01-05 02:18:00 Hi, Great Script, works perfectly! Please advise, if it's possible to change the date formate from mm/dd/yyyy to dd/mm/yyyy. Thanks.
by: Steve on 2009-01-03 21:06:24 hi yeah i was just wondering how i go about setting it to a 5minute countdown?
sorry im a complete noob :(
thanks for any help
by: Xiah on 2009-01-03 06:02:00 Hi, this countdown is so good. And i have a question. i have a endtime field, i countdown duration between endtime and current time, so i want to insert enddate within TagetDate(i do asp.net c#).How does it work? Thanks so much. ^_^
by: Foster McLane on 2008-12-31 18:00:07 Sorry about the broken link, go here instead. http://rapidshare.com/files/178514576/countdown.js
by: Foster McLane on 2008-12-31 01:53:13 With some modifications I made to the main script, you can make firewaorks come up at the end thanks to fireworks.js by http://www.schillmania.com/. Go to http://rapidshare.com/files/178327121/countdown.js to download the modified countdown.js. (Hint looks best on dark background) Modified countdown.js will change BackColor to the entire page (or frame) background.
by: Nandu on 2008-12-29 07:50:54 Im getting the countdown of the desired time(60secs), but when i select for next button it is again starting from the initial time(60secs). Because the JSP page id getting refreshed when i go for the next question...... Please help me......
by: Brian Sullivan on 2008-12-25 17:26:57 How would I go about pausing the timer? (Long story short I'm putting this in a mac os x widget for a score overlay in a basketball game)
by: rh [admin] on 2008-12-17 02:59:09 the hoster had an outage for a bit but it's back up. sorry for the trouble.
by: Ben on 2008-12-16 23:38:50 I love this counter, have been using it for awhile. I accidentally deleted the countdown.js file so I came here to get it again, but the link is broken. If you could get please fix it, it would be much appreciated.
by: George on 2008-12-15 19:20:43 Great counter. I would be great to be able to have multiple counters on the same page. The two modifications that have been posted work but do not allow the user to change the font face, color, and size.
by: rh [admin] on 2008-12-07 18:27:15 to count up, set TargetDate to the starting date/time and CountStepper to +1.
by: Flemming on 2008-12-06 17:36:13 Hi
I would like a "counter" (countup) - displaying: "whatever I chose" is now: XX Years, XX Months, XX Days, XX Hours, XX Minutes, XX Seconds old
Would this be possible? I've only found counters that display age in days!
best regards Flemming
by: Charlie on 2008-12-05 21:43:32 Great work. Simple and powerful.
by: Charles Bettell on 2008-12-04 19:49:05 To change font size and type, click on the following link...
http://www.esox.co.uk/countdownscript/countdownscript.htm
by: Charlie Bettell on 2008-12-04 19:38:34 Modified...
<font face="arial" size="3"> <script language="JavaScript"> TargetDate = "12/25/2008 0:00 AM"; BackColor = ""; ForeColor = "green"; CountActive = true; CountStepper = -1; LeadingZero = true; DisplayFormat = "%%D%% days, %%H%% hours, %%M%% minutes and %%S%% seconds left"; FinishMessage = "It is finally here!";
by: rh [admin] on 2008-12-02 03:43:00 look at Q1 on the faq page
by: Diane on 2008-12-01 00:25:09 Can I change the font? I want it to be arial and slightly smaller.
by: Justin Hogen on 2008-11-29 05:16:03 I am looking for countdown that displays in raman numerals. I have most of the code but hit a wall.
Fun project, if ya wanna try :)
Justin
by: DMW on 2008-11-21 15:29:33 My e-mail for my post below - dawn @ sun set we bde sign . com (no spaces)
by: DMW on 2008-11-21 15:28:35 Hi,
I need a counter that will count up by the day. For example - XXXXX people have been killed in 2008. The number would increase each day by 50. Ideally, it would reset every January 1st. Also, need it on a graphic.
Is this possible? I've tried to manipulate clock tickers and page count tickers to make this work but so far, no luck. Any help greatly appreciated as this is for a charity.
dawn @ sun set web de s
by: Rich Owings on 2008-11-19 17:28:29 I need a timer that will let me drop in some HTML when it goes off. Can I do that with this?
by: tmplr on 2008-11-09 22:01:19 Hi, pls i need hel i need a ounter to reach a goal, y want to start with 1 and every 4 second raisw 1 until arrives to the 2000000 ple who can help me whith this. my email is [email protected]
thnks
by: Kidino on 2008-11-04 05:35:42 I created a simple PHP-Javascript countdown so that I can use the server's time instead of the client's time. You can also define different timezones. PHP is to fetch server time, Javascript is for the animation.
http://www.minisitegallery.com/blog/php-javascript-countdown-script-with-timezone-setting.html
by: Kristopher E.J. on 2008-10-26 01:40:27 If you need a simple countdown from a given number of seconds in the future as opposed to a specific date (such as 5 minutes from now, or 300 seconds in the future) add the following line below "TargetDate = new Date();"
You can change 300 there to represent how many seconds you want to add, or change setSeconds and getSeconds to minutes, hours, days or whatever you nee
by: Trogdor on 2008-10-16 21:32:38 Hey, I have been trying to make multiple clocks on my site, and I thought it worked.. But when I refreshed the clocks also reset to the starting time. Can you explain why this is happening? Thanks.
by: aka on 2008-10-15 18:53:16 Hi, if you want to see multiple countdowns working in action, i have 3 running on www.motor-racing.net/demo.html
comments welcome.....still under construction. thanks
ak
by: Gareth on 2008-10-15 02:32:49 Thanks for sharing this!
by: AKA on 2008-10-10 22:34:35 Hi, Great script. just a quick point. UTC is the universal Time Coord, this is the same as GMT and Zulu Time, this doesn't include BST (British Summer Time) Sping +1, Autum -1. so if your an hour out you need to and 1 hour.
thanks
by: SeanH on 2008-10-10 19:34:50 I love the code! Thanks! I'm not that familiar with JavaScript dealing in ASP.NET/Vb.NET. I want "TargetDate" to change when I change the value(text) of a label or Text box. I'm sure it's something simple..but I don't know how. Anyone?
by: Elvis on 2008-10-04 00:26:55 then set the TargetDate = '<? print $_SESSION['javtime'] ?>';
Date has to be in this format in order to get the correct time of your server: 12/31/2020 5:00:59 AM UTC
by: Elvis on 2008-10-04 00:24:25 For Those of you that need a php way of adding 2 hours from current time:
return $myTime
by: Elvis on 2008-10-04 00:21:53 I find this script very useful, i would like to know if there is a way to start/stop this script dynamically.
Thank You
by: urbankid on 2008-10-03 11:44:17 Thanks for the script.
Erased the finish message and added a count up timer function ;) Hope somebody finds it usefull! Thanks for a great script.
http://www.megafileupload.com/en/file/79933/countdown-js.html
by: jenlow on 2008-09-19 07:56:29 hi .
the countdowan does not go the to date i specify (in the target date). how to solve this ? =\
by: cet on 2008-09-13 14:41:09 o yehaa
by: Chris on 2008-09-08 13:42:09 Thank you, you code worked perfectly. I'll recommend your site to everybody. Regards. Chris
by: Kredyty on 2008-09-02 10:22:49 GR8 site!
Kredyty
by: rh [admin] on 2008-08-28 02:09:19 just append the seconds after the minutes. e.g. 12/31/2020 5:00:59 AM UTC
by: Cuculetzu on 2008-08-27 12:49:05 Hi there, How can I set the time even with seconds?
by: rh [admin] on 2008-08-24 02:10:49 to change font see q1 in the faq page
by: Alin on 2008-08-21 21:17:02 Wish there was the ability to change the font size... us disabled people with vision difficulties who use these on our website to countdown to surgeries need big font hehe.
email me alin0steglinski at gmail dot c o m
by: Hendrik Volschenk on 2008-08-20 07:52:29 Thanks a lot for this usefull script, I would just like to point out that people using this should use the date format as follows, otherwise you might get some strange results: MM/DD/YYYY HH:MM AM/PM ...
Thanks again though ...
by: razor on 2008-08-18 05:24:18 thank you very much for this script i used it on my site check it out thanks -
by: Paresh on 2008-08-05 13:33:14 Hi
Regarding problem I posted earlier, I have managed to find a solution! If anyone is interested, then please email at [email protected] (I tried to post the solution, but it needed more space)!
Kind regards Paresh
by: Paresh on 2008-08-05 12:10:04 Hi, This is a fantastic piece of code! It works fine! I am a Cold Fusion coder and would like to know if it is possible to pass the date/time dynmically to your script. I am using it to time an online test and the timer needs to start when the test starts for each student. Need a quick solution if anyone out there can help!
Thanks in advance!
by: Steve on 2008-08-01 07:03:13 This countdown counter is sooooo cool. Thanks
by: rh [admin] on 2008-07-25 01:51:17 browsers generally allow cross-site javascript, but restricted settings may balk. users can opt to trust a site to allow this.
still to be sure, you can download the countdown.js file to your own site and serve it from there with the rest of your pages by setting the <script src=...> to refer to your own site.
by: Leah on 2008-07-24 22:47:12 Thanks so much! It's so exciting to have a countdown - so many of our students/faculty are anticipating the revealing of our new website! ;)
Any way to keep IE from blocking the script content?? I want to make sure everyone sees the countdown when they go to the site and am worried they'll not remember to right click to allow blocked content...
by: ReliaLutions.com on 2008-07-23 13:32:49 Thank you so much for the sample code, we had implemented the countdown to our event and it looks great - easy to customize, etc.
by: rh [admin] on 2008-07-18 16:42:21 you could plug an img tag right in the message paramater. like: FinishMessage = "<img src='image-url'>";
by: Kevin on 2008-07-15 16:19:39 I love the countdown clock!!! How can I have the Display message display followed with a picture and then when the countdown hits zero, display the finish message and a differenet picture?
by: Steve on 2008-07-13 03:10:30 Perfect!. Direct and to the point. I love that it works with both IE and Firefox...without any headaches.
by: Owen on 2008-07-02 04:02:24 Great script. Is there a way to set this up for a specific geographic location? Like NY?
This way it will display the corrected countdown when people are viewing it from different locations.
by: Mke on 2008-06-25 05:19:28 Great script,exactly what I needed, thank you.
by: Tami Packard on 2008-06-17 16:17:20 Great script! Is there a way to exclude certain non-business days from the countdown?
Thanks!
by: j der on 2008-06-17 15:55:29 Could years and months be added to days and minutes, seconds? When days go above 365 it shows 1 year. And months could be rounded off to 30 days and showing days would be fine. When days go above 30 it clicks months up by 1. thanks.
by: Lisa on 2008-06-16 09:22:15 I was just wondering how can I change the font and font size as well?
thank you! =)
by: rh [admin] on 2008-06-11 02:40:10 feel free to give a sample url here or via the contact page. will take a look.
by: Molly on 2008-06-10 04:36:57 actually, I did try the <br> tag. (I tried a few times, must've copy/pasted the wrong one regarding that part) the main problem was still the time being given. it had as I said in my previous post, some time with over 4000 days. I'm shooting for a little under 1000 days at this point.
by: Hedgehog on 2008-06-09 20:21:36 Thanks for your work. I'm implementing the multiple clock version on my FFL auction site starting 7/14 with the script running on my site. Tinkering with the appearance to get it where I want it......and am quite satisfied. My only current "wish" would be to be able to change the "look" of the final message in the multiple clock setup.....haven't figured that out yet.
by: rh [admin] on 2008-06-09 01:11:54 can't break up DisplayFormat like that. if you want to insert line breaks, specify <br /> tags.
by: Molly on 2008-06-07 08:39:51 My script looks like this
<script language="JavaScript"> TargetDate = "02/28/2011 12:00 AM"; BackColor = ""; ForeColor = ""; CountActive = true; CountStepper = -1; LeadingZero = false; DisplayFormat = "%%D%% Days %%H%% Hours %%M%% Minutes %%S%% Seconds."; FinishMessage = ""; </script> <script language="JavaScript" src
by: Molly on 2008-06-07 08:38:21 I am having the same problem as Timothy Lyle. I change my target date but I still receive 4590 Days 01 Hours 22 Minutes and 30 Seconds.
by: rh [admin] on 2008-06-02 14:32:09 be sure to follow the sample date/time syntax exactly as shown. feel free to provide sample web page here or via contact page. will take a look.
by: timothy lyle on 2008-05-31 22:02:24 everytime i change anything It has 4596 Days, 12 Hours, 58 Minutes, 39 Seconds
by: timothy lyle on 2008-05-31 21:45:40 Im having problems changing the date it stays the same even after i take the old one out.Can any one please help. Thanks
by: tim on 2008-05-31 21:44:27 I cant get the date to change it stays the same even after i change it. can you send me an email maybe im doing it wrong. Thank
by: cw on 2008-05-31 16:33:40 I love the clock, but would like to make it bigger. Can you tell me how/ Thanks
by: nv on 2008-05-30 11:22:39 thanks for the code! it was perfectly what i was looking for...
by: EE on 2008-05-27 06:30:19 THANK YOU FOR THIS COUNTER!! I AM VERY HAPPY NOW!!!!!
by: Justin Corral on 2008-05-06 15:31:08 I HAVE A PROJECT AND NEED TO ADD A COUNTER AND THIS WILL DO BUT I NEED MORE IF YOU CAN TELL ME SOME OTHER ONES WITH OUT DOWNLOADING BECAUSE IT WONT LET ME AT SCHOOL SO JUST LIKE AN HTML CODE WILL WORK ..........THIS IS THE ONLY ONE THAT WORKS PLEASE COMMENT BACK SOON.........NEED THE GRADE!!!!! :]
by: dg3 on 2008-05-06 07:21:33 Perfect, exactly what I needed! Was really easy to implement into the web page and change colors. :)
by: Fred on 2008-04-29 17:21:36 This code rocks... Just what we needed...
by: rh [admin] on 2008-04-25 02:26:05 for fonts, see q1 on the faq page.
by: kathy on 2008-04-24 02:39:04 Love the countdown, was able to add and change colors....but would love to make the font larger.....have tried adding font size code in several places but cannot change it.....help appreciated
by: Kev on 2008-04-23 16:28:43 BTW .. the one clock I can get running is just what I'm after.
by: Kev on 2008-04-23 16:26:59 I would like to add two counters, one counting down to my departure and one counting days since. I've read thru the comments here and see it is possible but I can't get my head round it .. anyone have any ideas?? thanks
by: James on 2008-04-19 08:51:49 Hi, great script, I need to have two timers on the page, when I add a second timer it just combines the two and flicks between them on one view? I would like to show two separate views. James
by: rh [admin] on 2008-04-17 01:41:06 feel free to give a sample web page. will take a look.
by: tim on 2008-04-16 19:22:59 I'm having the same problem that another commenter had a few weeks ago. No matter what I do, it won't change to my date and time. I'm hosting the script on one of my websites. I changed the 'sample', doubting that will alter it and it didn't. Of course i changed the date and time, even added the UTC indicator. But, whatever I do, it sticks to the 2020 date and time giving me a countdown of 4621 days instead of 15 I w
by: Rob on 2008-04-05 13:36:23 It would be nice if this had years in it too.
by: Jacob on 2008-04-01 16:18:57 I can only get it to show the example not my target date! Why??
by: Greg on 2008-04-01 14:26:11 Hmm , cut off my comment , lol
Change if (ReplaceStr=="<b>01</b>" to if (ReplaceStr=="<b>1</b>"
by: Greg on 2008-04-01 14:24:40 Anyone tried removing leading zeros & plurals from Day(s) etc run into any issues??
Well here's the solution....
To remove the leading zeroes..change "LeadingZero = true;" to "LeadingZero = false;"
Then is the "Countdown.js" file, if you have already added the 8 lines to remove plurals they will need a slight change....
if (ReplaceStr=="<b>01</b>" Change to if
by: Michael on 2008-03-28 15:22:03 Did you know about the problem of IE with innerHTML and setTimeout ? If you call without event before it will rise a javascript error. Just IE but 79 % of user use IE. Do you know a workaround?
by: rh [admin] on 2008-03-28 02:34:27 matt or whoever you are, there are NO popups or any kind of nuisance whatsoever associated with using this script or any other script from this site.
if still skeptical, you can download the source, view or modify it in any way, and use it from your own site.
by: matt on 2008-03-27 02:45:17 This script is SPAM that generates popups
by: Jim Adams on 2008-03-26 14:40:28 Excellent script. I modified it to count upwards and display a sum of money that we're sending away every second.
by: Snelle Alex on 2008-03-14 14:12:27 Thx for the script... I'm using it as a countdown time for a racing invent whe participate in.
by: Dan on 2008-02-29 16:42:45 I too would like more info on making the countdown for multiple events...and to include the ability to set a time zone value (UTC) for the same event countdown for multiple time zones.
As many have stated, this is the best countdown timer available. Thank you for posting it.
by: Fernando on 2008-02-26 08:34:45 I've tried this countdown code. In a test HTML page, all I got was a blank screen (tried in FireFox for MacOS). When I let FireFox scan for erros I get the error:
Error: document.getElementById("cntdwn") has no properties Source File: http://scripts.hashemian.com/js/countdown.js Line: 40
I tried this with the original code, not one single line of code changed.
by: Bob Crews on 2008-02-25 21:55:22 I am looking for a currency (U.S. money) count-up clock, similar to the National Debt clock but for personal use based on a predetermined amount of money, e.g. .0049 (less than half of one cent) to be added each second. It's OK if the cents are the standard 2 digits to the right of the decimal. The dollar amount needs to be 8 digits to the left of the decimal point, e.g. $99,999,999.99 or .9999 I need to accumulate from a set amount of mone
by: Samantha Jackson on 2008-02-22 16:10:55 God is the foundation of all evil
by: Pol (again) on 2008-02-22 00:35:31 I've been thinking - a "fake" millisecond counter would work as well; it just adds to the visual appearance of the timer, it does not have to be precise. So then my question would be: Is there a way to add a number using javascript which changes quickly enough to LOOK like it is part of the timer and actually counting milliseconds (or tenths, hundredths of a second)? Thanks in advance!
by: Pol on 2008-02-21 23:42:59 This is by far the best countdown on the web. Thank you so much! I just have one question: Is it possible to see tenths of a second or hundredths of a second? I suppose milliseconds would make the computer slow down... Could you provide directions for doing this? Thank you
by: Scott on 2008-02-16 08:07:28 hello...i've had some users say my page is displaying TWO timers. one counts down, and one displays what the countdown value was at when they first hit the page and then stays static. How do I fix that?
by: rh [admin] on 2008-01-20 03:31:43 you can't have multiple counters with the code block because they will interfere with each other. there are links above to sample codes for multi-counters written by other authors based on this script, but you may need to modify them a bit for your needs.
by: JD on 2008-01-19 16:37:30 This is a great little addon for my site. I have a question about multiple clocks. Can you add one clock to the top of page and one to the bottom or do they have to be next to each other? I'm kind of a noob with this stuff.
by: rh [admin] on 2008-01-18 05:20:00 ok with MAC.
checked this page on browsershots.org and the counter appears fine in mac.
tested under OS X 10.x with firefox 2.x and safari 2.x and 3.x.
by: rh [admin] on 2008-01-13 01:51:32 works fine with safari 3 in windows. if using a mac, check this page. if still doesn't show, it may be incompatible with mac. it wasn't tested with mac.
by: Dave on 2008-01-12 21:52:20 Hi, Thanks for the fantastic script. Achieved exactly what I needed on my site.. However, when I test in Safari it displays the message programmed for the final day of the countdown.. Is there any reason for this problem and can I fix it ? Thanks for any help, Dave
by: gareth on 2008-01-11 07:37:11 fantastic -ive been looking for this for months
cheers - much appreciated
g
by: bukhory on 2008-01-09 00:44:41 Great this is waht i look thanks dude nice work..!!
by: David on 2008-01-07 17:04:40 Just wondering if it would be possible for whoever coded the original script to make the adjustments to allow for multiple clocks. I'm already using the orignal, and frankly it's easier to edit than the others. For instance, for the first one, I can't figure out how to change the background/foreground colors, and I can't figure out how to turn off -counting.
by: David on 2008-01-03 23:25:40 Thanks very much! That fixed it.
Great timer by the way. Easy to install and set up. I've recommended it to several similar websites as mine.
by: rh [admin] on 2008-01-03 23:02:11 tested fine under ie7.
on the firefox NaN issue: be sure to have a space between the time value and the am/pm notation, e.g. '11:59 pm'. apparently fx doesn't recognize the format without the space. when in doubt, follow the exact format presented in the sample.
by: Jacob on 2008-01-03 21:51:04 Works fine on firefox... Counts down from like.. 5000 days on IE7.. Any ideas?
Great simple countdown though!
by: nice cruising on 2008-01-03 08:13:08 Thanks Hashemian. I was looking for a simple countdown timer for my nice cruising sailing site and bingo! here it is. Much appreciated.
by: David on 2008-01-03 04:46:15 The URL is http://www.itspouringcash.com
I have FF version 2.0.0.6
One of my members has also reported having this problem on FF, so it's not just my computer.
by: rh [admin] on 2008-01-03 02:32:01 the counter has been tested with fx 2.0 in windows and linux (gnome and kde). feel free to share a sample url. will take a look.
by: David on 2008-01-01 18:42:08 I tried viewing my page on Firefox after adding this code... and instead of the counter I see NaN where all the numbers should be...
It works fine on all other browsers.
by: Zyrus Campbell on 2007-12-31 13:51:12 Oh, forget it. I think it just requires an absolute URL in order to work from your own server. It seems to be working now since I've added the site's domain to the link. Thanks anyway. Great script!
by: Zyrus Campbell on 2007-12-31 13:29:31 Sorry it took so long to respond with a URL. The Web site is: http://www.boxtorow.com. It works fine on the home page because it's currently pointing to your server. On some of the other pages, I have it looking for the script on my server. I wonder if it must be an absolute URL to work. Thanks again.
by: Onkar S. Matharu on 2007-12-31 02:29:38 Thank you so much for your script and guide, you are very helpfull. Happy New year to you and everyone.
by: rh [admin] on 2007-12-24 22:30:11 myspace has restrictions. see q10 in the faq page.
by: Talisa on 2007-12-24 09:40:46 how do you make this work on myspace... i want to tell how long my boyfriend and i have been together.
by: rh [admin] on 2007-12-21 22:35:48 there is no dependency to prevent running the script from other locations. feel free to share a sample url. will take a look.
by: Zyrus Campbell on 2007-12-20 19:38:25 Another question, I've uploaded the JS file to my host's server and pointed the script to it but for some reason, it won't work. What could I be doing wrong? For now, the script only works if I'm pointing back to your domain and I'd like to get it running from my host if possible. Are there any htaccess issues or extra server-side modifications that I should be aware of in order to accomplish this?
Thanks
by: Zyrus Campbell on 2007-12-20 19:32:01 Hello, this code is great. I've been using it for a couple years now on a site that I created for a friend that needed a countdown for his weekly radio show. In lieu of this, is there a way to automate the process of resetting the clock? His show occurs every Saturday between 5-6pm EST. Normally, I reset it manually once I get a chance to sometime after 6pm, but I'd like to see if there is a way that it can be done automatically. Just c
by: Gunzalez on 2007-12-20 01:24:47 Hi there, this seems perfect for me but one question though, how do I configure it to display the results in seconds only, e.g '9,881,047 seconds to go'
Many thanks Gunzalez
by: PJ on 2007-12-18 21:58:03 I want to display "Years","Months","Days","Hrs","Minutes","Seconds". How do I change the JS file code to add Years and Months in the display.
by: Taha on 2007-12-15 10:54:23 Sen niye b�yle bi�i yapt�nki 2020 yapmana gerenk yok yap 2008 gitsin sayg�larr.......
by: Boris on 2007-12-13 19:32:15 Thanks a lot for this code. It is very elegant. I might use it for my site.
by: Dennis on 2007-12-10 15:20:34 Thank you so much, a really really great and wunderful peace of code! thanks
by: Stu on 2007-11-26 00:50:02 ..."Finish Message" to display; sorry about the snipped posts; the character count said I had plenty left!
by: Stu on 2007-11-26 00:47:02 Multiple timers - check out view source on http://www.calvin.com.au/html/anz.html - a mod of Mun's code down the bottom. Must have var cd* = new countdown('cd*'); and <div id="clockwrapper"><div id="clock*">[My Test]</div></div> and "cd*.Setup();" where all of the "*" are a matching number; have as many as you like! I still can't modify Mun's code to get the
by: Maggie on 2007-11-19 00:16:00 I can't get this to work right. I changed the target date and time, and the countstepper to positive to count up, but it displays exactly the same time as the countdown in your example.
by: Alexander on 2007-11-18 21:57:31 i would just like to say that the timer has some bug.. which e.g. time set to its limit.. (19/30/99) the timer still works... the clock should have some limit with the date.. =)
by: eugene on 2007-11-17 17:16:42 how can i submit a form after the time expires. I deleted the Finally done message and put there documen.MyForm.submit() but it does not seem to work.
by: DHF on 2007-11-12 18:38:33 Trying to get a countup and countdown on same page for two different dates. Can't figure out how to make your code work. Works great for the one countup clock. Adding another code confuses to code/me. Appreciate your help.
by: rh [admin] on 2007-11-09 00:10:10 wrap the counter in a <span style="float:right"> tag.
by: hydro on 2007-11-08 13:57:43 i need to align count down on right. anybody explain to do me?
by: david on 2007-11-08 02:40:06 gracias por el contador.. es realmente genial y pr�ctico! un saludo desde neuquen, argentina!
by: Nathan Hockley on 2007-11-06 11:24:32 ahhhhhh thanks mate!
by: rh [admin] on 2007-11-06 03:43:14 you can specify 10:00 AM UTC-0500, and the browser will take it from there. it means that the event is happening at 10 am in a time zone and season that's 5 hours behind greenwich.
by: Nathan Hockley on 2007-11-05 07:26:31 Hi everyone! This looks awesome... I am from Australia but I need it to point to 10:00am US eastern standard time and I dont know what the UTC code or whatever is... if you could please point this out for me that would be awesome! Nathan
by: rh [admin] on 2007-11-04 15:32:28 see q1 in the faq page on tweaking styles, fonts, etc. for the multicounter, you can wrap each section in a <div> or <span> tag and apply desired css such as color.
by: clark creery on 2007-11-02 23:48:49 I love it, I have looked all over but now being rather stupid at this I cannot figure out how to make the font bigger. Thanks, it works great.
clark
by: trollins on 2007-11-02 21:43:57 Fantastic script. Thank you. How do I change or add background and foreground colors to the multi script. I've played and not been able to change.
Thank you
by: rh [admin] on 2007-10-31 02:16:14 not sure what the problem is other than making sure your pc's time is accurate. i just plugged in "01/10/2009" and the counter displays correct info. feel free share your page's url. will take a look.
by: Mitchell on 2007-10-29 22:38:27 Help please.... I'm trying to get the code to work using "01/10/2009" as the countdown date, but the counter is going UP, reading: 86671 Days, 1 hour xx Minutes, etc... What am I doing wrong?
by: rh [admin] on 2007-10-27 02:22:49 this counter has been tested in fx and it performs fine. just checked again and all is well with v2. what's your version and what OS?
by: T Hancock on 2007-10-26 18:29:05 Thank you heaps! Better then my old counter which suddenly broke!
by: Tim K on 2007-10-26 15:02:39 I am having an issue with the countdown showing up in firefox as well. We have quite a few people looking at the issue...any help would be appreciated
by: Stephanie on 2007-10-25 21:39:17 I've used your countdown clock to count the days to our grand winter ball; I'm very pleased with how nicely it fits in with the page; no ugly or extraneous widgets to make it obnoxious. It's also super-intuitive, and easy to change colours, etc. Simplicity is class, I say. :) Thank you.
by: Somerset Bob on 2007-10-24 13:04:25 Great little timer, just what I wanted! Many thanks - have linked back to here :)
by: Jameson Malpezzi on 2007-10-24 07:47:27 Thanks, just what i was looking for!
by: Michael on 2007-10-18 17:23:25 Thank you. Not only do you have a great product, but also you just keep making it better. I just made the changes to reflect the singular day, second etc. AND IT WORKED!!!
Thanks again. Michael EyeSpyL.I. Surveillance www.eyespyli.com
by: Gajon on 2007-10-17 18:31:48 Thanks for the script! I'll credit you on my website! On the line, Display Format, what goes between %%?%% Milliseconds? Or does the script even support that?
by: rh [admin] on 2007-10-15 02:20:52 for those wishing to display singular/plural units, see Q8 in the faq page for a quick and dirty solution.
by: Sriranga on 2007-09-29 15:28:58 For all those who wanted to change the font, you can do so using HTML itself.. justuse the <font size=xx> befor the script .. you can even use <h1><h2> etc ..
by: Matthew Coburn on 2007-09-27 02:23:20 Thanks for the wonderful script, it's just what I want!
Thanks!
by: luca on 2007-09-26 19:06:27 how can i change the size of the display? THANKS
by: jennyL on 2007-09-26 03:23:09 thanks for this easy to use countdown.. love it. I've already used it
by: sahara on 2007-09-25 18:54:58 I was looking for a countdown for my webpage, this is PERFECT! thanks. Super easy to use.
by: Kenneth on 2007-09-24 20:50:15 Is it possible to change the day format from "03" to just "3" eg?
by: Michael on 2007-09-20 15:37:47 I have to agree with BATMan_Phln, I have no idea were to place the print ("Day"); if (unit!=1) print("s");
I love the program and do not want to mess it up. But at the same time would love for it to change from days, seconds & minutes to day, second & minute when appropriate.
Any help will be appreciated.
Michael
by: dacmaran on 2007-09-17 20:31:02 great job, could�t be more simple tks
by: rh [admin] on 2007-09-08 03:07:00 paul, read q1 in the faq page.
by: Paul Scott on 2007-09-07 06:22:20 Is there away of making the Font larger on your timer? Regards Paul
by: BATMan_Phln on 2007-09-06 21:38:55 I'm a total nube at this. The script my host uses takes too long to load so I'd like to use yours but I don't understand how to do this...
to get singularity, rather than plural units (e.g. day rather than days) let the js file print the units and modify it by inserting additional logic. for example (pseudocode):
print ("Day"); if (unit!=1) print("s");
Can anyone clarify it for a rookie?
by: rh [admin] on 2007-09-06 18:20:06 daylight savings time issue. i won't bother you with what i think of this asinine time-shift game.
the simplest way around this is to figure out your event date/time in utc/gmt and use that with "UTC" added at the end.
by: Andrew on 2007-09-06 16:17:30 Mike,
Great script. Quick question: when I use the "UTC" script to keep the countdown time zone specific, I cannot use "-0500" for EST, I have to use "-0400" - why is that? Is "-0000" actually "-0100"? If that's the case, would Greenwich be "0000" no '+' or '-' or just "0"?
by: rh [admin] on 2007-09-03 23:45:02 to get singularity, rather than plural units (e.g. day rather than days) let the js file print the units and modify it by inserting additional logic. for example (pseudocode):
print ("Day"); if (unit!=1) print("s");
it's a bit of rework, but not too bad if you have some scripting knowledge.
by: tante connie on 2007-09-02 16:59:31 hi me again
sorry i didn't read de other lines :) i got it
greetz tante connie
by: tante connie on 2007-09-02 16:56:26 help
i used this counter, but is can't use several on one page, is this not possible
(sorry for the lame englisch, i;m from holland :-) )
greetz connie
by: Michael on 2007-08-31 16:22:52 What a great program! Easy to use and understand.
One question, any way to make the days, hours etc change to reflect the change in time?
ie 1 "days" Should be 1 "day"
Any ideas please let me know.
Again, thanks for a great program.
by: Mike on 2007-08-30 21:21:54 Thanks. I was looking for a simple example of a working script all afternoon. Your's is perfect. Thanks for being clear and simple and ocnsise.
by: deadcalm on 2007-08-30 17:11:39 I'm unable to get this to run at all. I keep getting a javascript error saying that the getElementById call is either null or not an object. Firefox returns an error that says the getElementById has no properties. Am I missing something?
by: rh [admin] on 2007-08-29 02:13:03 morgan, which modified code are you using? also feel free to give (or send via contact page) a sample url.
by: morgan on 2007-08-22 04:06:15 Thanks for the help.
I still can't figure out how to have the counter count up instead of down with the modified code. It seems to only work for counting up.
I wanted to put multiple countup on my page.
Thanks.
by: Cannabis Fashion on 2007-08-16 06:10:15 thanks for the simple but useful script. there are a lot of scripts out there but this was simple ans painless to apply.
thanks, for cannabis t-shirts designs visit my site: <p><a href="http://www.cafepress.com/cannabisfashion">visit my site</a></p>
by: Leo on 2007-08-15 16:03:27 I want a timer that counts down from a set period, then resets itself to start the count down again instead of displaying a message.
Example: Resets to a 60 minute count down every hour at the top of the hour.
by: Matt on 2007-08-15 14:57:46 First of all, thank you for providing this great script.
I'm trying to implement this script in the header of an XHTML page. The page layout is fully controlled with CSS. My issue is that when I style and position the countdown DIV (I changed from SPAN to DIV), I get a second box that is styled exactly the same as the countdown DIV in the top-left corner of the browser. Any thoughts on a fix?
by: rh [admin] on 2007-08-13 03:04:37 morgan, you can wrap the code between <script>...</script> tags and stick the code directly in your page (perhaps in the <head> section).
zaneen, it's possible but sorry, not as is. would need some editing to the js file.
brooke, most likely myspace cripples <script> tags. some social networking sites disallow active content.
harry, prepend DisplayMessage with your text and add a <br> for li
by: Harry Cornhole on 2007-08-12 08:54:19 Excellent and easy to use, even for someone with no experience in this like myself...which leads me to my question...could you please let me know how I can add a title right above this countdown clock? Thanks
by: brooke on 2007-08-11 19:53:53 hi, i tried adding this counter on my myspace and its not working.. also, how do you add months?
by: zaanen on 2007-08-10 08:52:51 Hi all.
Is it possible with a multi counter to let 1 counter count up and the other down ? And if possible how can i make that happen ? Thanks already.
by: Morgan on 2007-08-09 07:02:42 I wanted to add multiple counter on my page. I downloaded the modified code, but I'm not sure what code to actually put on the page to for the counters to appear. How do you set up the different counters? Love the counter otherwise!
Thank you.
by: rh [admin] on 2007-08-09 02:40:03 the counter on this page uses the same code. if you see the counter on this page then the code is working fine on your browser. it's possible that your page editor is encoding something like the tag angled brackets.
by: Charlie on 2007-08-08 07:22:49 I can't seem to get it to work, I've copied and pasted into my website and changed the date and it doesn't work? any suggestions?
by: J on 2007-08-08 03:56:04 Hey, thanks, I never even attempted JAVA before and figured this out in just a few minutes, much appreciated! I'll put a link to your page on my blog!
by: rh [admin] on 2007-08-03 13:30:45 sample url please. use contact link on this site if you want to send it privately.
by: Jo on 2007-08-03 04:45:02 I edited the countup time for EDT but it still only shows the sample time that you have on this site. I have no idea why it's not working.
by: rh [admin] on 2007-08-02 15:49:49 your targetdate is off. you can use this (july is daylight savings so you'd want EDT): TargetDate = "07/27/2007 7:00 PM EDT";
hth
by: Jo on 2007-08-02 00:18:06 I can't get an accurate countup time for July 27, 2007 7:00 PM EST. What am I doing wrong?
<script language="JavaScript"> TargetDate = "07/27/2007 7:00 PM GMT-1900"; BackColor = "palegreen"; ForeColor = "navy"; CountActive = true; CountStepper = 1; LeadingZero = true; DisplayFormat = "%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds.";</script>
by: Carol on 2007-08-01 22:36:26 I figured it out...I had the code in the head instead of the body...duh!
Thanks for a nice countdown...~~Carol
by: Carol on 2007-08-01 21:13:07 I have your countdown running from our server & it looks great in my Safari browser but is a no show in Firefox. I turned off the pop-up blocker but I still can't see the countdown. Any ideas, hints or just plain solutions ?
Thanks in Advance...Carol
by: Meer on 2007-08-01 02:32:56 COMMENT PART 2:
as you can see, i endowed the required code inside the proper formating html. the style is the on
by: Meer on 2007-08-01 02:29:47 COMMENT PART 1:
you have to add it manually, like:
<html> <font style={font-family:"Arial"}> This is formated with a personalized font: <br><br>
<script language="JavaScript"> TargetDate = "12/31/2020 5:00 AM"; BackColor = "palegreen"; ForeColor = "navy"; CountActive = true; CountStepper = -1; LeadingZero = true;
by: Hailey on 2007-07-27 23:22:39 Is there some way to add another line of code to change the font? I have scoured the internet looking..but none have worked. THANKS!
by: rh [admin] on 2007-07-25 17:39:02 sure thing. i can't believe you've seen my response so fast already. glad it worked out in the end. sorry for the delay. i'm away from home for a couple of days stuck in a hotel room in albany, ny. cheers.
by: Maria on 2007-07-25 17:21:42 Interestingly enough, keeping the span AND adding the border to the background color causes a double border that actually displays on the right side. So, I guess a solution would be a 0px border on the background and keep the span, or get rid of the span and just use the border on the background color. Either way, you have solved my issue. Thanks so much for the great script and all the help!
by: rh [admin] on 2007-07-25 17:09:06 not sure why the right border gets masked, at least in IE. for now a quick solution is to pass the border style via one of the color parameters: e.g. BackColor = "palegreen;border:1px solid black";
tricky, but works good :)
by: Maria on 2007-07-24 20:35:37 Thanks for the quick response. The span works great except I can't get the border to show on the right side of the countdown, after seconds. Any suggestions?
by: rh [admin] on 2007-07-24 19:51:48 to add border you can wrap the script in a span tag and style as desired. e.g. <span style="border:1px solid black"> <script ... </span>
by: Maria on 2007-07-24 18:44:57 Is there a way to add a border around the countdown to make it look fancier?
by: rh [admin] on 2007-07-22 15:03:45 feel free to provide a url here or via contact page.
by: Tricky on 2007-07-21 18:48:40 I've tried this countdown code. In a test HTML page, all I got was a blank screen (tried in FireFox for MacOS). When I let FireFox scan for erros I get the error:
Error: document.getElementById("cntdwn") has no properties Source File: http://scripts.hashemian.com/js/countdown.js Line: 40
I tried this with the original code, not one single line of code changed.
by: Ramona on 2007-07-18 18:45:03 Thanks for the quick reply! I understand.
by: rh [admin] on 2007-07-18 18:20:01 having "months" makes perfect sense, but it doesn't conform to the script's simple routine. figuring out months is harder because they have varying days and there's leap year considerations too. i might tackle that at some point, but there will be optimization penalties, no matter what the algorithm.
by: Ramona on 2007-07-18 16:59:21 Hi. I'm using your countdown timer. I like it and I have a question. I would like to add "months" to the ticker. So, it would read "5 Months, 23 days, etc." Is it possible to add months here? I can't intuitively grasp how long 240 days is, but 8 months I can understand easily. I can see that "M" equals minutes and "D" equals days - what's the code for month? Thanks!!
by: simon robinson on 2007-07-17 12:40:17 just added the code to web site whick allows one hour loggins at any one time. users can now see how long they have before they are automaticaly logged out. was very quick and easy to impliment. thanks.
simon.
by: Judith on 2007-07-14 20:15:00 Your instructions and script are excellent. I downloaded your js script and put it's own directory on my web hosting server. Then I changed the script to point to it.
I liked the way I could modify it. I will be using it eventually on my site and when I do, I will put a link to you.
Thanks.
Judith
by: Jill on 2007-07-09 13:11:06 Thank you for the great counter! It's nice to have an ad-free and customizable one. I put a link up for you. :o)
by: Nick on 2007-07-09 06:00:46 Nice script! Is there a way to make the message scroll around instead of standing still?
thnx
by: rh [admin] on 2007-07-08 19:34:34 IE has a problem with some downloads related to cache-control header. i have patched the server to get around this so downloading should be fine now. if problem persists contact me and i can email you.
as for 508 compliance, there are steps you can make such as applying css to enhance fonts. see Q1 in the FAQ page.
by: Kathy Brinkopf on 2007-07-07 18:19:10 Can I get the html script for allowing more than one countdown per page. I tried the download link, but was unable to get it.
Thank you!
Kathy
by: Kathy on 2007-07-06 19:17:41 I like your script. But I'm wondering ... Is it 508 compliant? What does a screen reader do with this script if I want it to count down by the second? Thanks.
by: Turk on 2007-07-05 19:28:30 Thanks a bunch for this counter! I will use it on my wedding webpage.
by: darkspin on 2007-07-04 08:08:50 thank you so much this will come in handy in the days to come :)
by: rh [admin] on 2007-06-30 03:58:29 it has worked fine on my windows-based firefox v1.5 and v2. also same versions on some linux desktops like gnome and kde. but not tested for everything. what's your platform?
by: Liana on 2007-06-30 00:01:11 Works in IE, but I get this error in Firefox: NaN Days, NaN Hours, NaN Minutes, NaN Seconds.
Any ideas?
by: rh [admin] on 2007-06-28 22:34:05 if the counter on this page looks okay, then it's hard to troubleshoot. feel free to give the url to check out. either here or via email.
by: Joe on 2007-06-28 21:46:33 Oops. Something went wrong. I copied the simple code to the page and for the Display Date... it says this: NaN Days, NaN Hours, NaN Minutes, NaN Seconds.
What now?
by: Tilesh on 2007-06-27 17:54:33 Hi Robert, First of all I would like to thanks for script as it took too long and lengthy for me to creat one previously, but your was small and great. I have modified your script to use multiple countdown on same page. I removed object creation for countdown, so multiple <div> can set to display countdown. And it will not creat static display of countdown clock for any of <div>tag. I have send you script at "[email protected]
by: Will on 2007-06-27 09:43:20 Your script is amazingly simple and easy to use. -Very- impressive.
by: Micky on 2007-06-24 19:48:21 Your script is working fine, thank you !!! I'll put your Avatar to the link page of my site.Greetings from Switzerland
by: Esther on 2007-06-24 10:35:37 The script works great, but I would need multiple multiple count-ups on the same page and I can't use iframes. Any idea how to modify it?
by: Jon on 2007-06-21 19:18:28 I like your script! Thank you. I changed it to include Years and Months. I tried to include the code changes in this comment but there wasn't enough room. Please let me know if you would like to see the code. Thanks again for such a good script.
by: rh [admin] on 2007-06-20 23:12:18 cidney, lee, this code, as is, can only be used once on a page. beyond that there will be symbol conflicts and clashes. have you looked at mun's code (links above)? it's based on an older counter version but should work. you can also use multiple iframes to do this, but that's a bit wasteful. i may write an faq entry on the details. stay tuned...
by: German on 2007-06-19 17:27:58 I used this piece of code in a TWiki page.
One problem arised: %H% etc are interpreted as variables. So, I made a local copy of the file and changed all the %%x%% stuff by ##x##
It works fine now.
Thanks to the js author for providing this.
by: Cidney on 2007-06-18 16:16:18 Has anyone commented on Lee posting yet?? I too am having issues with multiple clocks in one table. I can get the one clock to run great in my table but need to have several others and am stumped. Any help would be great - Thanks - Cidney -------------------------------------- by: Lee on 2007-05-28 04:38:30 I cant get 2 separate counters in one table to work?
by: David on 2007-06-18 12:43:21 Thank you for that... nice work.
return "<b" + (s=="00"?" style='color:red'>":">") + s + "</b>";
I will have to see what I can do with it, as it changes then to red at 00, regardless of the condition of the numbers before them.
eg. if Days=02, Hour=00, Min=22, Sec=14... the hours will be red. Ideally they should only be red if the days are at 00.
by: rh [admin] on 2007-06-16 16:52:09 david, u'd need 2 d/l and modify the js. eg if u want red when any of the values are 0, change the last line of calcage function like so:
return "<b" + (s=="00"?" style='color:red'>":">") + s + "</b>";
hth
by: David on 2007-06-16 07:33:57 Great script... excellent work. Can any advise if there might be a simple way to make the number count characters change to red when they hit "00", that is for the "Days", "Hours" and "Minutes", obvioulsy when the seconds change the Finishmessage comes up.
Either way, very handy script.
by: ali on 2007-05-31 23:43:32 merc aghaye hashemian besyar besyar aali bood ba ejazatoon man countdown.js ro download kardam va gozashtam roo servere khodam khoda kheyret bede
by: Lee on 2007-05-28 04:38:30 I cant get 2 separate counters in one table to work?
by: Phyllis Nodrey on 2007-05-21 14:19:18 Thanks for the counter; it's really convenient! I've got it hosted on my server.
by: Jaymikal on 2007-05-09 18:29:17 Thanks for making this available! I'm using it as a countdown to our vacation. I've got it hosted on my server so I don't use your bandwidth.
Thanks again!
by: Harry on 2007-05-09 17:12:40 It will always be 1 hour wrong due to the fact that we are changing to and from summertime
by: Paul Duffield on 2007-05-08 12:55:27 Cool script - thanks for making it available. I have it now counting down on what must be one of the world's biggest challenges - Geoff Holt a parapalegic normally confined to a chair is about to sail around the UK single handed! I will leave the ticker counting down and then up to see how long it takes him. www.personaleverest.com Good luck Geoff and thanks for the script - acknowledgement is on Geoff's web site.
by: Ian on 2007-04-28 13:53:29 Cool... I put a count up for my son's web site. It's amazing. Thank you thank you!!
by: Bill on 2007-04-26 14:42:48 Awesome Code!! Is there any way to display a multiple countUP with years?
by: janton on 2007-04-25 16:09:57 I've been looking for this script for months! Thank brotha...
by: daaan on 2007-04-19 08:57:31 Hey,
I am using your great script for a (long) while now, but since a few months I seem to have a problem with IE6 and IE7 not loading pages with your counter.
After a long search, i found that MOOdalBox (a fancy css/ajax popup) is incompatible with your counter, in the IE browsers. You simply can't have both on one page.
by: rh [admin] on 2007-04-19 02:39:52 currently there are no issues with the script and you should be able to see the countdown message on this page as well as other pages using the script.
by: natazone on 2007-04-18 18:55:18 The script doesn't work because of 404 error. Is it a hosting problem?
by: rh [admin] on 2007-04-11 23:01:40 sorry to hear about this. wish i had access to a mac, but that's not the case. i was hoping that someone by now would have patched the code to work in safari. for now i'll just have to wait until i can get my hands on mac safari and test and fix this code.
by: Bernardo Amaral on 2007-04-11 02:07:04 Strange thing that you (Matt Osborne) can see this great counter on SAFARI and not on FIREFOX. It happens the opposite with me on my MAC.
OS X 10.3.9 - SAFARI 1.3.2 with JavaScrip enable - FIREFOX 1.5.0.11
I just tried the counter on my machine, but I can only see the finally sentence, even in Hashemian's website.
Any ideas???
by: rh [admin] on 2007-04-10 03:04:00 for counting im milliseconds, i would strongly advise against it as it will likely freeze the browser but if you must, download the js file, set SetTimeOutPeriod to (Math.abs(CountStepper), in the next to last line do not divide by 1000. then in the CountBack function, multiply all numbers by 1000, e.g. calcage(secs,1000,60000)) and add a line to calculate milliseconds: ... calcage(secs,1,1000). but this will never be accurate.
by: rh [admin] on 2007-04-10 03:02:54 if you want to specify server time, one option is to download and embed the js file in your dynamic pages and then use inline scripting to assign the current date/time. e.g. in asp.net with c#: var dnow = new Date("<%= DateTime.UtcNow %>");
by: Kevin on 2007-04-08 22:54:20 I noticed this script uses the viewers local time? Is thier a way I can make it use "SERVER TIME" instead? I hate depecing on the users clock since I have seen some way off, specially since the Time Zone change.
by: George on 2007-04-08 02:06:05 Your code is perfect! This is an awsome sample. I want to try and add in a millisecond or hundredth of a second count as well but cant figure it out. I saw someone asked a similar question in 2005, but I couldnt make it work based on your answer. any help would be much appreciated! Trying to write a countdown to my wedding and I think it would look awsome with this function
Thank you in advance
by: Jalle on 2007-04-05 12:26:10 Thanks! I've also been looking for something like this for a while and this one seems to be the thing:) I was force to make a workaround to be able to add this to our site since our adm.tool didn't handle JavaScript nicely but a Iframe solved everything. But for some reason I am forced to write text before and after the script in order for it to display as it should. But that is a minor thing:)
by: decky on 2007-04-01 13:11:51 Peoples should stop writin JS countdown timers after this one,cause this is perfect!I've loose 2 days tryin to find counter who work in every browser untill I found this one.Many others also using form input and BODY ONLOAD function,but this one work without that crap.My congratulations!!!
by: Rick on 2007-03-28 22:27:20 How To Display The Finish Message On The Timer With Multiple Instances. Replace This:
function cd_CountBack(secs) {
With This: function cd_CountBack(secs) { if (this.Calcage(secs,1,60) == 0) OPTION1: {window.location.href="http://URL/"} OPTION2: {document.getElementById(this.Div).innerHTML = "Time's Up!";} else {//REST OF FUNCTION }}
Choose Option 1 Or 2 And Make Sure The Res
by: rh [admin] on 2007-03-21 13:22:10 pasting code in html file should work fine. as you can see the countdown's home page is a plain htm file too. perhaps your host serves html or js files in a non-standard way. check your firewal settings. also check browser settings to make sure scripts are permitted.
by: Troy on 2007-03-18 18:05:02 Hey, I copied and pasted the code into a blank txt file, saved, and changed the extension to .html to test this code. Instead of seeing the timer, I see absolutely nothing. Am I missing something? Please help.
by: Martin on 2007-03-17 18:11:01 For all of those trying to use the server time let me clarify. Read Robert's comment more carefully, you must copy and paste the code of the countdown.js file into a <script language="javascript"></script> in your webpage itself. The script then gets the server's time using PHP, so make sure your webpage has the .php extension.
by: Texastaurus on 2007-03-16 15:13:19 This is really cool. I'm looking to modify this code to have a target number instead of date countup...ex: I set to 2,000,000 and starts with 1,000,000 and increase 1 every 5 secs. CAn this be done? Please help!!!
by: Cali__Caxias on 2007-03-14 15:50:33 Simply great. The best code works just fine. Thanks a lot!
by: Shirou June on 2007-03-13 21:05:42 D: You are a genius!
and I love you! :D
it's incredible how we can get rid off those ugly premade counters, by using this one!!!
Again, thank you!!! 8D you rox!
by: rh [admin] on 2007-03-12 22:19:16 andrew: you could remove '%%D%% Days' from the string. but note, the hours will never go beyond 23. if you want something like 46 hours, 22 min... etc, you'd have to d/l and modify the js file.
rhys: sometimes 'helpful' editors alter the code thinking it's html. e.g. they insert <br> tags, etc. you might need to use a plain editor like notepad to clean the code. good luck
by: Rhys on 2007-03-11 19:08:54 Robert, thank you for this script. I've searched through lots of countdown timers and really appreciate this one.
I do have one problem which is that modifying the date when I paste in the html code to my forum postings has no effect. To modify the countdown I have to alter the server file. Perhaps this is due to the forum code, but I was wondering if you have come across an issue like this?
Many thanks
by: Andrew on 2007-03-11 01:30:00 Is there anyway I can remove the date from the timer. I need a timer to countdown to 3pm each day to remind people to put there entries in. Thanks
by: rh [admin] on 2007-03-10 03:04:04 claude: must be a server issue on your end. if you can give the url, i'll look if i get a chance.
mary: possible browser issue? feel free to send me your email via contact page and i'll send it along to you.
by: Mary on 2007-03-09 19:30:27 I receive an error 'document is undefined' everytime I try to download the countdown.js file. Please help.
by: Claude on 2007-03-09 06:12:48 I tried your script and works nicely and would like to save you some bandwith but it doesnt work on my site. Any idea why? I even tried the link i put to be sure it was linking to the file so i know for sure that my link is ok... must be something server side that blocks it.
by: rh [admin] on 2007-03-07 03:02:26 wrap the display line in <font> or <span> tag and style as desired.
by: Nate Jensen on 2007-03-06 15:31:46 How can I change the font of the countdown?
by: rh [admin] on 2007-03-05 18:48:06 jenna: use the diff between greenwich and your time zone. that url redirects now, so can't check. ryan: you can d/l and tweak the js file and make sure you use different var names. or consider d/l'ing mun's code above. debbi: good suggestion. would need to modify the js file to show years, but careful with the leap year trap. if inspired i might give a try and will announce here.
by: Jena on 2007-03-05 07:20:30 I just realized that the site since it is ran by someone else and we just edit our part of it is that it is ran on Pacific Standard Time and we are in the Central Standard Time. What do I need to do to make that work now because even after checking for <br> it still didnt work. thanks
by: Ryan Everitt on 2007-03-02 15:06:15 How do u put two on a page because when i copy two bits of code it only displays one timer
by: Debbi on 2007-02-28 14:17:04 I need count up script that will give me the following:
Debbi is 15 years 260 days old.
Can you help me with that? Thank you.
by: rh [admin] on 2007-02-28 04:30:20 just looked. if you check the page source you'd see a bunch of <br> tags mixed in with the javascript, crashing the code. your html editor is probably doing this. just get those <br> tags out and it'll work fine. good luck
by: Jena on 2007-02-28 00:03:37 my website is acsevents.org/okstaterelay I appreciate your help
by: rh [admin] on 2007-02-26 17:40:47 just tried this code verbatim and i see correct time remaining. feel free to send a url to your page. i'll take a look when possible.
by: Jena on 2007-02-26 06:02:07 I have put this as the HTML and it still says 5057 days it needs to be like 45 days if you can help..help <script language="JavaScript"> TargetDate = "04/13/2007 7:00 PM GMT-0600"; BackColor = "palegreen"; ForeColor = "navy"; CountActive = true; CountStepper = -1; LeadingZero = true; DisplayFormat = "%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds."; FinishMe
by: rh [admin] on 2007-02-23 15:13:14 can't speak for angelfire but i have saved and sourced the js file on other freebie sites like freewebs and googlepages with no problems. maybe angelfire has filtering. be sure to specify correct path and check if you can even download the js file by typing its url in the browser. if you want to mention your site, maybe someone will take a look.
by: Saber on 2007-02-22 17:43:51 Hi, I saved the file countdown.js to my Angelfire webpage, now how do i use it? LOL I put in the new source address for it src="http://***.Angelfire.***/restofaddyhere/countdown.js" But nothing displayes now I reinput src="http://scripts.hashemian.com/js/countdown.js" And it works again. plz help
by: rh [admin] on 2007-02-21 14:10:59 try: TargetDate = "04/13/2007 7:00 PM UTC-0600"; also make sure your computer clock is accurate. good luck
by: Jena on 2007-02-20 19:51:57 I am the online chair for the Relay for Life of Oklahoma State. I need a timer to countdown to the day of our relay. I have tried this one but can'g get it to display anything but +5000 days. We are in the central standard timezone and our event date is April 13 @ 7:00 PM. It would be great if someone would write the code that I would need to use because obviously I can't figure it out. Thanks!
by: Kathy D. on 2007-02-17 03:42:44 This is so awesome! I run a website for an actor and have been wanting a countdown ticker for a long time to use to count down to his newest movie releases. This is perfect!! And I did put mine in a table, and it worked great. Even put a break between the elements so it would fit in a skinny sidebar.
by: Sherri on 2007-02-16 00:32:42 Help! When I add the code to the page, it will not show if I put it in a table. Anyone know how to fix that or what I am doing wrong?
by: rh [admin] on 2007-02-14 04:52:03 that is as expected. if an event is happening at a certain time at a certain location, then all people should see the same time remaining, regardless of zone, as long as their computer clocks and zones are accurate.
by: Hammer on 2007-02-13 20:44:53 Hi. I added the counter to my blog and it works great. Thanks. The only thing is that I followed the directions for setting the UTC time offset but I just checked with someone in a time zone several hours different from mine and he sees the same time that I do. http://www.hammeruncut.com
by: ABLLE on 2007-02-08 19:15:37 This ticker is really kewl!! It can be modified to fit any web page. We use it on our band page to give it a more dynamic feel and a sense of urgency!!! This script ROCKS!!! -ABLLE
by: Matt Osborne on 2007-02-01 18:32:46 if anybody has a suggestion to my problem below... email me at [email protected] thanks
by: Matt Osborne on 2007-02-01 18:31:45 the counter code works great in IE and safari (i'm on a mac) but it does not display in the FireFox browser. any suggestions? is this a mac issue? thanks
by: Ken on 2007-01-30 04:13:28 This is a simple countdown timer, and it works great. Thanks!
by: Doug Cook on 2007-01-23 02:38:08 Never mind. Figured out the centering problem
by: Doug Cook on 2007-01-21 21:40:35 Is there a way to center the displayed script. Mine appears left-aligned. I haven't been successful in centering it.
by: rh [admin] on 2007-01-16 13:54:02 be sure to specify the date in proper format: mm/dd/yyyy. e.g. 01/01/2008 GOOD 1/1/08 BAD
by: Steven on 2007-01-13 14:50:22 Sorry, forgot to mention the page, it's a simple countdown for wow TBC on www.thegames.be TX
by: Steven on 2007-01-13 14:49:06 GREAT STUFF ... BUT when i load my page in IE, it says +5000 days & when i load that page wi FF the rigt date is giving ?? What am i doing wrong ??
by: Glenn on 2007-01-07 19:53:34 Nice one man. Thanks for the counter... Just another thing to add about changing the colour, size, etc. You can put the following code inside your containing DIV tag..
<div style="font-family: Arial, Verdana, sans- serif; font-size: 24pt; color: white"> *** Countdown code in here *** </div>
You can replace the fonts listed, but make sure that any that are more than one word have " " around
by: rh [admin] on 2006-12-29 00:17:09 a quick way is to set the ForeColor to "white" and wrap the last line in a font tag. e.g. <font face="arial" size="3"> <script language= .... </script> </font>
by: Dave on 2006-12-28 20:32:30 Is there any quick code or technique to change the font style, color and size for the display of the timer. I would like to have it as font=Arial, size=3, color=white.
It is a great timer and very easy to install. Thanks for the great code!
by: rh [admin] on 2006-12-14 03:50:32 degrade browser performance. also your server will be hit as many times as there are iframes plus a js download for each plus the page itself. if planning to use many, consider sparing my server by downloading the js file and sourcing from your own server. hth
by: rh [admin] on 2006-12-14 03:49:43 for each countdown create a separate html page. set body margin to 0. then place the iframes on your target page in desired locations like <iframe src=page1.html... , <iframe src=page2.html..., et al. set the size and style of the frames so they occupy minimum area. also remove border, scrollbars, etc. note that having too many active controls on a page could ...
by: Mark on 2006-12-13 15:21:41 I think this code is great, however i do need it multiple times on a single page as i am using it for an auction type of situation. I read where i would have to use a <iframe> but where do I put that line of code??
As you can see Im a NEWB! when it comes to any code.
by: rh [admin] on 2006-12-12 14:48:05 hi, i tried this date and it works fine on IE and FF displaying accurate information. check your computer clock. it's possible that it's off throwing the calculation.
by: Janet on 2006-12-12 05:34:36 I know so little about computers that I am dangerous. I set up a blog for my nephew's bar mitzvah, and I thought a countdown timer would be fun to add. I copied your scripted verbatim, the only change I made is TargetDate = "02/09/2007 12:00 AM UTC-0500" it show time left as 5133 days, etc. Why?
by: rh [admin] on 2006-12-08 03:56:44 also be sure to specify the year in yyyy format, not yy. for example 2006, not 06.
by: rh [admin] on 2006-12-08 03:15:38 feel free to send a sample url. will take a look if i get a chance. you can use the contact page to send, if desired.
by: Brian on 2006-12-08 00:50:24 I've had it working flawlessly as a count-up clock until recently. Now, despite the start date being only days away, it says it's been more than 35,000 days! I've tried several different dates, so I know it's not a typo. I can't figure out what's different. Any ideas would be appreciated.
by: XIAIX on 2006-11-14 23:53:41 Here's a nice little twist I made ( exampled here: http://www.thecomputerprofessional.com/code/javascript.html ) that counts down in seconds until the web page will be redirected. No need to set dates and such, just input how many seconds and to what page you want to go to. Enjoy!
by: rh [admin] on 2006-11-07 18:37:38 for mun's code, i'm sure that can be done. i haven't had a chance to play with his code much. most people download it and customize it to their liking.
as for IE, unfortunately the browser can be very paranoid depending on its security settings, but i believe in its default state it doesn't complain. you might be able to mitigate the issue by copying the js file to your own site and referring to that location from your
by: Cheryl on 2006-11-06 20:30:19 Hi. I saw this question previously, but no answer... Using the Rashid Coding to have multiple timers, is there any way to add the 'Finish Message'?
Another thing.. you may not be able to help with this.. but I've seen the banners that count down days before, and they open up without any warnings.. this script causes IE to pop up the 'blocked unsafe content' and will not display unless you 'allow' it
by: JPDeni on 2006-11-05 20:58:12 Thank you so much for this. I have no experience with javascript, but your coding was so clear that I understood what was going on and was able to bend it to my will. I altered the code so that it accepts a start date and time and an end date and time for an event and prints out a "during" message between the two. Really slick! The site's not "live" yet, but I'll come back and post the URL when there's something
by: rh [admin] on 2006-10-26 01:57:14 send a url of a page that uses your local js file. will take a look if i get a chance. thanks.
by: wolfie on 2006-10-25 21:12:21 exactly what I was looking for and works extremely well... except when I downloaded the .js file and tried to run it off my server, it didn't read from any of the values, it always went to defauls. Works fine when running from your server, though...
by: chulian1819 on 2006-10-19 21:26:55 Thanks a lot! works 110% great! save me from doing a lot of head scratching with javaScript ;)
by: richard on 2006-10-12 04:50:45 what do I have to do in order to have a mulitple time countdown on my same web page. I have done your "Download Mun's JavaScript code here. Download the sample HTML here." but it did not work. please help. thanks
by: MR on 2006-10-09 22:55:23 GOT IT WORKING BUT SEEING DOULBLE COUNTDOWN CLOCKS. ONE COUNTING DOWN AND THE OTHER STATIC. ANY IDEAS??
by: rh [admin] on 2006-10-04 22:46:30 what about the counter on this page? is it also misbehaving for your browser? feel free to post or email your url, and i'll take a look.
by: Mark Rose on 2006-10-04 17:38:00 I tried your countdown timer and using IE I get:
NaN Days, NaN Hours, NaN Minutes, NaN Seconds
Any ideas??
by: Derek Kaye on 2006-09-27 18:29:43 just a note to people because this confused me, you need to use the USA date standard instead of the european standard. that is mm/dd/yyyy instead of dd/mm/yyyy <strike>damn yanks</strike> :P
by: rh [admin] on 2006-09-24 23:24:31 hope that works out. here's a snapshot image of how it looks to me: http://www.hashemian.com/images/ff-counter.gif
may need to download the js file and go thru it a line at a time to find where the issue is.
by: Adam C on 2006-09-24 20:44:01 weird i still see it as NaN (I'll dump the cache)
by: rh [admin] on 2006-09-24 17:30:31 just tried it from firefox 1.5.0.7 on xp and counter runs fine. if i get a chance, i'll try this on fedora in a few days.
by: Adam C on 2006-09-23 04:08:27 I messed up it was just the latest patch to firefox not the 2.0 beta so currently i'm running 1.5.0.7
by: Adam C on 2006-09-23 03:34:25 I'm running it on usathletics.com - redhat linux is the os on the server and I'm running XP pro (I've been trying to set it against the server time - I had it working for days then upgraded firefox and now I get NaN)
by: rh [admin] on 2006-09-22 12:56:04 just ran firefox 2.0 beta on win2k pro and the counter on this page appears fine. please advise platform, specific web page, and other info to troubleshoot. thx
by: Adam C on 2006-09-21 21:29:39 I'm also getting the NaN on Firefox 2.0 this is a recent problem... (as my firefox was just upgraded) any ideas?
by: Mr Wiggles Worth on 2006-09-20 14:55:49 i was just wondering if any one can help me i was wondering how to put to pieces of text at different times and one is only there for so long say 1min i was just wondering if it is possible
by: ton stegers on 2006-08-29 15:50:48 SUPER, SUPER, AND EASY
THANK YOU. TON FROM THE NETHERLANDS
by: DEKO on 2006-08-14 15:42:40 Thanx man! VERY NICE script!!!
by: Craig on 2006-08-13 11:10:58 I am really impressed with this countdown timer but I have one problem - I can't specify which second the timer needs to end. This is very important to me as I would like to use it in an online game. If anyone can help please email me at [email protected].
by: Bjorn on 2006-08-03 05:29:45 Works fine :D
by: Vince P. on 2006-08-01 05:41:40 It couldn't be simpler. Thank you, kind Sir, for such a wonderful piece of code!
by: Nip/Tuck Fanatic! on 2006-07-27 17:09:14 Love the countdown! Works like a champ!
by: MSanchez on 2006-07-26 19:06:38 This is by far, the simplest and easiest countdown/countup clock I found on the web. Thank You!
by: Dan on 2006-07-24 18:29:43 Thank you for this countdown code, it came in really handy for me!
by: Daniel on 2006-07-21 15:41:49 Does anyone know if I can exchange the thing displayed when done to another piece of javascript? For example, changing location?
Anyone tried this?
by: Nicole on 2006-07-19 21:20:16 Wow!!! Thanks for the counter Robert. It works beautifully.
by: Ironic on 2006-07-17 02:19:30 I've discovered after I added the code to my website, the W3C validator for XHTML 1.1 had 4 errors, all pretaining to the applet. Instead of using <script language="JavaScript">,you can use <script type="text/javascript"> and the same for the countdown.js line.
by: webmaster on 2006-07-15 14:12:51 And is it possible to put an other count-down as finish message ?
by: webmaster on 2006-07-15 14:11:34 Is it possible somehow to make it restart by itsself. Like countdown ends at 18.00, shows finish message and restarts it on some time, like 19.00?
by: Sylvia on 2006-07-10 09:48:45 Is it also possible to put this on my desktop in stead of a webpage?
by: rh [admin] on 2006-07-06 22:28:37 TargetDate = "1/8/2005 10:35 PM"; CountStepper = 1;
by: Angela on 2006-07-06 05:08:37 I need help, can you help me adjust the code to count up from the date January 8, 2005 10:35 PM????
by: bill on 2006-07-05 21:01:00 Wow. I don't know squat about javascript, but this worked in about 5 minutes.
Guys like you keep the net from becoming cable TV.
Thanks.
by: Jing on 2006-07-02 20:14:00 hi....i have tried using the counter and it works great however as i wanted multiple countdown counters on my site i tried using mum rashid and it only showed 2 words. clock and clock 2. i couldn't get it to work. also, i really have no idea how to implement iframe and my javascript knowledge i m afraid...is really limited. can u pls help me out here....thxs =)
by: Ryan on 2006-06-30 01:09:03 Im trying to put a countdown timer on the front page of a VBulletin Forum, however im running into a really weird problem. From Firefox, it shows the correct countdown time (Aprox 15 Days), however from IE it shows 5927 Days. Any ideas??
by: Joash on 2006-06-28 13:17:17 hi, awesome timer =D
i was wondering, is it possible to recode the javascript in order to make is appear with seconds only? for example 19281921912 seconds left.
by: as on 2006-06-27 16:28:19 im sorry the page is : http://alexstets.com/timer/default.aspx
any input is appreciated.
by: as on 2006-06-27 15:44:06 At Ronalds suggestion about the mac osx issue i tried the following formats: TargetDate = "Tue, 30 Jun 2006 11:30:00 GMT-0500" TargetDate = "Tue, 30 Jun 2006 11:30:00 UTC-0500" TargetDate = "Tue, 30 Jun 2006 11:30:00 EST"
Im in eastern time, and now matter which one i use from the above, the time is always one hour off. Can some one help me with this? Please visit my page: http://alexstets.com/timer/d
by: as on 2006-06-27 15:28:17 At Ronalds suggestion about the mac osx issue i tried the following formats: TargetDate = "Tue, 30 Jun 2006 11:30:00 GMT-0500" TargetDate = "Tue, 30 Jun 2006 11:30:00 UTC-0500" TargetDate = "Tue, 30 Jun 2006 11:30:00 EST"
Im in eastern time, and now matter which one i use from the above, the time is always one hour off. Can some one help me with this? Please visit my page: http://alexstets.com/timer/d
by: Ronald on 2006-06-21 17:12:48 Ok, I believe I have found the OSX issue and the way to solve it. You must specify the date exactly in this format: "Thu, 22 Jun 2006 14:15:00" Otherwise for some reason OSX wont parse the date correctly.
by: Ronald on 2006-06-21 13:54:59 I am considering this script, but it looks like there have been many posts that it doesnt work on Mac osX? Can anyone using a mac confirm that this script does or does not work for them???
by: Duncan on 2006-06-06 21:35:14 To solve the NaN problem, use this format for your TargetDate instead of the UTC format: 05/12/2007 2:00 PM GMT-0400 (Eastern Daylight Time)
by: Peter on 2006-06-03 16:57:15 This is great and I've got it on <a href="http://01010.org/countdown-timer">this webpage</a>. But I've just discovered that on a Mac osX it displays the FinishMessage instead of the time. Anyone know how to fix this?
by: babu on 2006-05-30 05:21:26 when i hold resize button the timer is stopping. please give me suggestion
by: rh [admin] on 2006-05-26 18:25:40 the time difference calculated in the script is in millisecs, so you can skip dividing by 1000 and modify the function to show that and then change the timeout period to your desired millisec value.
i must, however, warn you that millisec values are inherently inexact and speeding the countdown too much would tax the computer resources, bog down the system, or crash it.
by: santagati on 2006-05-25 01:53:01 thank you for this wonderful countdown...
how can I display the milliseconds as part of the countdown as well? I've been trying to figure it out, but I have been having some difficulty...
thank you kindly...
by: rh [admin] on 2006-05-23 02:50:41 a quick method to eliminate the leading 0's for a number is to stuff it into an integer and change it back to a string. i.e. parseInt(X).toString(). one reason to keep the leading 0's is to prevent the countdown string from constantly shrinking and stretching. it could get irritating to the viewer. hth, rh
by: RJH on 2006-05-22 02:13:34 Hi, could you please let me know how to change the .js file so that when the countdown gets into the single digits, it will say "5 days left" instead of "05 days left"? Thanks!
by: rh [admin] on 2006-05-22 01:12:04 sorry to hear about the NaN problem. I have tested this on as many browsers and platforms as i have access to, but i'm sure i've missed some. does the sample on this page also display the error? generally that means that the code does not correctly recognize number values. you might need to download the js code and wrap some of the values in parseInt() function.
by: rh [admin] on 2006-05-22 01:04:06 the script, as is, does not support multiple countdowns on one page. that said, you could use separate iframes on the page to show multiple countdowns, or download the js file and make appropriate changes, such as that done by mum rashid.
by: Vas on 2006-05-18 02:39:52 I am getting the countdown in Opera alright but in IE and Mozilla I get
NaN Days, NaN hours, Nan Minutes, NaN seconds
why? Can anybody help me please!
by: Commando3200 on 2006-05-16 17:28:45 I have something to say... I put two countdowns on seperately, then it showed one alternating between the two. Can you help me out?
by: SentoSoft on 2006-05-10 21:44:58 Check out this javascript quotes ticker: http://www.sentosoft.com/website-quotes-ticker.php
by: Craig Janelli on 2006-05-04 17:12:27 This is awesome... I'm just learning about most of this stuff, but it was easy to implement.
I was thrown off by one thing... I couldn't figure out why it was off by an hour, and then realized that UTC doesn't account for Daylight Savings Time. I just readjusted it for another hour and now it's perf.
by: thebinaryman on 2006-05-01 22:47:31 great script! love it, fast and simple! works great except regardless of where i host the file, it is blocked at my school because it uses up too much resorces, so it does not work when i open up my sites at school. kinda sucks seeing as it counts down until the end of school, but it works fine for each viewer at home.
by: Kevin on 2006-05-01 12:57:25 Nice job!
by: Mark Heard on 2006-05-01 12:12:11 Thanks for the timer. We are using it to countdown to our first road race in September. Works really well thanks again.
by: Barbara on 2006-04-28 12:28:13 this isnt working and its driving me crazy
by: rh [admin] on 2006-04-24 17:49:28 add desired milliseconds to current time and assign to TargetDate. for example for a 2 minute timeout use: TargetDate = new Date().valueOf() + 120000;
thanks and enjoy
by: Michael on 2006-04-23 07:16:47 Billiant Script! The only one i realy understand! PHP and ASP ones are to complex to understand... Just a quick Q. I'm wanting to add quiz's to my site and i want to have a countdown which gives them 2 minutes to complete it. How can i get it to be based so it completes 2 minutes after the page has loaded instead of a set initial date, and redirects to another page?
Thanks for the code!
by: JemAs on 2006-04-10 00:52:47 How would you make the script skip weekend days and only take in account for weekdays for the countdown?
by: YoungFools on 2006-03-19 13:55:15 How can you change the font?
by: rh [admin] on 2006-03-08 04:04:09 you can use the new "CountStepper" parameter to count up. as for the asp question, if you are using JScript asp try: dnow=new Date(<%= new Date().valueOf() %>);
hth
by: -silver2u- on 2006-03-06 04:32:45 hi hi hi umm i was just wondering if there's any way that i can get code not for counting down... but up(?) like, how many days has passed since nov.28? something like that?
by: Craig on 2006-03-03 14:42:58 I love it. I am having the same problem as matthew with fetching the server time. i am using asp any hints.
by: Craig on 2006-03-03 14:15:12 I love it. I am having the same problem as matthew with fetching the server time. i am using asp any hints.
by: rh [admin] on 2006-02-26 03:47:07 you could do that by adding the desired number of milliseconds to current time and assigning to TargetDate. for example for a 50 second timeout you would use this: TargetDate = new Date().valueOf() + 50000;
hth
by: Gabbe on 2006-02-25 13:24:12 Hi!....:D I just wonder...Can i make it count down like from 50 seconds?...and when it reaches 0 seconds it says: Yes finnaly its here instead??..:D Please help man!!!!!!!
by: thymas on 2006-02-21 23:41:05 I've setup the option with the two counters, but i'd like a message to display when the time expires as it does with just the single counter - is that possible? if so, what are the code changes to the setup of the two counters? I'm not very familiar with Javascript so details are great.
thanks,
by: rh [admin] on 2006-02-19 20:54:52 to customize the display, you can download the .js file, alter it, and reference it from your own location. you can use string functions to remove the 0's or convert to int (parseInt) and back to string. one reason the script doesn't remove leading 0's is to preserve length consistency. otherwise the string would shorten and lengthen intermittently, irritating viewers.
by: FanStopCentral.com on 2006-02-13 17:25:31 how can i remove the "0" in front of single digit numbers? saying "2" instead of "02"
by: rh [admin] on 2006-02-09 23:48:19 word or hex code shouldn't make a difference. the colors you mention are all legal. make sure the page html tags are correct. just tested various colors myself and all work fine. if you wanna send me your page, i'll take a look when i have a chance.
by: Maria on 2006-02-09 05:19:19 What other colors are available for the forecolor and backcolor? I've tried pink, red, and white and they don't seem to work. How do we put them in the script: in a code or just the word?
by: xiao on 2006-02-03 17:20:29 thanks for the counter. It's working perfectly and definatly will be used on other sites.
by: Dave on 2006-01-22 05:34:50 Yes, thanks! Works great!
by: rh [admin] on 2005-12-31 03:33:02 wrap the code in a font, div or span tag and apply stylesheet.
by: Dd on 2005-12-30 01:12:55 How do I change the font size?????
by: movieman2000 on 2005-12-06 11:37:56 Thanks a lot for this, and it is amazingly easy to customize. Thank you VERY much!!!
by: rh [admin] on 2005-12-06 10:31:59 you might be able to suppress the bold font by wrapping the code in a div or span and apply stylesheet, though haven't tried it myself. of course you can always d/l the js code, adjust it as desired, and run it from your own site.
by: Harmony on 2005-11-29 04:13:58 Wonderful! Beautifully explained and very simple to implement, thank you for this great script :)
by: PEZ on 2005-11-26 12:38:29 I've created a http://mediwiki.org extension based on this. Check it out on:
For some examples on a site where the extension is installed check out:
http://h2wiki.halowiki.net/wiki/Help:Countdown_Extension
by: Ron on 2005-11-22 06:15:51 anyone know how to make the text show up without being in a BOLD font? Otherwise I LOVE THIS script!
by: Brett on 2005-10-28 04:10:07 Awesome timer - the best I've found. I am trying to use the timer modified by Mun Rashid, but would like it to display messages when the timer runs out instead of counting negative time. Any thoughts on how to modify the JS code to allow for that? (I am sure it isn't that difficult, but I am extremely novice at this)
by: Johan on 2005-10-11 09:24:54 Great script, nice to customize! I thank you!!!
by: Greg on 2005-09-29 19:42:14 Using with Frontpage. If it appears in Frontpage but not on webpage you need to FILE>IMPORT the .js file into the web then save it to the server. Change the code in the block to reflect the file location on the server (looks like: http://www.yourwebsite.com/(file/folder containing calendar.js)
by: rh [admin] on 2005-09-14 21:42:27 thanks for the kind words. regarding the question from matthew, the answer is yes. you can use the current server time. one way is to download and include the js in your php code. then look for the dnow variable. you can stuff the server current time into new Date(). e.g. in php: var dnow = new Date("<?= date('F j, Y, g:i a') ?>");
good luck
by: differnece on 2005-09-13 16:37:32 I think this countdown timer is just marvelous work. the best I've ever found on the web. pretty simple but it works excellent. thumbs up.
by: Matthew Paul on 2005-09-09 16:26:20 Hi, thanks for providing this timer, good work. I'm currently using it in an ASP/mssql based website on an online test to show a real time countdown. However, I was wondering if it was possibly to modify it so that you pass it the current server time (as well as the target time), rather than it counting down based on the users own system time? I know asp, and php, but I'm not to hot on javascript!
by: Marilyn on 2005-09-08 01:19:48 Love the script! I used it at http://ineedahelpinghand.com to only give the experts 30 minutes to answer a question. After that the page redirects to a failed page. I did this by adding the following line after line 30 in the js file Line30-document.getElementById("cntdwn").innerHTML = FinishMessage; Line31-window.location.href="something.asp" Hope this helps someone. Thanks again for such great code!
by: Carlos Bazilio on 2005-09-02 21:41:00 Really great! I was looking for something like that. I have a blog and this count will be useful to scare my students about the coming exams !! :-) My best regards, Carlos
by: rh [admin] on 2005-08-26 17:38:49 i'm not familiar with mambo, but the countdown is completely client-side. as long as the page renders the javascript piece, it'll work fine. feel free to include the code block and the url to your page, and hopefully i or someone can give a hint. good luck.
by: Jeff Miller on 2005-08-23 00:45:47 I am trying to create a module in mambo however it doesn't seem to like the javascript, modules need to be in php, can you help me out? Sorry i am not very strong in programming. Thanks in advance.
by: rh [admin] on 2005-08-11 02:40:53 using the countdown in php or other scripted pages is no different than static html. if you are generating part or the full code dynamically, do a view source to make sure the javascript code is generated correctly. your php code might be clobbering something, causing errors. should be easy to spot the problem.
by: Diego Fernando on 2005-08-10 15:07:19 hi, it's wonderfull and easy to use. Thank's.
but if i wanna use it fixed with php scripts it seems to fail. what can i do?
by: Debra Hamel on 2005-07-28 03:46:26 Thanks for this. It does look like playing with the haloscan code--even moving it on the page--gets rid of the problem. If nothing else I may just remove the haloscan, as I don't strictly need it here.
Thanks again for the great counter!
by: rh [admin] on 2005-07-28 02:59:23 hi debra, i visisted your site with IE and FF in windows and all appears fine. unfortunately i don't have access to a mac, so can't troubleshoot. i noticed some other scripts being called such as that from haloscan. does the page load fine with those removed? if so, there might be a script clash. try to modify the countdown variable names and see how it goes.
by: Craig Robertson on 2005-07-27 08:17:32 Thank you very much for a simple, quick implementation of a countdown timer. It is fully customizable and the best on the net. Thanks.
by: Debra Hamel on 2005-07-26 04:47:06 As I was saying: over in the sidebar on the right. But sometimes it happens lower down in the page. It doesn't seem to happen at all on Netscape 7.02. Do you have any idea what might be causing this? It happened both before and after I brought countdown.js over to my site. Thanks for your help.
by: Debra Hamel on 2005-07-26 04:43:57 I love this counter. It's the best I've found on the web after a lot of surfing. I've got it on my site, buyafriendabook.com, and I moved the countdown.js file over to my space so it wouldn't have to call on your server all the time. Problem is, I think it's responsible for an intermittent problem. Often when I load the page in IE 5.1 (Mac) some part of the page will display improperly. Usually this happens over in th
by: rh [admin] on 2005-07-21 22:25:21 this'll obviously involve modifying the js code. most likely would require preloading the digit images and loading the respective images for the digit positions on every tick (e.g. img.src=...). might stress the browser a bit though, unless well optimized.
by: Stone on 2005-07-19 23:07:23 Thanks for the code! Do you know how to use a bunch of images of numbers to make a countdown?
by: rh [admin] on 2005-07-17 01:49:52 hi kent, you can wrap the entire code within a <font> tag that specifies the font face and size either via attributes or css. the counter string will then be displayed using those specified formats.
by: Kent on 2005-07-14 20:53:37 How can you change the font of the countdown? I really don't like the default font, how can I change it to fonts like Verdana? How about font size? Thanks for your quality resource. Keep it up!
by: mike on 2005-07-13 17:16:37 Very nice script! I used it on my uncles site, Thanks!
by: rh [admin] on 2005-07-01 17:59:38 if you see the countdown on this page, you should see it on your. unless frontpage has messed up the tags. frontpage is notorious. use notepad to view the source and make corrections. if all fails, contact me from my contact page with the specifics. will do what i can.
by: Shayne on 2005-07-01 10:40:36 Quick question. I add the code to my body and can preview the countdown in frontpage yet when i save the page and try view it through a webpage, the counter doesnt appear? Please help. Thanks
by: Doug on 2005-06-30 22:44:28 Thanks! After searching javascript sites for over an hour, you have exactly what I needed, short and sweet.
by: Justin Carter on 2005-06-21 05:01:31 I am running an Apache server and had to change the date format to
Mon Jun 20 2005 23:57:53 GMT-0500
http://g5.justinink.com is the page with it on it
by: rh [admin] on 2005-06-18 01:34:07 you can download the .js here: http://www.hashemian.com/js/countdown.js the countdown used to go negative when past the zero mark. based on your feedback, a new parameter, FinishMessage, has been added to display your desired message when it crosses zero. enjoy.
by: Cissy on 2005-06-14 17:38:57 Where can we download the .js file for this? Also, what does the timer do when time runs out? What does it say? And can that be edited?
by: rh [admin] on 2005-06-05 02:00:30 thanks for the note. as you have noticed, the countdown works as a single item per page. at this time you have 2 options to get your desired results. you can download the js file and adapt it for your situation, or you can use <iframe> sections on your page displaying different countdowns in each. hth
by: DAvid on 2005-06-03 23:02:07 hi, quick question. For the java countdown, how can you change the countdown to allow for multiple countdows, e,g christmas, easter etc your websites very handy, keep it up Thanks in advance