<!DOCTYPE HTML><HTMLxmlns= "http://www.w3.org/1999/xhtml"><Head><title>jquery Popup 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:.;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><Scripttype= "Text/javascript">//Eject hidden layerfunctionShowdiv (show_div,bg_div) {document.getElementById (show_div). Style.display='Block';d Ocument.getelementbyid (bg_div). Style.display='Block' ;varBgdiv=document.getElementById (bg_div); Bgdiv.style.width=Document.body.scrollWidth;//bgdiv.style.height = $ (document). Height ();$("#"+bg_div). Height ($ (document). Height ());};//Close the popup layerfunctionClosediv (show_div,bg_div) {document.getElementById (show_div). Style.display='None';d Ocument.getelementbyid (bg_div). Style.display='None';};</Script></Head><Body><inputID= "Button1"type= "button"value= "Click on popup Layer"onclick= "Showdiv (' mydiv ', ' fade ')" /><!--popup layer when background layer div -<DivID= "Fade"class= "Black_overlay"></Div><DivID= "Mydiv"class= "White_content"><Divstyle= "text-align:right; cursor:default; height:40px;"><spanstyle= "FONT-SIZE:16PX;"onclick= "Closediv (' mydiv ', ' fade ')">Shut down</span></Div>for now, I still like the pop-up layer of my own makeover. This is also used in the project itself. </Div></Body></HTML>
jquery pop-up layer, click the button to eject the mask layer, there is a close button