81,091
社区成员
发帖
与我相关
我的任务
分享
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'Extractpage.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">
<style type="text/css">
.white_content {
display: block;
position: absolute;
top: 25%;
left: 35%;
width: 25%;
height: 8%;
padding: 1px;
border: 1px solid #51b2f6;
background-color: white;
z-index:1002;
overflow: auto;
}
</style>
</head>
<%
String type=(String)request.getAttribute("type");
%>
<script>
var type='<%=type%>';
function extract()
{
if(type=="yuqing")
{
document.myform.action="../ExtractYuqing.jsp";
document.myform.submit();
}else if(type=="taskevent")
{
document.myform.action="../SearchAllEvent?method=sourceShow";
document.myform.submit();
}
}
extract();
</script>
<body>
<form action="" id="myform" name="myform" method="post">
<div id="light" class="white_content" align="center">
<img src='img/loading.gif' width='160' height='20' />
<br>
正在处理中,请稍候...
</div>
</form>
</body>
</html>
<script>
var type='<%=type%>';
function extract()
{
if(type=="yuqing")
{
document.myform.action="../ExtractYuqing.jsp";
document.myform.submit();
}else if(type=="taskevent")
{
document.myform.action="../SearchAllEvent?method=sourceShow";
document.myform.submit();
}
}
var Int;
Int = setInterval("extract()", 5000);
//其中5000为时间,1秒=1000.
</script>
function wait(){
setTimeout(extract(),5000);
}
var type='<%=type%>';
function extract()
{
if(type=="yuqing")
{
document.myform.action="../ExtractYuqing.jsp";
document.myform.submit();
}else if(type=="taskevent")
{
document.myform.action="../SearchAllEvent?method=sourceShow";
document.myform.submit();
}
}
// extract();
...
<body onload="wait();">
...