<SCRIPT language=javascript>
<!--
BirthDay1=new Date("11/26/2007 02:40:00");//改成你的计时日期
today1=new Date();
function THINPIGServerTime1(){
today1.setTime(today1.getTime()+250);
timeold1=(today1.getTime()-BirthDay1.getTime());
sectimeold1=timeold1/1000
secondsold1=Math.floor(sectimeold1);
msPerDay1=24*60*60*1000
e_daysold1=timeold1/msPerDay1
daysold1=Math.floor(e_daysold1);
e_hrsold1=(e_daysold1-daysold1)*24;
hrsold1=Math.floor(e_hrsold1);
e_minsold1=(e_hrsold1-hrsold1)*60;
minsold1=Math.floor((e_hrsold1-hrsold1)*60);
seconds1=Math.floor((e_minsold1-minsold1)*60);
document.getElementById("djclock").innerHTML ='<span style="color:#ff5400">'+daysold1+"</span>天<span style="color:#ff5400">"+hrsold1+"</span>小时<span style="color:#ff5400">"+minsold1+"</span>分<span style="color:#ff5400">"+seconds1+"</span>秒";
}
setInterval("THINPIGServerTime1()",250);
//-->
</SCRIPT>
声明:有的资源均来自网络转载,版权归原作者所有,如有侵犯到您的权益 请联系邮箱:123456@qq.com 我们将配合处理!
原文地址:帝国仿站距离多少天js代码发布于2023-04-02 20:39:17