日期:2014-05-16 浏览次数:20425 次
<script language="javascript">
var myTime = setTimeout("Timeout()", 60000);
function resetTime() {
clearTimeout(myTime);
myTime = setTimeout('Timeout()', 60000);
}
function Timeout() {
alert("您的登录已超时, 请点确定后重新登录!");
document.location.href='login.jsp';
}
document.documentElement.onkeydown=resetTime;
document.doocumentElement.onclick=resetTime;
</script>
?