<!DOCTYPE>
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>跳转页面</title>
<mce:script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" mce_src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js">
</mce:script>
<mce:script language="javascript">
$(document).ready(function() {
function jump(count) {
window.setTimeout(function(){
count--;
if(count > 0) {
$('#num').attr('innerHTML', count);
jump(count);
} else {
location.href="login.jsp";
}
}, 1000);
}
jump(3);
});
</mce:script>
</head>
<body>
<span style="color:red" mce_style="color:red">欢迎来到我的个人博客!</span><br/>页面将在3秒后跳转...<br/>还剩<span id="num">3</span>秒
</body>
</html>
转载于:https://my.oschina.net/hcfblog/blog/891843