首页 > 其他 > 详细

ShowMask

时间:2014-07-14 21:44:42      阅读:324      评论:0      收藏:0      [点我收藏+]
<html>
    <head>
<script type="text/javascript">
    function showMask(){
        var a1=document.getElementById("DialogId");
        var a2=document.getElementById("MainId");
        a1.style.display="block";
        a2.style.display="block";
    }

    function hideMask(){
        var a1=document.getElementById("DialogId");
        var a2=document.getElementById("MainId");
        a1.style.display="none";
        a2.style.display="none";
    }
</script>

</head>
<body>
    <div id="DialogId" style="background-color:#dddddd;display:none; z-index:102; left: 50%; top: 50%; margin-left: -140px; margin-top: -70px; width: 200px; height: 50px; position: absolute;">
        <div id="ContentID" style="height: 50px; margin: 15px 20px; font-size: 15px; font-family: microsoft yahei; text-align: center;line-height:16px; overflow: hidden;">
        <img src="<%=request.getContextPath()%>/images/lodding1.gif" id="lodding" style="margin-right:10px;margin-top:0px;"/><span align="left" style="">正在处理,请稍候...</span>
        </div>
    </div>
    <div id="MainId" style="background-color: rgb(0, 0, 0); left: 0px; top: 0px; width: 100%; height: 100%; position: absolute; z-index: 100; display: none; opacity: 0.5;filter:alpha(opacity=50);"></div>
</body>
</html>

 

ShowMask,布布扣,bubuko.com

ShowMask

原文:http://www.cnblogs.com/cause/p/3842511.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!