<body style="overflow: auto;" οnlοad="javascript:countDown(3);"> <!--在body中命名一个onload函数,在下边的function中进行方法体操作 -->
<script type="text/javascript">
function countDown(seconds) {
document.getElementById("jump").innerHTML = seconds;//获取id为jump标签的内容
if (--seconds > 0){//定义计时器,进行及时操作
setTimeout("countDown(" + seconds + " )", 1000);
}else{
}
</script>
<div style="margin-top: 200px;margin-left: 300px">
<table>
<tr>
<td>
<img alt="" src="<%=request.getContextPath()%>/images/crying_false.png">
</td>
<td id="text" style="font-size: 40pt;color: #444444;font-family: 楷体;font-weight: bold;">
找不到您要导出的数据...
</td>
</tr>
<tr style="margin-top: 200px">
<td width="120px"></td>
<td style="font-family: 楷体;font-size: 20pt;font-weight: bold;color: #444444">
页面将在<span id="jump" style="color:#EA2000"></span>秒后自动跳转......
</td>
</tr>
</table>
</div>
</body>
<script type="text/javascript">
function countDown(seconds) {
document.getElementById("jump").innerHTML = seconds;//获取id为jump标签的内容
if (--seconds > 0){//定义计时器,进行及时操作
setTimeout("countDown(" + seconds + " )", 1000);
}else{
location.href="../accountant-server-salary";//所使用的框架为ssm,href后跟上所要访问的地址或者方法地址
}}
</script>
<div style="margin-top: 200px;margin-left: 300px">
<table>
<tr>
<td>
<img alt="" src="<%=request.getContextPath()%>/images/crying_false.png">
</td>
<td id="text" style="font-size: 40pt;color: #444444;font-family: 楷体;font-weight: bold;">
找不到您要导出的数据...
</td>
</tr>
<tr style="margin-top: 200px">
<td width="120px"></td>
<td style="font-family: 楷体;font-size: 20pt;font-weight: bold;color: #444444">
页面将在<span id="jump" style="color:#EA2000"></span>秒后自动跳转......
</td>
</tr>
</table>
</div>
</body>