Posted in Javascript onAugust 05, 2013
<script type="text/javascript"> var second = 0; var minute = 0; var hour = 0; window.setInterval("OnlineStayTime();", 1000); function OnlineStayTime() { second++; if (second == 60) { second = 0; minute++; } if (minute == 60) { minute = 0; hour++; } window.status = "停留时间" + hour + ":" + minute + ":" + second; } </script>
javascript显示用户停留时间的简单实例
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@