bytingting
<scriptlanguage="JavaScript">
<;
if(hour>23)hour-=24,date+=1;
if(((month==4)||(month==6)||
(month==9)||(month==11))&&(date==31))date=1,month++;
if(((month==2)&&(date>28))&&(leap!=0))date=1,month++;
if((month==2)&&(date>29))date=1,month++;
if(hour<0)hour+=24,date--;
if((date==32)&&(month==12))month=m[1],date=1,year++;
if(date==32)date=1,month++;
if((date<1)&&(month==1))month=m[12],date=31,year--;
if(date<1)date=31,month--;
if(((month==4)||(month==6)||
(month==9)||(month==11))&&(date==31))date=30;
if((month==2)&&(date>28))date=29;
if(((month==2)&&(date>28))&&(leap!=0))date=28;
for(i=1;i<13;i++){
if(month==i){
month=m;break;
}
}
vardateTime=hour;
dateTime=((dateTime<10)?"0":"")+dateTime;
dateTime=""+dateTime;
dateTime+=((minute<10)?":0":":")+minute;
dateTime+=((second<10)?":0":":")+second;
dateTime+=(hour>=12)?"下午,":"上午,";
dateTime+=year+"年"+month+"月"+date+"日";
document.clock.zonetime.value=dateTime;
document.clock.zonename.value=timezone;
updatetime=setTimeout("checkDateTime()",900);
timerRunning=true;
}
//End-->
</script>
<bodyOnLoad="timeCheck(timezone,0)">
<FORMname=clock>
当前的时间<INPUTsize=28name=zonetime>
<BR><BR>当前的地区<INPUTsize=21name=zonename><BR><BR>
<divstyle="background-color:#FF0000;width:100px;height:100px;"onmouseover="timeCheck('太平洋',+480)"></div>
<divstyle="background-color:#FF00FF;width:100px;height:100px;"onmouseover="timeCheck('夏威夷',+600)"></div>
</FORM>
</body>