Introduction to jquery. boxy, a lightweight plug-in the js pop-up box

Source: Internet
Author: User

When you need to use the pop-up box, you can certainly use jquery-ui, artdiag, blockUI and so on, but today I will introduce a lightweight plug-in boxy! It can easily reflect the pop-up box of the artist design, and the compatibility is good!
Copy codeThe Code is as follows:
<Script type = 'text/javascript '>
$ (Function (){
$ ('# Ask-actuator'). click (function (){
Boxy. ask ("How are you feeling? ", [" Great "," OK "," Not so good "], function (val ){
Alert ("You chose:" + val );
},{ Title: "This is a question ..."});
Return false;
});
$ ('# Alert-actuator'). click (function (){
Boxy. alert ("File not found", null, {title: 'message '});
Return false;
});
$ ('# Confirm-actuator'). click (function (){
Boxy. confirm ("Please confirm:", function () {alert ('confirmed! ') ;},{ Title: 'message '});
Return false;
});
});
</Script>

You can replace the content id with the content location in Boxy (content) according to your needs, which is convenient.

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.