<script> <BR>var second = 0; <BR>var minute = 0; <BR>var hour = 0; <BR>window.setInterval("OnlineStayTime();", 1000); <BR>function OnlineStayTime() { <BR>second++; <BR>if (second == 60) { <BR>second = 0; <BR>minute++; <BR>} <BR>if (minute == 60) { <BR>minute = 0; <BR>hour++; <BR>} <BR>window.status = "停留时间" + hour + ":" + minute + ":" + second; <BR>} <BR></script>