高考倒计时
<div class="collegeEntrance"><script language="JavaScript"><!-- Beginvar timedate= new Date("June 07,2016");//高考日期var times="高考";var now = new Date();var date = timedate.getTime() - now.getTime();var time = Math.floor(date / (1000 * 60 * 60 * 24));if (time >= 0) ;document.write("距離2016年"+times+"還有: <b>"+time +"</b> 天");// End --></script></div>
轉載于:https://www.cnblogs.com/superMay/p/4958081.html
總結