您现在的位置:首页 >> 前端 >> 内容

html注册失败跳转页面

时间:2017/6/17 9:20:00 点击:

  核心提示:?xml version=1.0 encoding=GB18030 ?!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Frameset//EN https://w...
<?xml version="1.0" encoding="GB18030" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="https://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB18030" />
<title>注册失败</title>
<script language='javascript' type='text/javascript'>    
var secs =10; //倒计时的秒数    
var URL ;    
function Load(url){    
URL =url;    
for(var i=secs;i>=0;i--){    
window.setTimeout('doUpdate(' + i + ')', (secs-i) * 1000);    
}    
}    
function doUpdate(num){    
//document.getElementById('ShowDiv').innerHTML = '将在'+num+'秒后自动跳转到注册页面' ;  
document.getElementById('ShowDiv').innerHTML =num;
if(num == 0) { 
window.location=URL; 
}    
}    
</script> 
</head>
<body >
    对不起,注册失败
    将在<span id="ShowDiv" style="color: red;">5</span>秒后自动跳转到注册页面    
<script language="javascript" type='text/javascript'>    
    Load("registe.html"); //要跳转到的页面    
</script>
</body>
</html>

 

Tags:HT TM ML L注 
作者:网络 来源:li10605157
  • 上一篇:html学习
  • 下一篇:RNCSS样式