方式一:
<html>
<h1>8秒后跳转到门户网......</h1>
<SCRIPT type="text/javascript">
var secNum = 8;
function timingRedirect() {
secNum = secNum - 1;
if (secNum > 0) {
setTimeout("timingRedirect();", 1000);
} else {
window.location.href = "http://gzw.jiangxi.gov.cn/";
}
}
setTimeout("timingRedirect();", 1000);
</SCRIPT></html>
方式二:
<head>
<meta http-equiv="refresh" content="20;url=http://gzw.jiangxi.gov.cn/">
</head>
其中20是指隔20秒后自动跳转到http://gzw.jiangxi.gov.cn/
转载于:https://blog.51cto.com/sky9896/2362237