<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> 错误展示页面 </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="icon" type="image/x-icon" href="http://www.pr5s.com//images/system/favicon.ico" />
<meta name="错误" content="用户操作出现错误" />
<meta name="Error" content="Error Go Go Go !" />
<meta http-equiv="Content-Language" content="zh-CN" /> <script type="text/javascript">
<!--
var second=10 ; window.onload=function()
{
document.getElementById('timeout').innerText = second;
window.setInterval("document.getElementById('timeout').innerText=parseInt(document.getElementById('timeout').innerText)-1;",1000);
window.setTimeout("window.location.href= 'default.aspx'",second*1000);
}
//-->
</script>
</head>
<body>
<form action="default.aspx" id="go">
<div>
</div>
<div>
对不起!你所访问的页面出错! <br/>
系统在<span id="timeout"> </span> 秒后 将自动跳转到新闻区首页
</div>
</form>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> 错误展示页面 </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="icon" type="image/x-icon" href="http://www.pr5s.com//images/system/favicon.ico" />
<meta name="错误" content="用户操作出现错误" />
<meta name="Error" content="Error Go Go Go !" />
<meta http-equiv="Content-Language" content="zh-CN" /> <script type="text/javascript">
<!--
var second=10 ; window.onload=function()
{
document.getElementById('timeout').innerText = second;
window.setInterval("document.getElementById('timeout').innerText=parseInt(document.getElementById('timeout').innerText)-1;",1000);
window.setTimeout("window.location.href= 'default.aspx'",second*1000);
}
//-->
</script>
</head>
<body>
<form action="default.aspx" id="go">
<div>
</div>
<div>
对不起!你所访问的页面出错! <br/>
系统在<span id="timeout"> </span> 秒后 将自动跳转到新闻区首页
</div>
</form>
</body>
</html>
interval();
window.location.href= "default.aspx "; interval函数 循环一次后就执行 下面的 window.location.href= "default.aspx "; 了