Custom pop-up:
Supports keyboard operations
Supports multi-window pop-up
Compatible with various browsers
Support for IFRAME and IFRAME Covering Layers
Automatic shutdown is supported.
Custom button
It has been well developed through multiple projects
Instructions
The usage method is as follows:
NewDialog ({Title:'Hello world', Width:500, Height:100, Type:0, HTML:'Hello kingwell dialog', Callback:Function() {Alert ('I want to close it');}});
/*Parameter description: All parameters are in JSON format. Title window title file. Optional width window width. Optional height window height. Optional HTML window content. Callback callback function. Optional type window type (default: 0, that is, normal window, 1 is an alert window, 2 is a success window, 3 is a failure window, 4 is a warning window, and 5 is a inquiry window) Optional timeout auto close time, is a numerical value: for example, if 1000 is set to 1 second, autoclose is automatically disabled. If this parameter is set to true, autoclose is automatically disabled. If this parameter is set to false, it must be manually disabled. The method is as follows: 1) call this in the callback function. remove (); 2: assign a value to a variable, for example, VAR dialog = new dialog (); then execute dialog. remove (); Whether titlestate displays title Boolean value: True | false (optional) Whether closestate displays close Boolean value: True | false (optional) specifies whether the button is displayed. boolean value: True | false (optional) specifies the value of oktext. Optional values: true | false: whether the fixed window is fixed. boolean value: True | false: Ready indicates the action to be executed after the function window is displayed, such as binding events, optional layer: whether to display optional iframeiframe by default. in IE6, the optional align peer mode is available. The optional addbuttonhtml button is added. html is optional. keyboard operations are supported. When the window gets focus, press ESC to exit. When the button gets the focus, you can perform the corresponding operation.*/
Source code download: Download kingwell dialog v1.5 code and documentation