58、最简单倒计时

58、最简单倒计时

脚本说明:

把如下代码加入<body>区域中

<Script Language="JavaScript">

<!-- Begin

  var timedate= new Date("October 1,2006");

  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("现在离2006"+times+"还有: <font color=red><b>"+time +"</b></font>");

// End -->

</Script>

 

Write a comment

Comments: 0