5、javascript倒计时跳转
<span id="info" style="color: green;"></span>
<script type="text/javascript">
var time = 3;
function redir() {
window.location = "loginByDB.jsp";
}
var i = 0;
function dis() {
document.all.info.innerHTML = "注册成功,跳转中" + (time - i) + "...";
i++;
}
timer = setInterval('dis()', 1000);//显示时间
timer = setTimeout('redir()', time * 1000); //跳转
</script>