Welcome to Welcome to DNF.com™ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars

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!

Results 1 to 12 of 12
  1. #1
    Selling
    BLazeD's Avatar
    Join Date
    Apr 2004
    Location
    New Zealand
    Posts
    3,055
    DNF$
    33
    Bank
    12,403
    Total DNF$
    12,436
    Donate  

    Arrow Wanted: Simple Countdown Timer Code

    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!

  2. #2
    DNF Addict

    Join Date
    Mar 2005
    Location
    Bay Area, CA
    Posts
    1,501
    DNF$
    2,474
    Bank
    0
    Total DNF$
    2,474
    Donate  

    Re: Wanted: Simple Countdown Timer Code

    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.

  3. #3
    Selling
    BLazeD's Avatar
    Join Date
    Apr 2004
    Location
    New Zealand
    Posts
    3,055
    DNF$
    33
    Bank
    12,403
    Total DNF$
    12,436
    Donate  

    Re: Wanted: Simple Countdown Timer Code

    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.

  4. #4
    while($awake) { code(); }
    Version2's Avatar
    Join Date
    Apr 2005
    Location
    Kentucky
    Posts
    77
    Country

    United States
    DNF$
    109
    Bank
    0
    Total DNF$
    109
    Donate  

    Re: Wanted: Simple Countdown Timer Code

    http://www.secondversion.com/countdown.php Something like that? Uses JavaScript/PHP
    Need programming services? Get a Quote

  5. #5
    DNF Addict

    Join Date
    Mar 2005
    Location
    Bay Area, CA
    Posts
    1,501
    DNF$
    2,474
    Bank
    0
    Total DNF$
    2,474
    Donate  

    Re: Wanted: Simple Countdown Timer Code

    Okay, okay. I give......here's the solution: http://www.tizag.com/tools/countdown.php

  6. #6
    Selling
    BLazeD's Avatar
    Join Date
    Apr 2004
    Location
    New Zealand
    Posts
    3,055
    DNF$
    33
    Bank
    12,403
    Total DNF$
    12,436
    Donate  

    Re: Wanted: Simple Countdown Timer Code

    Quote Originally Posted by Version2
    http://www.secondversion.com/countdown.php Something like that? Uses JavaScript/PHP
    Yeah like that except without the box and all the same font.

    @ Edder - that is too complicated, and I couldnt get it to produce simple text.

    I know this code must be very easy!

  7. #7
    DNF Addict
    Mr.Domains's Avatar
    Join Date
    Sep 2004
    Location
    Geneva, Switz.
    Posts
    1,868
    Country

    Great Britain
    DNF$
    3,233
    Bank
    6,090
    Total DNF$
    9,323
    Donate  

    Re: Wanted: Simple Countdown Timer Code

    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...

  8. #8
    Former DNF Admin
    MediaHound's Avatar
    Join Date
    Feb 2004
    Location
    Florida
    Posts
    4,896
    Blog Entries
    1
    DNF$
    15,985
    Bank
    0
    Total DNF$
    15,985
    Donate  

    Re: Wanted: Simple Countdown Timer Code


  9. #9
    Gold Lifetime Member

    Join Date
    Oct 2004
    Posts
    204
    DNF$
    340
    Bank
    0
    Total DNF$
    340
    Donate  

    Re: Wanted: Simple Countdown Timer Code

    Quote Originally Posted by Mr.Domains
    Okay, uploaded it to: http://www.nametycoon.com/countdown.htm
    Just view the source and save it.
    a little mod to stop it missing numbers

    var counter = setTimeout("countdown()", 1500-today.getTime()%1000)

  10. #10
    Selling
    BLazeD's Avatar
    Join Date
    Apr 2004
    Location
    New Zealand
    Posts
    3,055
    DNF$
    33
    Bank
    12,403
    Total DNF$
    12,436
    Donate  

    Re: Wanted: Simple Countdown Timer Code

    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

  11. #11
    Gold Lifetime Member

    Join Date
    Oct 2004
    Posts
    204
    DNF$
    340
    Bank
    0
    Total DNF$
    340
    Donate  

    Re: Wanted: Simple Countdown Timer Code

    what is your BODY tag?
    it should initiate the countdown, sounds like you might have missed that part out.

    <BODY onLoad = "countdown()">

  12. #12
    Selling
    BLazeD's Avatar
    Join Date
    Apr 2004
    Location
    New Zealand
    Posts
    3,055
    DNF$
    33
    Bank
    12,403
    Total DNF$
    12,436
    Donate  

    Re: Wanted: Simple Countdown Timer Code

    Yeah I have that in - it still doesnt work :(

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Domain name forum recommended by Domaining.com