倒计时页面跳转、jsp 中如何使页面停留几秒后再转向其他页面
来源:互联网 发布:icepak软件下载 编辑:程序博客网 时间:2024/06/05 17:22
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>请勿重复提交您的信息!谢谢!</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<script type="text/javascript">
var time = 4;
function returnUrlByTime() {
window.setTimeout('returnUrlByTime()', 1000);
time = time - 1;
document.getElementById("layer").innerHTML = time;
}
</script>
</head>
<body onload="returnUrlByTime()">
<h3>请勿重复提交您的信息!谢谢!</h3>
<b><span id="layer">3</span>秒后,转入输入界面。</b>
<%
//转向语句
response.setHeader("Refresh", "3;URL=for_input.jsp");
%>
</body>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>请勿重复提交您的信息!谢谢!</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<script type="text/javascript">
var time = 4;
function returnUrlByTime() {
window.setTimeout('returnUrlByTime()', 1000);
time = time - 1;
document.getElementById("layer").innerHTML = time;
}
</script>
</head>
<body onload="returnUrlByTime()">
<h3>请勿重复提交您的信息!谢谢!</h3>
<b><span id="layer">3</span>秒后,转入输入界面。</b>
<%
//转向语句
response.setHeader("Refresh", "3;URL=for_input.jsp");
%>
</body>
</html>
==========第二例子===========
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>请勿重复提交您的信息!谢谢!</title>
</head>
<script type="text/javascript">
function countDown(secs) {
document.getElementById("jump").innerHTML = secs;
if (--secs > 0){
setTimeout("countDown(" + secs + " )", 1000);
}else{
<%-- 填写跳转地址--%>
location.href="index.jsp";
}
}
</script>
<body style="overflow: auto;" onload="javascript:countDown(5);">
<div align="center">......页面将在<span id="jump"></span>秒后自动跳转......
</div>
</body>
</html>
0 0
- 倒计时页面跳转、jsp 中如何使页面停留几秒后再转向其他页面
- 倒计时页面跳转、jsp 中如何使页面停留几秒后再转向其他页面
- jsp页面转向(跳转)
- jsp倒计时 页面跳转
- jsp网页倒计时跳转页面
- jsp倒计时页面自动跳转
- jsp页面倒计时自动跳转
- jsp页面停留几秒钟跳转
- jsp中页面跳转
- JSP 页面转向 页面转发
- Jsp和js倒计时跳转页面
- jsp页面实现倒计时自动跳转
- jsp实现页面倒计时跳转到指定页面
- jsp中通过按钮跳转到其他页面
- 页面停留后自动跳转
- 倒计时跳转页面
- 倒计时页面跳转
- 页面跳转倒计时
- Jquery AutoComplete的使用方法实例
- js 获取路径中参数值
- Java锁的种类以及辨析(三):阻塞锁
- poj 2418 Hardwood Species 字典树
- 【Android学习之道】 四大组件之广播接收器Broadcast Receiver
- 倒计时页面跳转、jsp 中如何使页面停留几秒后再转向其他页面
- spark 点滴:多路输出,自定义分区
- 双网卡不能同时上网
- Java锁的种类以及辨析(四):可重入锁
- PHP http_build_query()函数
- MySql自定义函数
- IOS中,两个APP之间的跳转!
- poj 1087 A Plug for UNIX 网络流
- 30个最常用CSS选择器解析