Blazed, were you using the java counter provided with cPanel? I'm using that one, right now, at areahotspot.com ... you can see if your code is formatted similarly like mine.
If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.
Register Today on DNForum IT'S FREE!Hi there
I am just wondering if anyone is able to provide me with the code (PHP or HTML) for a text countdown timer.
The text will simply be:
? days, ? hours, ? minutes, and ? seconds until ....
I would prefer that the numbers (?) actually count down on the page (PHP?), or if they only give a value at the time the page is loaded (HTML?).
I have tried for the last hour to get one going, and I have, but it gives errors (java errrors).
Thanks for any help!
Blazed, were you using the java counter provided with cPanel? I'm using that one, right now, at areahotspot.com ... you can see if your code is formatted similarly like mine.
No I'm not, I wasn't aware of it.
In any event I am removing cpanel from my server, and so will need a stand alone solution.
Cheers for the reply.
http://www.secondversion.com/countdown.php Something like that? Uses JavaScript/PHP
Need programming services? Get a Quote
Okay, okay. I give......here's the solution: http://www.tizag.com/tools/countdown.php
Yeah like that except without the box and all the same font.Originally Posted by Version2
@ Edder - that is too complicated, and I couldnt get it to produce simple text.
I know this code must be very easy!
Hey BLazeD, I'll write something for you. Give me a few minutes...
--
Okay, uploaded it to: http://www.nametycoon.com/countdown.htm
Just view the source and save it.
Last edited by Mr.Domains; 09-14-2005 at 09:17 AM. Reason: Automerged Doublepost
★ Neil Hillman - Web Developer, Pixel Pusher...
Some more here
http://dynamicdrive.com/dynamicindex6/index.html
a little mod to stop it missing numbersOriginally Posted by Mr.Domains
![]()
var counter = setTimeout("countdown()", 1500-today.getTime()%1000)
Cheers everyone -especially Mr Domains for writing that for me.
I gave it a shot, but I already have some javascript for other stuff in my header, and everytime I try a method like above, that involves adding more javascript to my header - it never works.
I will try and figure it out, but dont expect much luck. I think it is this new javascript conflicting with the stuff already there? Because the timer just comes up blank
what is your BODY tag?
it should initiate the countdown, sounds like you might have missed that part out.
<BODY onLoad = "countdown()">
Yeah I have that in - it still doesnt work :(
Bookmarks