The reason is that, after adding the document type (doctype) to the HTML, the screen coordinate is judged to be incorrect. There is also a solution on the network, that is, removing the document type. I think this method is unreasonable, I spent some time modifying it. I tested IE6, IE7, firefox2.0, and firefox3.0 without any problems. The size of the compressed file is about 2 kb, Which is 16.2 kb. It is reasonable under the current network bandwidth. If necessary, I can provide the popup. js comments version. Please believe that the bloggers share the spirit.
Previous 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
Modified because of a conflict with the document type (doctype), the mask layer is misplaced.
V1.2.0 2008.11
Because the page is short, the mask layer cannot completely mask the page
Modify to enable the mask in a non-full screen mode. After the screen is displayed, the mask layer cannot be in full screen mode.
The modify dialog box can drag out the mask area.
20100413 updated, with a small problem.
Online Testing http://img.jb51.net/online/popup/popup.html
Package