<div id="Layer2" align="center"
style="position:absolute; z-index:3; width: 540; height:170px;left:expression((document.body.offsetWidth-540)/2);
top: expression((document.body.offsetHeight-170)/2);background-color:#c1c1c1;filter:Alpha(Opacity=50);" valign="center" > </div>
//放在叶面最下面
<div id="Layer2" align="center" style="position: absolute; z-index: 3;
width :expression(document.body.offsetWidth-20) ;
height:expression(document.body.scrollHeight);
left: 0; top:0;
background-color: #c1c1c1; filter: Alpha(Opacity=50);" valign="center">
</div>
<script language="javascript">
document.all["Layer2"].style.width=document.body.offsetWidth-20;
document.all["Layer2"].style.height=document.body.scrollHeight;
document.body.οnresize=function()
{
document.all["Layer2"].style.width=document.body.offsetWidth-20;
document.all["Layer2"].style.height=document.body.scrollHeight;
}
</script>
///-----
//js滚动条事件
document.body.οnscrοll=function()
{
document.all["<%=layerCenter.ClientID%>"].style.left=document.body.clientWidth/2;
document.all["<%=layerCenter.ClientID%>"].style.top=document.body.clientHeight/2;
document.all["Layer2"].style.width=document.body.clientWidth;
document.all["Layer2"].style.height=document.body.clientHeight;
document.all["Layer2"].style.top=document.body.scrollTop;//滚动之后的顶部
}