论坛首页 入门技术论坛

页面跳转显示倒计时

浏览 2476 次
该帖已经被评为新手帖
作者 正文
   发表时间:2008-09-04  
<%@page language="java" contentType="text/html; charset=GB2312"
pageEncoding="GB2312"%>
<%@ page import="com.eline.epicc.utils.*" %>
<%
String insurancePId = request.getParameter("insurancePId");
int printType = Integer.parseInt(request.getParameter("printType"));//int type=0;
if(printType==1){
String lptype = request.getParameter("type");
lptype  = new String(lptype.getBytes("ISO-8859-1"),"GB2312");
if(lptype.equalsIgnoreCase("标的")){
type=1;
}else{
type=2;
}
}else{
type = Integer.parseInt(request.getParameter("type"));
}
String tmpStr;
if(printType==1){
tmpStr="/search/pagesPrint.jsp?insurancePId="+insurancePId+"&type="+type+"&printType="+printType+"&printID=1";
}else{
if(type==1){
   tmpStr="/printInput/printInput_Bill1.jsp?pId="+insurancePId+"&type="+type+"&printType="+printType+"&printID=1";
}else{
   tmpStr="/printInput/printInput_Bill2.jsp?pId="+insurancePId+"&type="+type+"&printType="+printType+"&printID=1";
}
}
%>
<script type="text/javascript">
  var abc=5;
  function mskip(){
         var jump = document.getElementById("jump");
         jump.innerHTML=abc;
          if(abc-- > 0)
            setTimeout("mskip()",1000);
  }
   window.onload = function(){
mskip();
   }
</script>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
<meta http-equiv="Refresh" content="5 ; URL=${pageContext.request.contextPath}<%=tmpStr%>">
<link rel=stylesheet href="<%=request.getContextPath()%>/styles/default.css" type="text/css" />
<img height="5" src="${pageContext.request.contextPath}/images/blank.gif" /><br />
<TABLE height="120" cellSpacing="0" cellPadding="0" width="98%" border="0">
<TR>
<TD bgColor="#325380" height="7"><IMG src="${pageContext.request.contextPath}/skin/content-top-left_delt.gif"></TD>
<TD width="7" bgColor="#325380" height="7"><IMG src="${pageContext.request.contextPath}/skin/blank.gif"></TD>
</TR>
<TR>
<TD style="BORDER-LEFT: #325380 1px solid; BORDER-BOTTOM: #325380 1px solid; PADDING: 2px;">
<table  width="100%" border="0" bgcolor="#ffffff" align="center" >
      <tr>
    <td height=20 align="center"><font size="2.5">&nbsp;&nbsp;版本已升级... ...</font></td>
  </tr>
  <tr>
    <td  height=25  align="center"><font size="2.5">提示:版本由每页8码升级到每页40码!</font></td>
      </tr>
      <tr>
    <td  height=25  align="center"><font size="2.5" color="red">系统将 <span id="jump">5</span> 秒钟后自动跳转</font></td>
      </tr>
  <tr>
   <td align="center" height=20>
  <input type="button" class="clsBtn4w"  name="btn" value="确定" onClick="javaScript:window.location.href='${pageContext.request.contextPath}<%=tmpStr%>';"/>
</td>
</tr>
</table>
</TD>
<TD vAlign="bottom" width="7" bgColor="#325380"><IMG src="${pageContext.request.contextPath}/skin/content-right-bottom_delt.gif"></TD>
</TR>
</TABLE>
论坛首页 入门技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics