china0396 发表于 2025-11-26 09:33:56

节日倒计时

节日倒计时
<Script Language="JavaScript">
   var timedate= new Date("October 1,2026");
   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>

页: [1]
查看完整版本: 节日倒计时