⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 msg.jsp

📁 在线教育平台: 从小学
💻 JSP
字号:
<%@ page language="java" contentType="text/html; charset=GB18030"
	pageEncoding="GB18030"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB18030">
<title>消息</title>
<link rel="stylesheet" type="text/css" href="images/style.css">
<style type="text/css">
<!--
.STYLE1 {color: #0066FF}
-->
</style>
</head>

<script>
<!--
t = 5; // 计数器
setInterval("testTime()",1000); // 启动1秒定时

function testTime() {
  if(t<0) return; // 计数器值小于0,表示尚未开始倒计时
  if(t == 0) // 计数器值为0,转向
  <%
  String url =(String) request.getAttribute("url");
  if (url!= null) {
		
 %>location = "<%=url%>";
 <%}else {%>
    location = "javascript:history.back();";
    <% } %>
  view.innerHTML = "<b>"+t+"</b>"; // 显示倒计时
  t--; // 计数器递减
}//-->
</script>
<body>
<P align="center"><FONT COLOR="#FF0000" SIZE=2><B>
<%
		if (request.getAttribute("msg") != null) {
		String str =(String) request.getAttribute("msg");
%> <%= str %> <% } else { %> (No error code) <% } %> </B></FONT></P>
<div align="center"><br />
<span class="STYLE1">本页将在<span id="view"></span>秒后自动关闭</span></div>
<B></B>
<p align=center>

  <a href="<%if(url!=null) {%><%=url %><%}else {%>javascript:history.back();<%} %>">如果您的浏览器没有自动跳转,请点击这里</a></p>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -