另一种页面载入

翻译|其它|编辑:郝浩|2004-08-12 09:10:00.000|阅读 1789 次

概述:

# 界面/图表报表/文档/IDE等千款热门软控件火热销售中 >>


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style>
body {margin:0;border:0;padding:0;background-color:#006699;font-size:9pt;color:#4FBAF0}
A{color:61C7FA;}
A:hover{color:white;}
td {font-size:9pt}
.clWin {
BACKGROUND-COLOR:#4fbaf0;
top:12%;position:absolute;width:130;right:0;border:1px solid #4fbaf0
}
.clWindow {
BACKGROUND-COLOR: #3a6ea5; padding: 10; OVERFLOW: hidden; TOP: 14px; Z-INDEX: 15; layer-background-color: white;
}
.clWinHead {
BACKGROUND-COLOR: transparent; HEIGHT: 14px; TOP: 0px; 
color:#258;filter:dropshadow(offx=1,offy=1,color=#8FD6FA)
}
.clText {
BACKGROUND-COLOR: transparent; FONT-FAMILY: arial,helvetica; FONT-SIZE: 11px; LEFT: 2px; TOP: 2px; Z-INDEX: 50
}
.clWinResize {
BACKGROUND-IMAGE: url(/images/resize.gif); CLIP: rect(0px 13px 9px 0px); HEIGHT: 8px; WIDTH: 13px; Z-INDEX: 30; layer-background-image: url(/images/resize.gif)
}
.clLogo image
{
height:12;width:13
}
.sSymbo
{
font-family:wingdings;font-size:13px;color#258
}
</style>
<Script language=javascript>
var Handler=null,aryMsg,sHTML

var ary1=new Array("正在进行如下操作","载入基本信息:3","载入部门信息:3","载入代理信息:3","载入权限信息:3","执行权限检查:3")
var ary3=new Array("正在进行任务检查","任务分派:2","任务执行:2","任务挂起:2","服务单分派:2","外部培训:2","服务单审批:2")
var aryMsg=new Array(ary1,ary3)
//显示权限等信息的载入
function window.onload()
{
Handler=new StyleHandler(null,0,"StartAction1()")
Handler.Init()
}
//显示当前任务的载入信息
function StartAction1()
{
Handler.Halt("tmpCallback1()")
}
//显示当前任务
function StartAction2(tHTML)
{
Handler.Halt("tmpCallback2()")
sHTML="载入完毕!"
}
function tmpCallback1()
{
// alert()
Handler=new StyleHandler(null,1,"StartAction2()");
Handler.Init();
}
function tmpCallback2()
{
td_sync.all.tags("SPAN")[1].innerHTML="载入完毕"
clMsgWin.innerHTML="恭喜你中奖!"
}
/*
str="new Array("
for(var i=0;i<=10;i++)
{
str+="'&#"+(150-i)+";'"
if(i!=10) str+=","
else str+=")"
}
var aSymbo1=eval(str)
*/

</script>
<meta NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</head>
<body bgcolor="#006699" topmargin="0">
<form id="tq" method="post" action="http://p16/gnptms/Publish/PersonalInfo/list3.asp" style="display:none">
<input name="emp_no" type="hidden">
</form>

<div id=td_sync class=clwin>
<div class=clwinhead>
<span class=clLogo>
<IMG align=top alt='' border=0 height=14 src=images/win_logo.gif width=18>
</span><span class=xxx>请稍候...</span></div>
<div class=clwindow id=clMsgWin>
</div>

</div>
</body>
<script language=javascript id=scrStyleHandler>
//这是一个类,之后的函数都属于它的方法
function StyleHandler(HandlerName,index,_funCallBack)
{
var ary=aryMsg[index]
var str="<nobr>"+ary[0]+":</nobr><br>"
for(var i=1;i<ary.length;i++)
{
var aryx=ary[i].split(":")
str+="<nobr>&nbsp;&nbsp;<span class=sSymbo Delay="+aryx[1]+">&#118;</span>"+aryx[0]+"</nobr>"
if(i<ary.length-1)
str+="<br>"
}
clMsgWin.innerHTML=str
str="new Array("
for(var i=0;i<=4;i++)
{
str+="'&#"+(165-i)+";'"
if(i!=4) str+=","
else str+=")"
}
if(HandlerName==null) HandlerName="Handler"

this.tSpanAll=clMsgWin.all.tags("SPAN");
this.oTimer=null
this.aSymbo=eval(str);

this.iStartPos =null;
this.StartSpanIndex =null;
this.tSpan =null;
this.Delay =null;

this.CheckTime=_CheckDelayTime;
this.blink=_StartBlink;
this.Init=_InitBlinkInfo;
this.Halt=_HaltDelaying;
this.CallBack=_funCallBack;
this.HaltingAction=_HaltingAction;


this.Name=HandlerName
this.isHalting=false
}
function _InitBlinkInfo(index)
{
if(index==null) index=0
if(index<this.tSpanAll.length)
{
this.iStartPos=0;
this.StartSpanIndex=index;
this.tSpan=this.tSpanAll[this.StartSpanIndex]
this.tSpan.parentElement.style.color="#fc0"
this.Delay=(new Date()).getTime()+parseInt(this.tSpan.Delay)*1000; 
this.blink();
}
}
function _CheckDelayTime()
{
if(this.isHalting==true) return false
if(this.StartSpanIndex==this.tSpanAll.length-1) 
{
if(typeof(this.CallBack)=="string"&&(new Date()).getTime()>=this.Delay){
this.Halt();
return false;
}
return true

else if((new Date()).getTime()>=this.Delay) return false
else return true
}
function _StartBlink()
{
clearTimeout(this.oTimer)
this.tSpan.innerHTML=this.aSymbo[this.iStartPos]
++this.iStartPos;
if(this.iStartPos==this.aSymbo.length) this.iStartPos=0
if(this.CheckTime()==true)
oTimer=setTimeout(this.Name+'.blink()',200)
else
{
if(this.isHalting==true) return
this.tSpan.innerHTML='&#254;'
this.tSpan.parentElement.style.color=""
this.Init(++this.StartSpanIndex); 
}
}
function _HaltDelaying(funcCallback)
{
var i
clearTimeout(this.oTimer)
if(this.isHalting==true)
{
setTimeout(this.Name+".Halt('"+funcCallback+"')",200)
return
}
this.isHalting=true
for(i=this.StartSpanIndex;i<this.tSpanAll.length;i++)
{
// this.tSpanAll[i].parentElement.style.color="#fc0"
// this.tSpanAll[i].innerHTML="&#93"
setTimeout(this.Name+".HaltingAction("+i+")",200*(i+1-this.StartSpanIndex))
}
if(typeof(funcCallback)!="string") funcCallback=this.CallBack
if(typeof(funcCallback)!="string") return
this.CallBack=funcCallback
setTimeout(this.CallBack,(i-this.StartSpanIndex)*200+500)
setTimeout(this.Name+".isHalting=false",(i-this.StartSpanIndex)*200+500)

// setTimeout(this.CallBack,(this.tSpanAll.length+1)*500)
}
function _HaltingAction(index)

var vSpans=clMsgWin.all.tags("SPAN")
if(index>0) vSpans[index-1].parentElement.style.color='';
vSpans[index].parentElement.style.color='#fc0';
vSpans[index].innerHTML='&#254;'
}
</script>
</html>


标签:

本站文章除注明转载外,均为本站原创或翻译。欢迎任何形式的转载,但请务必注明出处、不得修改原文相关链接,如果存在内容上的异议请邮件反馈至chenjj@evget.com


为你推荐

  • 推荐视频
  • 推荐活动
  • 推荐产品
  • 推荐文章
  • 慧都慧问
扫码咨询


添加微信 立即咨询

电话咨询

客服热线
023-68661681

TOP