Js countdown timer
4 posters
Page 1 of 1
Js countdown timer
Little realtime snippet you can add to portal(or whereever). Just need to adjust the date and message format.(as well as foreground and background colors, initially.) As an example I use mine as a holiday countdown timer.
Edit: I guess tags dont work in code, so whatever is between the [b ] and [/b ] tags
I've bolded the areas that need changing, pretty straight forward script, and an eyecatcher.There are only 05 Days, 14 Hours, 38 Minutes, 29 Seconds until April Fools Day!!
- Code:
<script language="JavaScript">TargetDate = "[b]04/01/2008 00:00 AM[/b]";BackColor = "#[b]ecf7ee[/b]";ForeColor = "#[b]536482[/b]";CountActive = true;CountStepper = -1;LeadingZero = true;DisplayFormat = "There are only %%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds until [b]April Fools Day!![/b]";FinishMessage = "Its [b]April Fools Day Today!![/b]";</script><script language="JavaScript" src="http://scripts.hashemian.com/js/countdown.js"></script>
Edit: I guess tags dont work in code, so whatever is between the [b ] and [/b ] tags
Re: Js countdown timer
Hey that's a great bit of code! I use one similar but that's a lot easier to read and edit when needs be!
Thanks!
Thanks!
Re: Js countdown timer
hello ,, I tryed as you explain example->( i change the date on 27/04/08 & hour on 00:01 am) but ...
i see only this ->There are only NaN Days, NaN Hours, NaN Minutes, NaN Seconds until .... Day!!
the full editing code below:
thanks
i see only this ->There are only NaN Days, NaN Hours, NaN Minutes, NaN Seconds until .... Day!!
the full editing code below:
- Code:
<script language="JavaScript">TargetDate = "[b]27/04/2008 00:01 AM[/b]";BackColor = "#[b]ecf7ee[/b]";ForeColor = "#[b]536482[/b]";CountActive = true;CountStepper = -1;LeadingZero = true;DisplayFormat = "There are only %%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds until [b]...... Day!![/b]";FinishMessage = "Its [b]April Fools Day Today!![/b]";</script><script language="JavaScript" src="http://scripts.hashemian.com/js/countdown.js"></script>
thanks
Re: Js countdown timer
Take the bold tags out
- Code:
<script language="JavaScript">TargetDate = "27/04/2008 00:01 AM";BackColor = "#ecf7ee";ForeColor = "#536482";CountActive = true;CountStepper = -1;LeadingZero = true;DisplayFormat = "There are only %%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds until ...... Day!!";FinishMessage = "Its April Fools Day Today!!";</script><script language="JavaScript" src="http://scripts.hashemian.com/js/countdown.js"></script>
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum