jquery pop-up layer, click the button to eject the mask layer, there is a close button

Source: Internet
Author: User

<!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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.