日期:2014-05-16 浏览次数:20444 次
<meta http-equiv="Refresh" content="5; url=http://your Url" />
<!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>Debug: Times Table 2</title>
</head>
<body>
<script type="text/javascript">
function delayURL(url) {
var delay = document.getElementById("time").innerHTML;
if (delay > 0) {
delay--;
document.getElementById("time").innerHTML = delay
} else {
window.top.location.href = url
}
setTimeout("delayURL('" + url + "')", 1000)
}
</script>
<span id="time" style="background: red;font-size:18px;">8</span>
秒钟之后自动跳转,如果不跳转,请点击下面链接
<a href="目标页面.jsp">主题列表</a>
<script type="text/javascript">
delayURL("http://www.baidu.com");
</script>
</body>
</html>
<script>
setTimeout(function(){window.location="a.html";},5000);
</script>