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.