页面跳转显示倒计时

<%@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">  版本已升级... ...</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>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值