Belgin Fish
Belgin Fish

Reputation: 19837

Create a Count Up Timer in Javascript/Jquery

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!

Upvotes: 2

Views: 19768

Answers (2)

Jason
Jason

Reputation: 1678

<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" src="http://scripts.hashemian.com/js/countdown.js"></script>

Upvotes: 0

Praveen Lobo
Praveen Lobo

Reputation: 7187

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.

Upvotes: 4

Related Questions