用JS掃描用戶的mouse和健盤,如果15分鍾不操作就退出
用JS掃描用戶的mouse和健盤,如果15分鍾不操作就退出
var timeid;
function keyDown(e)
{
window.clearTimeout(timeid);
timeid=setTimeout("parent.location.href('<!--SYSTEM_PATH-->/index.php')",3600000);
}
function mousemove(e)
{
window.clearTimeout(timeid);
timeid=setTimeout("parent.location.href('<!--SYSTEM_PATH-->/index.php')",3600000);
}
document.onkeydown = keyDown;
document.onmousemove=mousemove;
var timeid;
function keyDown(e)
{
window.clearTimeout(timeid);
timeid=setTimeout("parent.location.href('<!--SYSTEM_PATH-->/index.php')",3600000);
}
function mousemove(e)
{
window.clearTimeout(timeid);
timeid=setTimeout("parent.location.href('<!--SYSTEM_PATH-->/index.php')",3600000);
}
document.onkeydown = keyDown;
document.onmousemove=mousemove;