Count down
3 posters
Page 1 of 1
Count down
I want to make a counter visible on my forum counting down to an important event. What's the best way to do that?
Re: Count down
- Code:
<head>
<script LANGUAGE="JavaScript">
var now = new Date();
var theevent = new Date("Sep 29 2007 00:00:01");
var seconds = (theevent - now) / 1000;
var minutes = seconds / 60;
var hours = minutes / 60;
var days = hours / 24;
ID=window.setTimeout("update();", 1000);
function update() {
now = new Date();
seconds = (theevent - now) / 1000;
seconds = Math.round(seconds);
minutes = seconds / 60;
minutes = Math.round(minutes);
hours = minutes / 60;
hours = Math.round(hours);
days = hours / 24;
days = Math.round(days);
document.form1.days.value = days;
document.form1.hours.value = hours;
document.form1.minutes.value = minutes;
document.form1.seconds.value = seconds;
ID=window.setTimeout("update();",1000);
}</script>
</head>
<body>
<p><font face="Arial" size="3">Countdown To January 31, 2000, at 12:00: </font></p>
<form name="form1"><p>Days <input type="text" name="days" value="0" size="3"> Hours
<input type="text" name="hours" value="0" size="4"> Minutes <input type="text" name="minutes" value="0"
size="7"> Seconds <input type="text" name="seconds" value="0" size="7"> </p>
</form>
</body>
</html>
That is the basic ,chage how did you want.
Re: Count down
Thank you, Sanket. I've found a timer like I want but I want to know how to the the 'timeanddate.com' logo off of it?
- Code:
<iframe src="http://free.timeanddate.com/countdown/i3jkvlpj/n2109/cf111/cm0/cu4/ct0/cs0/ca0/cr0/ss0/cac000/cpc000/pc66c/tc66c/fs100/szw320/szh135/tatI%20Am%20Alice/tac000/tptTime%20since%20Event%20started%20in/tpc000/matRelease%20Date/mac000/mpc000/iso2013-09-03T00:00:00" frameborder="0" width="320" height="135"></iframe>
candy_fear wrote:
- Code:
<head>
<script LANGUAGE="JavaScript">
var now = new Date();
var theevent = new Date("Sep 29 2007 00:00:01");
var seconds = (theevent - now) / 1000;
var minutes = seconds / 60;
var hours = minutes / 60;
var days = hours / 24;
ID=window.setTimeout("update();", 1000);
function update() {
now = new Date();
seconds = (theevent - now) / 1000;
seconds = Math.round(seconds);
minutes = seconds / 60;
minutes = Math.round(minutes);
hours = minutes / 60;
hours = Math.round(hours);
days = hours / 24;
days = Math.round(days);
document.form1.days.value = days;
document.form1.hours.value = hours;
document.form1.minutes.value = minutes;
document.form1.seconds.value = seconds;
ID=window.setTimeout("update();",1000);
}</script>
</head>
<body>
<p><font face="Arial" size="3">Countdown To January 31, 2000, at 12:00: </font></p>
<form name="form1"><p>Days <input type="text" name="days" value="0" size="3"> Hours
<input type="text" name="hours" value="0" size="4"> Minutes <input type="text" name="minutes" value="0"
size="7"> Seconds <input type="text" name="seconds" value="0" size="7"> </p>
</form>
</body>
</html>
That is the basic ,chage how did you want.
Thank you, candy_fear. I may be using this or the one Sanket gave me.
Re: Count down
I don't think you would be able to remove the logo or even allowed to remove it.
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: Count down
Sanket wrote:I don't think you would be able to remove the logo or even allowed to remove it.
Okay, how do I edit the code candy_fear gave me?
The date I want to put in is September 3, 2013 and the reason is the next book in the series is being released on that day. So how can I make a countdown to that day? Can I put a title saying "Release Date" or "Countdown to 'I Am Alice' "?
Re: Count down
var theevent = new Date("Sep 29 2007 00:00:01")
Thats the part that you need to change. So just change the date.
Yes, modify the text as you want it.
Thats the part that you need to change. So just change the date.
Yes, modify the text as you want it.
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: Count down
I have not tried it, so can't say much. Where did you add the code?
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: Count down
#00FFFF
Source Wikipedia. lol
Source Wikipedia. lol
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: Count down
Oh, Sorry.
Anyway, I wasn't able to make the one from candy_fear work but I was able to get the one you gave me work though. So I'm marking this solved. Thanks!
Anyway, I wasn't able to make the one from candy_fear work but I was able to get the one you gave me work though. So I'm marking this solved. Thanks!
Re: Count down
Don't have to be sorry.
Topic Solved & Locked |
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Similar topics
» How do I make a forum area not count towards post count..?
» Post count
» post count
» member count
» Download count
» Post count
» post count
» member count
» Download count
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum