日期:2014-05-17 浏览次数:20550 次
<script language="JavaScript"> function ShowTimes(){ var AfterTime= new Date("10-30-2012"); //这里是时间以后还可以用作其他节日 LeaveTime = AfterTime - new Date(); LeaveDays=Math.floor(LeaveTime/(1000*60*60*24)); LeaveHours=Math.floor(LeaveTime/(1000*60*60)%24); LeaveMinutes=Math.floor(LeaveTime/(1000*60)%60); LeaveSeconds=Math.floor(LeaveTime/1000%60); var c=new Date(); var q=c.getMilliseconds(); var ne = document.getElementById("dh"); ne.innerHTML="距<font color=red>上市会</font>还有<font color=red>"+LeaveDays+"</font>天 <font color=red>"+LeaveHours+"</font>时 <font color=red>"+LeaveMinutes+"</font>分 <font color=red>"+LeaveSeconds+"</font>秒 <font color=red>"+q+"</font>"; } setInterval(ShowTimes,10); </script><span id="dh" style="padding-left:220px; margin:5px;color:#000000; font-size:18px;" ></span>