<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%">
moduleZone("id",false)</script>
lkalsdf
asdf
asf
</span>
Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved. 闵涛 E_mail:admin@mintao.net(欢迎提供学习资源)
鄂公网安备 42011102001154号
站长:MinTao ICP备案号:鄂ICP备11006601号-18