<!DOCTYPEHtml><Htmlxmlns= "Http://www.w3.org/1999/xhtml"><Head><Title>jquery pop-up layer effect</Title><MetaContent= "Webpage effect, special effect code, JQUERY,CSS effect, JS code, advertising slide, picture switch"Name= "keywords"/><MetaContent= "jquery Popup effect, there is a close button, the code is easy to understand, you can modify the pop-up layer parameters." "Name= "description"/><ScriptSrc= "/uploads/common/js/jquery-1.4.2.min.js"Type= "Text/javascript"></Script><style>.black_overlay{display:none;position:absolute;top:0%;left:0%;width:100%;height:100%; Background-color:black;z-index:1001;-moz-opacity:0.8;opacity:.80;filter:alpha (opacity=80);}. white_content {display:none;position:absolute;top:10%;left:10%;width:80%;height:80%;border:16px solid lightblue; Background-color:white;z-index:1002;overflow:auto;}. White_content_small {display:none;position:absolute;top:20%;left:30%;width:40%;height:50%;border:16px Solid Lightblue;background-color:white;z-index:1002;overflow:auto;} </style><script type="Text/javascript" >Eject hidden layerfunction Showdiv (show_div,bg_div) {document.getElementById (show_div). style.display=' Block ';d Ocument.getelementbyid (bg_div). style.display=' Block ';var bgdiv = document.getElementById (bg_div); bgdiv.style.width = Document.body.scrollWidth;Bgdiv.style.height = $ (document). Height (); $ ("#" +bg_div). Height ($ (document). Height ());};Close the popup layerfunction Closediv (show_div,bg_div) {document.getElementById (show_div). style.display=' None ';d Ocument.getelementbyid (bg_div). style.display=' None ';};</Script> "Button1" Type= "Button" Value= "click Popup Layer" Onclick= "fade" class= "Black_overlay" ></div><div id= "mydiv" class= "white_content" ><div style= "text-align:right; Cursor:default; height:40px; " ><span style= "FONT-SIZE:16PX;" Onclick=</body></< span class= "HTML" >html>
jquery pop-up layer, click the button to eject the mask layer, there is a close button