I want to make a counter visible on my forum counting down to an important event. What's the best way to do that?
This is a Hitskin.com skin preview
Install the skin • Return to the skin page
This is a Hitskin.com skin preview
Install the skin • Return to the skin page
<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>
<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.
Sanket wrote:I don't think you would be able to remove the logo or even allowed to remove it.
Topic Solved & Locked |