tags:

views:

318

answers:

3

Hey, I'm just wondering if someone could tell me, or point me in the right direction, on how to make a count up timer.

I'd like to have it constantly, from the second I put it into place count up saying the seconds, minutes, hours, days, and years.

Thanks!

A: 

example of count up timer

jason
how would I use that to count up though?
Belgin Fish
@jason: -1: please don't just post a link. At least _say_ something about what's at the link.
John Saunders
you would change the lineCountStepper = -1;to CountStepper = 1;
jason
+1  A: 

http://www.dailycoding.com/Posts/object_oriented_programming_with_javascript__timer_class.aspx

I used that and it works great. The example used counts up, but I also used it to count down.

Brandi
A: 

Here is a Javascript CountUp Timer I wrote. It takes a timestamp to start counting the time from, an ID to put the timer, and a message to append to the timer. Please find the demo page link at the bottom of the post there(unable to provide the link here). Demo page has two types of counters.

Lobo