自己随便整的一点代码,有兴趣看看!

1 顺计时(代码如下)!(效果见IT-Server博客顶部)
-------------------------------------------------------------

<FONT color=red>It-Server成长第</FONT><FONT color=red>
<SCRIPT language=JavaScript>
var urodz= new Date("9/7/2006");
var now = new Date();
var ile = now.getTime() - urodz.getTime();
var dni = Math.floor(ile / (1000 * 60 * 60 * 24));
document.write(+dni)
</SCRIPT>
</FONT><FONT color=red>天 </FONT>
------------------------------------------------------
说明:It-Server 成立于2006年9月7日

把上面的new Date("9/7/2006")改为自己的时间,格式是月、日、年

如果想倒计时,请把var ile = now.getTime() - urodz.getTime();中的两个变量改一下位置就可以了。




2 当前时间显示 秒钟即时走动(代码如下) (效果见IT-Server博客顶部)
---------------------------------------------------------------------------------------------
<font color=red >当前时间是2006年<span >IT-Server博客

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-20
  • 2021-06-02
  • 2021-06-07
  • 2021-07-23
猜你喜欢
  • 2022-02-23
  • 2021-11-03
  • 2022-02-10
  • 2022-01-18
  • 2022-02-06
  • 2022-02-09
  • 2021-12-24
相关资源
相似解决方案