- 積分
- 5635
- 威望
- 5635
- 金錢
- 4993
- 最後登錄
- 2020-5-17
|
你自己肯定没有测试过- -- <script language="Javascript">
- <!--
- window.onUnload="bye()"
- pageOpen = new Date();
- function bye() {
- pageClose = new Date();
- minutes = (pageClose.getMinutes() - pageOpen.getMinutes());
- seconds = (pageClose.getSeconds() - pageOpen.getSeconds());
- time = (seconds + (minutes * 60));
- if (time == 1) {
- time = (time + " 秒");
- }
- else {
- time = (time + " 秒");
- }
- alert('您在本頁停留了' + time + '...歡迎再來!');
- }
- -->
- </script>
複製代碼 至少应该是这样的 |
|