<html>
<head>
</head>
<script language="javascript">
var time;
var cTime;
var a;
window.onload = init;
function init()
{
var s = new Date();
time = s.getSeconds();
a = window.setInterval('v()',1000);
}
function v()
{
var s = new Date();
cTime = s.getSeconds();
if(cTime < time)cTime = cTime + 60;
if(cTime - time >= 10)
{
window.clearInterval(a);
location.href("http://www.sohu.com");
}
document.all.t2.value = cTime;
}
function set()
{
var s = new Date();
time = s.getSeconds();
document.all.t1.value = time;
}
</script>
<body onmousemove="set();" onkeyup="set();">
<input type="text" id="t1"><input type="text" id="t2">
</body>
</html>