打印本文 打印本文 关闭窗口 关闭窗口
半透明遮盖区域(层高级应用)
作者:武汉SEO闵涛  文章来源:敏韬网  点击数589  更新时间:2009/4/23 11:12:52  文章录入:mintao  责任编辑:mintao
 

<script language=javascript>

function moduleZone(id,show)
{
var s=(show==true)?"hidden":"visible";
//alert(s);
document.write(" <div id=moduleZone_"+id+" style=position:absolute;width:100%;height:100%;visibility:"+s+";> <table style='width:100%;height:100%;' border='0' cellspacing='0' cellpadding='0'> <tr valign=middle> <td> <iframe src='about:blank' frameborder='0' style=\"position:relative; visibility:"+s+"; width:100%;height:50%;filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=50)';\"></iframe> <table style='width:100%' border='0' cellspacing='0' cellpadding='0'> <tr> </tr> </table> <iframe src='about:blank' frameborder='0' style=\"position:relative; visibility:inherit;width:100%;height:50%;filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=50)';\"></iframe> </td> </tr> </table> </div>");
}

</script>

说明:

id:层的名称;

show是否显示该区域

<span style="width:100%;height:100%">

<script language=javascript>

moduleZone("id",false)
</script>

lkalsdf

asdf

asf

asf

</span>


打印本文 打印本文 关闭窗口 关闭窗口