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博客