Close window

View/Add Web Comments

508 previous comments
For Web page: http://www.hashemian.com/tools/javascript-countdown.htm
Add your comment

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]Site 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]Site 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 :

<a href="http://www.hashemian.com/tools/javascript-

countdown.htm">


to the start and:

</a>


to the end

Thanks for this script!

by: David on 2009-06-10 17:36:52
Thank you so much!
by: rh [admin]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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 diepa78@hotmail.com

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();"

TargetDate.setSeconds(TargetDate.getSeconds() + 300);

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'] ?>';

and you are set =)

echo "Current Time: " . date("m/d/Y H:i A T");
echo "+2 Hours: " . $_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:

function addTime($hours=30, $minutes=0, $seconds=0 )
{
$totalHours = date("H") + $hours;

$totalMinutes = date("i") + $minutes;

$totalSeconds = date("s") + $seconds;

$timeStamp = mktime($totalHours, $totalMinutes, $totalSeconds);

$myTime = date("m/d/Y h:i A T", $timeStamp);

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]Site 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]Site 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 paz6863@yahoo.com (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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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:

DisplayFormat = "%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds.";
FinishMessage = "It is finally here!";
</script>
<script language="JavaScript" src="http://scripts.hashemian.com/js/countdown.js"></script>

</font>
</html>


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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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 "robert@hashemian.co
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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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 matt@creativepilot.com
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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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 jstimer@goldencrop.co.uk.
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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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:

http://meta.wikimedia.org/wiki/User:PEZ/Countdown_Extension

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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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]Site 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

Submit a comment:

Your Name:
*

Your E-mail: (Not shown. No notification is sent.)

Your Web Page URL:

Your Comment: (Max 450 chars, HTML tags are encoded for security.)
*
 characters left.
Type in the code you see: No zero used [what's this?]

Close window