在footer.php中插入以下代码即可

<span id="span"></span>
	<script type="text/javascript">
		function runtime(){
		// DD/MM/YYYY hh:mm:ss
		X = new Date("02/18/2020 15:12:00"); Y = new Date(); T = (Y.getTime()-X.getTime()); M = 24*60*60*1000;
		a = T/M; A = Math.floor(a); b = (a-A)*24; B = Math.floor(b); c = (b-B)*60; C = Math.floor((b-B)*60); D = Math.floor((c-C)*60);
		span.innerHTML = "  |  已在风雨中度过: "+A+"天"+B+"小时"+C+"分"+D+"秒"
		}
		setInterval(runtime, 1000);
	</script>


风吟如语 樱辉坂道