<script>
var birthDay = new Date("03/17/2016"); // 这里填写网站第一次运行日期
var now = new Date();
var duration = now.getTime() - birthDay.getTime();
var total= Math.floor(duration / (1000 * 60 * 60 * 24));
document.getElementById("showDays").innerHTML = "本站已运行"+total+"天"; //这里就是总运行天数
</script>