& lthead & gt
& lttitle & gt倒數計秒
& ltbody & gt
& lt腳本語言= JavaScript & gt
var now = new Date(" 11/26/2006 "+10+":"+30+":"+30);
函數GetServerTime()
{
var uro dz = new Date(" 11/30/2006 11:38:33 ");
now . settime(now . gettime()+250);
天數=(urodz-now)/1000/60/60/24;
daysRound = Math.floor(天);
小時=(urodz-now)/1000/60/60-(24 * days round);
hoursRound = Math.floor(小時);
分鐘=(urodz-now)/1000/60-(24 * 60 * days round)-(60 * hours round);
minutesRound = Math.floor(分鐘);
秒=(urodz-now)/1000-(24 * 60 * 60 * days round)-(60 * 60 * hours round)-(60 * minutes round);
secondsRound = Math.round(秒);
document.getElementById("date ")。innerHTML = daysRound
document.getElementById("time ")。innerHTML = hours round+":"+minutes round+":"+seconds round;
}
setInterval("GetServerTime()",250);
& lt/script & gt;
距離* * * * * * *和< span id="date " >& lt/span>。& ltspan class="white14b " >神
& lt/body & gt;
& lt/html & gt;