ZhipSoft.com
    冬去春来
        郑重声明:本Blog纯属个人学习、工作需要,记录相关资料。请不要发表任何有人身攻击的言论,谢谢!!www.ZhipSoft.com
posts - 94,comments - 149,trackbacks - 0

=============test.jsp============
<body onbeforeunload="top.frames['topFrame'].runningopen();" onload="top.frames['topFrame'].runningclose();">
==============end================


=============top.jsp=============
<script type="text/JavaScript" language="JavaScript" >
var runningwin=null;
function runningopen()
{
 if((runningwin==null)||(runningwin.closed))
 {
<%--  runningwin=window.open('/trafficmis/IsRunning.jsp',"newwindow","height=120,width=280,toolbar:no,status=no,scrollbars=no,top="+(screen.availHeight-120)/2+",left="+(screen.availWidth-280)/2+",resizable=no,menubar=no,location=no,");--%>
  runningwin=window.showModelessDialog('/trafficmis/IsRunning.jsp',30,"dialogHeight=130px;dialogWidth=320px;status=no;scrollbars=no;center=yes;resizable=no;help=no;");
 }
 else
 {
  runningwin.focus();
 }
}
function runningclose()
{
 if((runningwin!=null)&&(!(runningwin.closed)))
 { 
  runningwin.close();
 }
}
function waiting()

 window.showModalDialog('/trafficmis/IsRunning.jsp',3,"dialogHeight=130px;dialogWidth=320px;status=no;scrollbars=no;center=yes;resizable=no;help=no;");
}
</script>
=============end===================


=========IsRunning.jsp=============
<%@ page language="java" contentType="text/html; charset=utf-8"  pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base target="_self">   
    <title>请稍候,正在处理...            </title>
    <script language="JavaScript">
 var TimeStart=window.dialogArguments;
 function CloseTimer(){
  if(TimeStart<=0)
   window.close();
  if(TimeStart>=1)
   TimeStart--;
  var timer=setTimeout("CloseTimer()",1000); 
 }
  </script>
<style type="text/css">
<!--
body {
 background-color: #EFF3F7;
}
.STYLE1 {
 font-size: 16px;
 color: #3D89A1;
 font-weight: bold;
}
-->
  </style>
  </head>
 
  <body onload="CloseTimer()">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr height="10"><td></td></tr>
  <tr>
    <td height="30" align="center" valign="middle" class="STYLE1">正在处理...</td>
  </tr>
  <tr>
    <td align="center" valign="middle"><marquee direction="right" style="WIDTH: 195px; HEIGHT: 12px">
<img src="img/loading.jpg" width="195" height="12">
  </marquee></td>
  </tr>
</table>
  </body>
</html>
=============end===================



        本Blog纯属个人学习、工作需要,记录相关资料。请不要发表任何有人身攻击的言论,谢谢! www.zhipsoft.cn
posted on 2007-05-11 13:23 ZhipSoft 阅读(345) 评论(0)  编辑  收藏 所属分类: JavaScript

只有注册用户登录后才能发表评论。


网站导航: