节日倒计时

来源:互联网 发布:mac怎么查看运行程序 编辑:程序博客网 时间:2024/04/30 21:19
节日倒计时
<Script Language="JavaScript">
   var timedate= new Date("October 1,2002");
   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( "现在离"+times+"还有: "+time +"天")
</Script>  
原创粉丝点击