This time, we have used the organizational structure of the original code to re-enhance the function. Currently, there are still two small problems. The first one is that the custom pop-up layer under IE6 will not be able to cover the selection. It has not been added to the component yet. , you can add ifame to the custom div to cover it, and the pop-up layer that comes with the component can be covered. The second problem is that because it is absolutely positioned, it will not follow automatically when the browser window size is changed. You will know after you try it. Of course, there must be many problems, but these two that I think are more important are listed here for the time being and will be fixed later.
The following is the code, it has comments and can be run directly.
Online demohttp://demo.jb51.net/js/2011/js_popup_up/index.htm