底部日期、统计天数JavaScript
2017-08-02 12:16:04 -0400
var wb=document.getElementById("whole_body");
wb.innerHTML=wb.innerHTML.replace(/\<span\sid\=\"ln\-h\"\>.+\n.+/,"");
document.write("<br>"); var d= new Date();document.write(d.getFullYear()+'年'+(d.getMonth()+1)+'月'+d.getDate()+'日');document.write(' 周'+'日一二三四五六'.charAt(new Date().getDay()));function time_get(){now = new Date();h="0"+now.getHours();m="0"+now.getMinutes();if(h>9){h=now.getHours()}if(m>9){m=now.getMinutes()}document.write(" "+h+":"+m+"");}time_get();
document.write("<br>");
document.write('<b>本站已稳定运行</b><font color=yellow>');
var urodz= new Date("07/22/2010");
var now = new Date();
var ile = now.getTime() - urodz.getTime();
var dni = Math.floor(ile / (1000 * 60 * 60 * 24));
document.write(dni);
document.write('</font>天');
var str=document.getElementById("whole_body").innerHTML;
var x=str.replace(/English/g,"En");
document.getElementById("whole_body").innerHTML=x;
你不知道的事!
Copyright 2017-2018 挨踢技术宅 pan.itamle.cc/ 版权所有
Subscribe |
Register |
Login
| N