渡//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
;
正計時 >
#thenceThen{font-size:2em;}
function thenceThen(){
var date1 = new Date(1381741113671);
var TotalSecs=(new Date()-date1)/1000; days=Math.floor(totalSecs/3600/24);
var hours=Math.floor((totalSecs-days*24*3600)/3600);
var mins=Math.floor((totalSecs-days *24*3600-hours*3600)/60);
var secs=Math.floor((totalSecs-days*24*3600-hours*3600-mins*60));
if (days != 0 ) {
document.getElementById("thenThen").innerText="【答案時間:" days "天" hours "小時" mins "分鐘" secs "秒";
}else if (hours == 0 && mins == 0) {
document.getElementById("thenThen").innerText="【答題時間:" secs "秒";
}else if (hours == 0 && mins != 0) {
document.getElementById("thenThen").innerText="【答案時間:" mins "分鐘" secs "秒";
}else if (hours != 0) {
document.getElementById( "thenThen").innerText="答案時間:"hours "小時" mins "分鐘" secs "秒";
}
}
var 時脈;
window.onload=function(){
clock=self.setInterval("thenThen()", 500);
}
腳本>
頭>
身體>
=================== =========================== ========================= ============================ ==============