Jack-Leung

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

aspx页面代码:

#bgDiv
{
display: none;
    position: absolute;
    top: 0px;
    left: 0px;
    right:0px;
    background-color: #777;
    filter:progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75)
    opacity: 0.6;
}
#ElseAddressDiv
{
width: 700px;
height: 290px;
position:absolute;
padding: 10px;
vertical-align: middle;
border: solid 3px #ff8300;
z-index: 10001;
display: none;
background-color:White;
}

<div id="bgDiv">
</div>
<div id="ElseAddressDiv">
<div>

js代码:

function invokeOpen()
{
    document.getElementById("ElseAddressDiv").style.display="block";
    //背景
    var bgObj=document.getElementById("bgDiv");
    bgObj.style.display="block";
    bgObj.style.width = document.body.offsetWidth + "px";
    bgObj.style.height = screen.height + "px";

    //定义窗口
    //var msgObj=document.getElementById("ElseAddressDiv");
    //msgObj.style.marginTop = -75 + document.documentElement.scrollTop + "px";
}
function invokeClose()
{
    document.getElementById("ElseAddressDiv").style.display="none";
    document.getElementById("bgDiv").style.display="none";
    //document.getElementById("CheckElseAddress").setAttribute("checked","false");
    //document.getElementById("MoRenAddress").setAttribute("checked","true");
}

posted on 2011-07-07 16:02  Jack.leung  阅读(629)  评论(0编辑  收藏  举报