Loading... 把下面代码直接放入sibedar.php下的130行左右 ``` <div id="tingliu"> <span class="tingliu2">您阅读这篇文章共花了:</span> <span class="tingliu3" id="stime"></span> </div> <script language="JavaScript">var ss = 0, mm = 0, hh = 0; function TimeGo() { ss++; if (ss >= 60) { mm += 1; ss = 0 } if (mm >= 60) { hh += 1; mm = 0 } ss_str = (ss < 10 ? "0" + ss : ss); mm_str = (mm < 10 ? "0" + mm : mm); tMsg = "" + hh + "小时" + mm_str + "分" + ss_str + "秒"; document.getElementById("stime").innerHTML = tMsg; setTimeout("TimeGo()", 1000) } TimeGo(); </script> ``` Last modification:September 2, 2023 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 如果觉得我的文章对你有用,请随意赞赏