Add this script to you HTML webpage:
<!– START 08. HOME – CONTENT – Countdown (1291)–>
<script language="javascript">
var nowDate = new Date();
var eventDate = new Date("Dec 31 2006 23:59:59 +0100");
function update()
{
nowDate = new Date();
secondstogo=(eventDate-nowDate)/1000;
days = secondstogo/(24*60*60);
days = Math.floor(days);
secondstogo=secondstogo-(days*24*60*60);
hours = Math.floor(secondstogo/(60*60));
secondstogo=secondstogo-(hours*60*60);
minutes = Math.floor(secondstogo/(60));
secondstogo=secondstogo-(minutes*60);
seconds = Math.floor(secondstogo);
if (seconds < 10)
seconds = "0" + seconds;
newclock = days + " dagen<br/>" + hours + " uren<br/>" + minutes + " minuten<br/>" + seconds + " seconden<br/>";
writit(newclock,'countDownInfo');
ID=window.setTimeout("update();",1000);
}
function writit(text,id)
{
document.getElementById(id).innerHTML=text;
}
ID=window.setTimeout("update();", 1000);
</script>
<div id="countdown">
<h1>COUNTDOWN</h1>
<div>
<img style="margin-left:10px; border:0px; float:left;" src="http://top2000.radio2.nl/data/media/db_images/original/42308.gif">
<div id="countDownInfo"></div>
<div style="clear:left;"></div>
</div>
</div>
<!– STOP 08. HOME – CONTENT – Countdown (1291)–>
Leave a Reply