这款时世界末日倒计时源代码,程序上有JS控制器,是用于网页中显示的倒计时器,自己可以设定世界末日的开始时间,网页倒计时世界末日源代码直接复制就可以用,无需下载,直接便可使用
离"世界末日"还有
<script> <BR>function downTime(){ <BR>var timeout = window.setTimeout(downTime, 100); <BR>var endTime=new Date("12-21-2012 0:0:0");//改成你的计时日期 <BR>var today=new Date(); <BR>var timeold=(endTime.getTime()-today.getTime()); <BR>if(timeold <= 100){ <BR>window.clearTimeout(timeout); <BR>document.getElementByIdx_x("container").innerHTML = "原来没事啊,虚惊一场!"; <BR>return; <BR>} <BR>var sectimeold=timeold/1000; <BR>var secondsold=Math.floor(sectimeold); <BR>var msPerDay=24*60*60*1000; <BR>var e_daysold=timeold/msPerDay; <BR>var daysold=Math.floor(e_daysold); <BR>var e_hrsold=(e_daysold-daysold)*24; <BR>var hrsold=Math.floor(e_hrsold); <BR>var e_minsold=(e_hrsold-hrsold)*60; <BR>var minsold=Math.floor((e_hrsold-hrsold)*60); <BR>var e_seconds=(e_minsold-minsold)*60; <BR>var seconds=Math.floor((e_minsold-minsold)*60); <BR>var decimals = Math.floor((e_seconds-seconds)*10); <BR>document.getElementByIdx_x("downtime").innerHTML=daysold+"天"+hrsold+"小时"+minsold+"分"+seconds+"."+decimals+"秒" ; <BR>} <BR>downTime(); <BR></script>