开发者

Create a Count Up Timer in Javascript/Jquery

开发者 https://www.devze.com 2022-12-26 01:48 出处:网络
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.

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!


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.


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

精彩评论

暂无评论...
验证码 换一张
取 消