|
");
setTime(baseUrl,kakuchoshi,yesday);
}
function defWatchTD(str, iro, divID){
return " | " + str + " | ";
}
function setTime(baseUrl,kakuchoshi,yesday){
var now = new Date();
var hh = now.getHours();
var nn = now.getMinutes();
var ss = now.getSeconds();
var dayY = now.getDay();
if(dayY!=yesday){
yesday=dayY;
var gazouUrl = baseUrl+"clock"+dayY+kakuchoshi;
document.getElementById("clockTable").style.backgroundImage="url("+gazouUrl+")";
}
if(hh>=12){
document.getElementById("idXM").innerHTML="PM";
hh-=12;
}else{
document.getElementById("idXM").innerHTML="AM";
}
if(hh<10) hh="0"+hh;
if(nn<10) nn="0"+nn;
if(ss<10) ss="0"+ss;
document.getElementById("idHH").innerHTML=hh;
document.getElementById("idNN").innerHTML=nn;
document.getElementById("idSS").innerHTML=ss;
setTimeout("setTime(baseUrl,kakuchoshi,yesday)",1000);
}
//-->