The following jquery. js, bgiframe. js, and weebox. js files must be included before use.
Boxid: null, // after this value is set, when the pop-up window with the same boxid is opened, the previous one will be automatically closed boxclass: null, // set other styles for the pop-up window. You can use this method to change the style type of the pop-up window: 'Dialog '. // the pop-up window types include dialog, error, warning, success, wee, prompt, box six title: '', // pop-up window title width: 0, // pop-up window width, when not set, will automatically change the size of height: 0 according to the content, // The height of the pop-up window (note that it is the content height, not the height of the pop-up window) timeout: 0, // The number of seconds after the window is set to automatically close draggable: true, // whether modal: true can be dragged, // whether to display the overlay: 75, // whether to display the transparency of the photo. focus: null, // What elements the focus is moved to when the pop-up window is opened, by default, the move to cancel button to posi Tion: 'center', // The default window that appears is in the middle. When it is set to element, you need to set the trager option, trigger: null, // The reference element for displaying the position, for an element id showTitle: true, // whether to display the title showButton: true, // whether to display the button, including OK and cancel showCancel: true, // whether to display the cancel button showOk: true, // whether the OK button is displayed okBtnName: 'OK', // "OK" button name cancelBtnName: 'cancel', // "cancel" button name contentType: 'text ', // Content Retrieval Method. Currently, there are three methods: text, selector, ajax contentChange: false, // when the value is selector, clickClose: false, // whether to disable the pop-up window zIndex when the click is not in the pop-up window: 999 ,// Default pop-up window layer animate: false, // The function onopen: null triggered when the pop-up window is closed, // The function triggered before the pop-up window is displayed, at this time, the content has been put into the pop-up window, but it has not been displayed onok: null, // click the OK button and oncancel: null // click the cancel button to trigger the function $. weeboxs. open ('The operation failed. ', {onopen: function () {alert ('opened! ');}, Onclose: function () {alert ('closed! ') ;}, Onok: function () {alert (' OK '); $. weeboxs. close () ;}}); $. weeboxs. open ('/modules/test/testsession. php ', {contentType: 'ajax'}); $. weeboxs. open ('Hello World'); $. weeboxs. open ('The operation failed. ', {type: 'error'}); $. weeboxs. open ('The operation failed. ', {type: 'wee'}); $. weeboxs. open ('The operation failed. ', {type: 'success'}); $. weeboxs. open ('The operation failed. ', {type: 'warning'}); $. weeboxs. open ('autoclosing in 5 seconds. ', {timeout: 5 });