<!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><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<h3>本页面将在<em id="timeout">10</em>秒钟后自动转百度,请稍后...</h3>
<script type="text/javascript">
(function(){
var timeout = 0;
var handler = function(i){
document.getElementById("timeout").innerHTML = (10 - i);
if(i < 10)
{
var method = arguments.callee;
setTimeout(function(){method(i + 1);}, 1000);
}
else
{
document.location="http://www.baidu.com";
}
};
handler(0);
})();
</script>
</div></body></html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<h3>本页面将在<em id="timeout">10</em>秒钟后自动转百度,请稍后...</h3>
<script type="text/javascript">
(function(){
var timeout = 0;
var handler = function(i){
document.getElementById("timeout").innerHTML = (10 - i);
if(i < 10)
{
var method = arguments.callee;
setTimeout(function(){method(i + 1);}, 1000);
}
else
{
document.location="http://www.baidu.com";
}
};
handler(0);
})();
</script>
</div></body></html>