Javascript pop-up layer component (upgraded version) _ javascript skills

Source: Internet
Author: User
I wrote a pop-up dialog box in the previous article, but there was a bug in ie6, which didn't implement the position: fixed effect at all. At that time, there was no real ie6 environment, and the test was neglected. I hurriedly put it on my blog, it also allows some readers to see and even use it. I am very sorry here. This time I used the original code's organizational structure to re-enhance the function. There are still two small issues, the first one is that the custom pop-up layer in ie6 will not be able to cover select. Currently, it has not been added to the component. You can add ifame to the custom p to mask it, the pop-up layer of the component can be hidden. The second problem is that the browser cannot automatically follow the browser window because it is absolutely positioned. You will know when you try it. Of course there are certainly many problems, but I think these two are important. I will list them for now and fix them later.

The following code contains comments and can be run directly.
Online Demo http://demo.jb51.net/js/2011/js_popup_up/index.htm

The Code is as follows:






Lock page



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.