<html>
<head>
<meta charset="UTF-8">
</head>
<body οnlοad="run()">
请等待<span id="time">15</span>秒
</body>
<script type="text/javascript">
var s = document.getElementById("time");
if (s.innerHTML == 0) {
clearInterval(intNum);
alert("不好意思时间到!");
window.location.href='regform.shtml';
return false;
}
else
{
s.innerHTML = s.innerHTML*1 -1;
}
}
</script>
</html>
<head>
<meta charset="UTF-8">
</head>
<body οnlοad="run()">
请等待<span id="time">15</span>秒
</body>
<script type="text/javascript">
var s = document.getElementById("time");
var intNum = setInterval("run()",1000);
if (s.innerHTML == 0) {
clearInterval(intNum);
alert("不好意思时间到!");
window.location.href='regform.shtml';
return false;
}
else
{
s.innerHTML = s.innerHTML*1 -1;
}
}
</script>
</html>