Kingwell dialog v1.5 kingwell dialog box source code and documentation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.