网页上JS显示建站日期

1
2
3
4
5
6
7
8
9
<b><font color="blue">本站已运行<font color="red">
<script language=JavaScript>
var urodz= new Date("02/01/2008");
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></b>