<mce:style><!-- *{ margin:0; padding:0; } #topCoverDiv{ filter:alpha(opacity=40);-moz-opacity:.4;opacity:0.4; position:absolute; width:100%; height:100%; background-color:#c0c0c0; z-index:100; text-align:center; } #dia{ color:#00FF7F; background:#C0D9D9; z-index:200; position:absolute; filter:alpha(opacity=100); -moz-opacity:1; opacity:1; top:200px; left:200px; width:200px; height:60px; } --></mce:style><style mce_bogus="1">*{ margin:0; padding:0; } #topCoverDiv{ filter:alpha(opacity=40);-moz-opacity:.4;opacity:0.4; position:absolute; width:100%; height:100%; background-color:#c0c0c0; z-index:100; text-align:center; } #dia{ color:#00FF7F; background:#C0D9D9; z-index:200; position:absolute; filter:alpha(opacity=100); -moz-opacity:1; opacity:1; top:200px; left:200px; width:200px; height:60px; }</style> <div id=topCoverDiv style="display:none;" mce_style="display:none;"></div> <div id=dia style="display:none" mce_style="display:none"> <a href="javascript:void(0)" mce_href="javascript:void(0)" οnclick="test()">关闭</a> </div> <mce:script type="text/javascript"><!-- function test(){ var maskBg=document.getElementById('topCoverDiv') var dia=document.getElementById('dia') maskBg.style.display =(maskBg.style.display=='none') ?'block':'none'; dia.style.display =(dia.style.display=='none') ?'block':'none'; } // --></mce:script> <a οnclick="test()">test</a> <font color='red'>被你挡住了----------------呜呜呜!</font>