<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>