time0=new Date().getTime(); nyear=2024; nmonth=11; nday=11; nwday=1; nhrs=01; nmin=04; nsec=17; function shape(x){ if(x<=9) return "0"+x; else return x; } function Draw(){ NewTick(); document.getElementById("hrs").innerHTML=shape(nhrs); document.getElementById("min").innerHTML=shape(nmin); document.getElementById("sec").innerHTML=shape(nsec); setTimeout("Draw()",1000); } nextday=false;lastime0=time0; //skipcount=0; function NewTick(){noww=new Date();time1=noww.getTime(); tnext=lastime0+200; if(time145000&lastime0!=time0){time1=tnext;} lastime0=time1; noww.setTime(time1+dectime); nhrs=noww.getHours();nmin=noww.getMinutes();nsec=noww.getSeconds(); } dectime=new Date(nyear,nmonth,nday,nhrs,nmin,nsec).getTime()-time0; nyear8dianqiansj=2024; nmonth8dianqiansj=11; nday8dianqiansj=10; nwday8dianqiansj=0; nhrs8dianqiansj=14; nmin8dianqiansj=04; nsec8dianqiansj=17; function Draw8dianqiansj(){ NewTick8dianqiansj(); document.getElementById("hrs8dianqiansj").innerHTML=shape(nhrs8dianqiansj); document.getElementById("min8dianqiansj").innerHTML=shape(nmin8dianqiansj); document.getElementById("sec8dianqiansj").innerHTML=shape(nsec8dianqiansj); setTimeout("Draw8dianqiansj()",1000); } function NewTick8dianqiansj(){noww=new Date();time18dianqiansj=noww.getTime(); lastime08dianqiansj=time18dianqiansj; noww.setTime(time18dianqiansj+dectime8dianqiansj); nhrs8dianqiansj=noww.getHours();nmin8dianqiansj=noww.getMinutes();nsec8dianqiansj=noww.getSeconds(); } dectime8dianqiansj=new Date(nyear8dianqiansj,nmonth8dianqiansj,nday8dianqiansj,nhrs8dianqiansj,nmin8dianqiansj,nsec8dianqiansj).getTime()-time0;