<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>无标题文档</title> </head> <body> <form id="myForm"> dfa <input type="text" name="textfield" /> <input type="button" name="Submit" value="提交" οnclick="disM()" /> <input type="text" name="textfield" /> </form> <div style="z-index:auto; " mce_style="z-index:auto; "></div> </body> </html> <mce:script type="text/javascript"><!-- function disM(){ var obj = document.createElement("DIV"); var shield = document.createElement("DIV"); shield.id = "shield"; shield.style.position = "absolute"; shield.style.left = "0px"; shield.style.top = "0px"; shield.style.width = "100%"; shield.style.height = document.documentElement.scrollHeight+"px"; shield.style.background = "#333333"; shield.style.textAlign = "center"; shield.style.zIndex = "10"; shield.style.filter = "alpha(opacity=50)"; obj.style.opacity = 0; document.body.appendChild(shield); obj.id = "di"; obj.style.position = "absolute"; obj.style.left = "100px"; obj.style.top = "2px"; var inhmtl="<input type='text' name='textfield' /> <input type='button' name='ubmit' value='取消' οnclick='disN()' />"; obj.innerHTML=inhmtl; obj.style.zIndex = "20"; document.body.appendChild(obj); } function disN(){ var obj=document.getElementById("shield"); obj.style.display="none"; } // --></mce:script>