日期:2014-05-16 浏览次数:20320 次
<!-- 实现登录用户时间计时 --> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>A</title> <meta name="generator" content="Studio 3 http://aptana.com/"> <meta name="author" content="Administrator"> <!-- Date: 2011-08-07 --> <script type="text/javascript" language="JavaScript"> var WastedTime = { start:new Date(), displayElapsedTime:function() { var now = new Date(); var elapsed = Math.round((now - WastedTime.start)/6000); window.defaultStatus = "You have wasted " + elapsed + " minutes."; } } setInterval(WastedTime.displayElapsedTime,6000); </script> </head> <body> <button onclick="Copen()">调用A页面函数</button> </body> </html>
? 不支持火狐浏览器
?