| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- <%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>加载提示</title>
- <style>
- body{
- background: #c2e2fb;
- font-weight: bold;
- font-family: 微软雅黑,宋体;
- line-height: 200%;
- }
- .main{
- width: 800px;
- height: 200px;
- position: absolute;
- top : 50%;
- left : 50%;
- margin-left: -400px;
- margin-top: -100px;
- text-align:center;
- }
- ol{
- margin: auto;
- width : 50%;
- padding-bottom: 9px;
- }
- .loading {
- color: red;
- }
- .loaded {
- color: green;
- }
- table {
- border-collapse: collapse;
- margin: auto;
- width : 50%;
- }
- td {
- empty-cells: show;
- width: 20px;
- height: 20px;
- border: 3px solid white;
- }
- td.loaded{
- background : green;
- }
- </style>
- </head>
- <body>
- <div class="main">
- <ol>
- <li id="banner" class="loading">正在加载用户与常用系统功能...</li>
- <li id="TreeMenu" class="loading">正在加载功能菜单和字典信息...</li>
- <li id="workspace" class="loading">正在加载公告与待办任务信息...</li>
- </ol>
- <img alt="" width="424" height="30" src="<%=request.getContextPath()%>/themes/default/images/wait.gif"/>
- </div>
- <script>
- var mLoadStatus = {
- "banner" : false,
- "TreeMenu" : false,
- "workspace" : false
- };
-
- function doOnload() {
- if ((mLoadStatus.banner || parent.mLoadStatus.banner)
- && (mLoadStatus.TreeMenu || parent.mLoadStatus.TreeMenu)
- && (mLoadStatus.workspace || parent.mLoadStatus.workspace)) {
- setTimeout(function(){
- self.parent.window.document.getElementsByTagName("frameset")["topFrame"].rows = self.parent.topFrameRows;
- }, 100);
- banner.className = "loaded";
- banner.innerText = "加载用户与常用系统功能完毕。";
- TreeMenu.className = "loaded";
- TreeMenu.innerText = "加载功能菜单和字典信息完毕。";
- workspace.className = "loaded";
- workspace.innerText = "加载公告与待办任务信息完毕。";
- }
- }
-
- bindListener(parent.frames["banner"],'load',function() {
- mLoadStatus.banner = true;
- banner.className = "loaded";
- banner.innerText = "加载用户与常用系统功能完毕。";
- doOnload();
- });
- bindListener(parent.frames["TreeMenu"],'load', function() {
- mLoadStatus.TreeMenu = true;
- TreeMenu.className = "loaded";
- TreeMenu.innerText = "加载功能菜单和字典信息完毕。";
- doOnload();
- });
- bindListener(parent.frames["workspace"],'load', function() {
- mLoadStatus.workspace = true;
- workspace.className = "loaded";
- workspace.innerText = "加载公告与待办任务信息完毕。";
- doOnload();
- });
-
- function bindListener(obj,eventName,fun) {
- if (obj.addEventListener) {
- obj.addEventListener(eventName,fun,false);
- } else if (obj.attachEvent) {
- obj.attachEvent('on'+eventName,fun);
- } else {
- obj['on'+eventName] = fun;
- }
- }
- </script>
- </body>
- </html>
|