Jump to content

countdown clock

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
Hello everybody again :-)

I'm wondering how to make an countdown clock at the easiest way? suggestions?

#2
Guest_Jordan_*

Guest_Jordan_*
  • Guests
Here is a quick and easy one: Countdown Timer Javascript

#3
banker

banker

    Newbie

  • Members
  • PipPip
  • 24 posts
I'm need to make a countdown clock as well. Can this be done using PHP?

#4
semprance

semprance

    Programmer

  • Members
  • PipPipPipPip
  • 126 posts
Not easily. You're better using javascript

#5
DarkLordoftheMonkeys

DarkLordoftheMonkeys

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 255 posts
You can easily make something that counts up or down using the window.setTimeout() function. window.setTimeout() tells the interpreter to call a function after a certain number of milliseconds.

function countdown(){
    count--;
    document.getElementById('time').innerHTML = count;
    window.setTimeout( "countdown()", 1000 );
}

Something like that.
Life's too short to be cool. Be a nerd.