望穿秋水
管理&技术&业务 项目管理方面:加强通过工具辅助管理,构建Web项目管理系统来协助项目管理。技术开发方面:加强系统分析能力、架构设计能力,时刻把握新技术动态。业务方面:加强需求分析能力,使最终需求来源于客户又高于客户。
实现功能:弹出一个DIV层提示等待信息,这个时候禁用用户操作页面中的其他内容。
弹出DIV:
<div id="divWaiting" style="display: none; z-index: 1100; left: 25%; right: 25%; position: absolute;
    text-align: center; width: 50%; height: 50px; border-right: #009900 1px solid;
    border-top: #009900 1px solid; border-left: #009900 1px solid; border-bottom: #009900 1px solid;
    background-color: #f9fff6; left: expression((this.offsetParent.clientWidth/2)-(this.clientWidth/2)+this.offsetParent.scrollLeft);
    top: expression((this.offsetParent.clientHeight/2)-(this.clientHeight/2)+this.offsetParent.scrollTop);"
>
    
<br>
    The system is dealing with your request, please waiting
</div>

弄一个全屏的DIV来覆盖页面:
<div id="divDisable" style="display: none;width:expression(document.body.offsetWidth);height:expression(document.body.offsetHeight); z-index: 1000; position: absolute;left: 0px; top: 0px;filter:alpha(opacity=50); background-color:White"></div>

点击按钮的操作:
document.getElementById("divWaiting").style.display="";
        document.getElementById("divDisable").style.display="";

其他处理:
function ChangeDiv()
{
   document.getElementById("divDisable").style.height=document.body.offsetHeight+document.body.scrollTop;
}
window.onscroll=ChangeDiv;
posted on 2008-02-16 18:36  望穿秋水  阅读(5224)  评论(6编辑  收藏  举报