var DivWindow= function(popup/*outermost div id*/,popup_drag/*drag div id*/,popup_exit/*exit button id*/,exitButton/*trigger server-side exit button id*/ ,varwidth,varheight,zindex){ this.popup =popup ; this.height =varheight ; //Window height is not used to set the window height and width, but is used to position the screen this.width =varwidth; //Window width this.popup_exit=popup_exit; this.exitButton=exitButton; this.zindex=zindex; this.init = function(){ // Initialization window this.popupShow(); this.startDrag(); //Set drag this.setCommond(); //Set close DivWindow.ArrayW.push(document.getElementById (this.popup)); //Storage window into array }; this.init(); };
Yes You may think this is a bit strange. Don’t ask me why, because I have this need and will modify the masking effect when I have time. For more detailed code, please see Download Full Code
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn