![]() |
|
||||||||||||||
| | 网站首页 | 数据库教程 | web编程 | 服务器 | 程序设计 | | ||
|
||
|
|||||
| 在指定的时间后跳转到指定的页面 | |||||
作者:佚名 文章来源:不详 点击数: 更新时间:2007-9-2 ![]() |
|||||
|
正在装载数据…… 在示例中,我设置了5秒后将跳转到另一个页面,然后过2秒再跳转回来 <%@ page contentType="text/html;charset=gb2312" %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <meta HTTP-EQUIV=REFRESH CONTENT='5; URL=error.jsp'> <title>在5秒后返回指定的页面</title> </head> <body topmargin=0> <TABLE width=600 border="0" align=center cellpadding=4 cellspacing=1 class="tableBorder"> <TR> <Th height="25" align=center><B>这是一个测试</B></Th> </TR> <TR><TD align=center><BR> 本页面将在<b><span id=yu>5</span></b>秒后自动返回用户管理页面,您可以选择以下操作:<BR> <BR> <li><a href="index.jsp">返回本页</a></li><br><br> <li><a href='error.jsp'>其它操作</a></li> </TD></TR> </TABLE>![]() <script> function countDown(secs)![]() ...{ yu.innerText=secs;if(--secs>0)setTimeout("countDown("+secs+")",1000); } countDown(5); </script> </body> </html>![]()
<%@ page contentType="text/html;charset=gb2312" %>![]() <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <meta HTTP-EQUIV=REFRESH CONTENT='2; URL=index.jsp'> <title>在5秒后返回指定的页面</title> </head> <body topmargin=0> <br/> <p align="center">这是一个跳转后的页面</p> </body> </html>![]() 本文来源:http://blog.csdn.net/linyiteng1220/archive/2007/07/13/1688213.aspx
|
|||||
| 文章录入:admin 责任编辑:admin | |||||
| 【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 | |||||
| 网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!) |
| | 设为首页 | 加入收藏 | 联系站长 | 友情链接 | 版权申明 | 网站公告 | 网站地图 | 管理登录 | | |||
|