嘿嘿,这是csdn的源码。错误的跳转~~~
<%@ Page Language="C#" EnableViewState="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script type="text/javascript">
<!--
var duration=2900;
var endTime = new Date().getTime() + duration + 100;
function interval()
{
var n=(endTime-new Date().getTime())/1000;
if(n<0) return;
document.getElementById("timeout").innerHTML = n.toFixed(6);
setTimeout(interval, 10);
}
window.οnlοad=function()
{
setTimeout("window.location.href='http://community.csdn.net/default.aspx'", duration);
interval();
}
//-->
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>发生错误</title>
</head>
<body>
<form id="form1" runat="server">
<div>
对不起!你所访问的页面出错!<br />
系统在 <span id="timeout">3.000</span> 秒后 将自动跳转到 <a href="http://community.csdn.net/default.aspx">社区首页</a>
</div>
</form>
</body>
</html>