Home > Article > Web Front-end > The perfect revised version of Baidu popup.js is very good. Recommended by Script House_Page background
The reason is that the screen coordinates are incorrectly determined after adding the document type (DOCTYPE) to the HTML. There is also a solution on the Internet, which is to remove the document type. I think this method of treating the symptoms but not the root cause is very unreasonable. I spent some time to modify it. . After testing IE6, IE7, Firefox2.0, Firefox3.0, there is no problem. I have not tested the others. The modified compressed file is about 2KB larger and is now 16.2 KB. It is quite reasonable under the current network bandwidth. I can provide an annotated version of popup.js if necessary. Please believe that bloggers have a sharing spirit.
Historical version description:
V1.0.0 2008.07
Download popup.js from Baidu Space and apply it to the blog system
V1.1.0 2008.07
Modification due to conflict with document type (DOCTYPE) , the mask layer is misplaced
V1.2.0 2008.11
Modify that due to the short page, the mask layer cannot completely mask the page
Modify that when the mask is opened in non-full screen, the mask layer cannot be full screen after the page is full screen. Problem
The problem of dragging out the mask area in the modification dialog box
Updated in 20100413, there is a small problem.
Online test http://img.jb51.net/online/popup/popup.html
Package download address