展开全部
<script type="text/javascript">
var i = 10;
window.onload=function page_cg()
{
document.getElementById("time").innerText = i;
i--;
if(i==0)
{
window.open("index.aspx");
}
setTimeout("page_cg()",1000);
}
</script>
<body>
<form id="form1" runat="server">
<div id="err">
对不起,您未登陆!<br />
10秒后跳到登陆页面 <span id="time"></span>
<br />
点击<a href="index.aspx">这里</a>返回登陆
</div>
</form>
</body>
var i = 10;
window.onload=function page_cg()
{
document.getElementById("time").innerText = i;
i--;
if(i==0)
{
window.open("index.aspx");
}
setTimeout("page_cg()",1000);
}
</script>
<body>
<form id="form1" runat="server">
<div id="err">
对不起,您未登陆!<br />
10秒后跳到登陆页面 <span id="time"></span>
<br />
点击<a href="index.aspx">这里</a>返回登陆
</div>
</form>
</body>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询