"); //カウントダウンメイン function timer(){ myD = new Date(); nowTime = myD.getHours() * 3600 + myD.getMinutes() * 60 + myD.getSeconds(); var index = getIndex(nowTime); targetTime = TimerList[index].split(",")[0].split(":")[0] * 3600 + TimerList[index].split(",")[0].split(":")[1] * 60 + eval(TimerList[index].split(",")[0].split(":")[2]); myMsec = targetTime - nowTime; myMsec = (myMsec < 0) ? 24 * 3600 + myMsec : myMsec; myNextHour = Math.floor(myMsec/(3600)); // カウントダウン用 '時' 取得 myMsec -= (myNextHour*(60*60)); // 経過秒から'時'を引く myNextMin = Math.floor(myMsec/(60)); // カウントダウン用 '分' 取得 myMsec -= (myNextMin*(60)); // 経過秒から'分'を引く myNextSec = Math.floor(myMsec); // カウントダウン用 '秒' 取得 myDisp = ""; // 時間バッファ クリア myDisp+=myNextHour+"時間"; myDisp+=myNextMin+"分"; myDisp+=myNextSec+"秒"; myDisp = TimerList[index].split(",")[1].replace("@time@",myDisp); window.status = myDisp; // StatusBar document.myForm.myFormDate.value = myDisp; // フォーム //レイヤー if (document.layers) { document.layers["layer1"].document.open(); document.layers["layer1"].document.write(myDisp); document.layers["layer1"].document.close(); } else if (document.all) { document.all("layer1").innerHTML = myDisp; } else if (document.getElementById){ document.getElementById("layer1").innerHTML = myDisp; } setTimeout("timer()",1000); } //-->