在适当的地方加入一下代码
本站已安全运行了:
<span class="smalltxt">
<script>
var BirthDay=new Date("octo 08,2015");//修改成你网站创建时间
today=new Date();
var today=new Date();
var timeold=(today.getTime()-BirthDay.getTime());
var sectimeold=timeold/1000;
var secondsold=Math.floor(sectimeold);
var msPerDay=246060*1000;
var e_daysold=timeold/msPerDay;
var daysold=Math.floor(e_daysold);
document.write(""+daysold+"天");
</script>
</span>
转自 刘明野 https://www.liumingye.cn/archives/60.html
February 26th, 2020 at 10:06 pm