HTML interesse |
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>NGame.nl</title>
<SCRIPT language="JavaScript">
countdownTo=new Date();
countdownTo.setYear(2006);
countdownTo.setMonth(1);
countdownTo.setDate(01);
countdownTo.setHours(08);
countdownTo.setMinutes(30);
countdownTo.setSeconds(0);
function countdown() {
var now=new Date();
var deltaSecs = Math.floor((countdownTo.getTime()-now.getTime())/1000);
var txt="";
var deltaDays=Math.floor(deltaSecs/86400);
deltaSecs-=86400*deltaDays;
txt+=deltaDays+" dagen, ";
var deltaHours=Math.floor(deltaSecs/3600);
deltaSecs-=3600*deltaHours;
txt+=deltaHours+" uur, ";
var deltaMins=Math.floor(deltaSecs/60);
deltaSecs-=60*deltaMins;
txt+=deltaMins+" minuten, ";
txt+=deltaSecs+" seconden, ";
txt=txt.substr(0,txt.length-2);
document.getElementById("countdown").innerHTML=txt;
countdownTimer=setTimeout("countdown()",1000);
}
</SCRIPT>
</head>
<body>
<center>Nog
<SPAN id="countdown"></SPAN>
<SCRIPT language="JavaScript">countdown();</SCRIPT>
tot NGame.nl opent!</center>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>NGame.nl</title> <SCRIPT language="JavaScript"> countdownTo.setYear(2006); countdownTo.setMonth(1); countdownTo.setDate(01); countdownTo.setHours(08); countdownTo.setMinutes(30); countdownTo.setSeconds(0); function countdown() { var deltaSecs = Math .floor((countdownTo .getTime ()-now .getTime ())/1000); var txt=""; var deltaDays =Math .floor(deltaSecs /86400); deltaSecs-=86400*deltaDays; txt+=deltaDays+" dagen, "; var deltaHours =Math .floor(deltaSecs /3600); deltaSecs-=3600*deltaHours; txt+=deltaHours+" uur, "; var deltaMins =Math .floor(deltaSecs /60); deltaSecs-=60*deltaMins; txt+=deltaMins+" minuten, "; txt+=deltaSecs+" seconden, "; txt =txt .substr(0,txt .length -2); document.getElementById("countdown").innerHTML=txt; countdownTimer=setTimeout("countdown()",1000); } </SCRIPT> </head> <body> <center>Nog <SPAN id="countdown"></SPAN> <SCRIPT language="JavaScript">countdown();</SCRIPT> tot NGame.nl opent!</center> </body> </html>
Ergens klopt iets niet aangezien het geen 55 dagen, maar 25 dagen is voor 1 jan. 2006.
Ziet iemand de fout?
|