<!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" />
<title>吴旭晓个人博客</title>
</head>
<body>
页面<span id="timeout">4.00</span>秒后自动跳转到网站首页
<script type="text/javascript">
<!--
var duration=3900;
var timer=null;
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(4);
setTimeout(interval, 10);
}
window.onload=function()
{
timer=setTimeout("window.location.href='http://blog.0579skys.com/'", duration);
interval();
}
//-->
</script>
</body>
</html>
···
···