<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'message.jsp' starting page</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 alltime = 5;
function setTime() {
if (alltime <= 0) {
clearInterval(s);
window.parent.location.href = "<s:url action="backaccountnolimit"/>?id=${itemId}";
} else {
alltime--;
document.getElementById("time").innerHTML = "剩余" + alltime + "秒";
document.getElementById("time1").innerText = "剩余" + alltime + "秒";
}
}
s = setInterval("setTime()", 1000);
</script>
</head>
<body>
<h1><font color="red">${msg }</font></h1>
<div id="time"></div>
将自动跳转到上级页面……
<br>
<div id="time1"></div>
<br>
<a href="<s:url action="backaccountnolimit"/>?id=${itemId}">返回上级页面</a>
</body>
</html>
页面按时自动跳转
最新推荐文章于 2024-08-08 10:33:11 发布