<Script>$(function(){ $("#test1"). Click (function(){ varDialog=Jdialog.alert ('Welcome to the JDialog component, I am alert! ', {},{Showshadow:false,//do not display dialog box Shadowsbuttonalign:'Center', events: {show:function(evt) {varDlg=Evt.data.dialog; }, Close:function(evt) {varDlg=Evt.data.dialog; }, Enterkey:function(evt) {alert ('Enter key pressed!'); }, Esckey:function(evt) {alert ('Esc key pressed!'); Evt.data.dialog.close (); } } }); }) ; $("#test2"). Click (function(){ varDialog=Jdialog.confirm ('Welcome to the JDialog component, I am confirm! ', {handler:function(button,dialog) {alert ('you clicked OK! '); Dialog.close (); }},{Handler:function(button,dialog) {alert ('you clicked the Cancel! '); Dialog.close (); } }); }); $("#test3"). Click (function(){ //Control the IFRAME dialog box with the options parameter varDialog=Jdialog.iframe ('http://www.juheweb.com/', {title:'Code Editor-Aggregation Share Productions', Width:1100, Height:550 }); }); $("#test4"). Click (function(){ //Control dialog with the options parameter varDialog=Jdialog.dialog ({title:'Customize dialog box', Content:'Hello everyone, welcome to visit the aggregation of sharing, please add QQ Group: 774780837, Exchange together! ' }); }); $("#test5"). Click (function(){ //Control dialog with the options parameter varDialog=Jdialog.dialog ({title:'Customize dialog box', Content:'Hello, I'm jdialog.dialog!. ', buttons: [{type:'Highlight', Text:'Hello', Handler:function(Button,dialog) {dialog.close (); } } ] }); }); $("#test6"). Click (function(){ varDialog=Jdialog.message ('Hello Everyone, welcome to the aggregation sharing', {autoClose: the, //auto-off after 3spadding:'30px', //Set Internal paddingmodal:true //non-modal, i.e. no matte layer displayed }); }); $("#dianZ"). Click (function(){ varDialog=Jdialog.tip ('Hello Everyone, welcome to the aggregation sharing', {target: $ ('#dianZ'), Position:'Left-top', Triangleposfromstart:0, AutoClose: +, offset: {top:- -, left:Ten, right:0, bottom:0 } }); }); });</Script>
JDialog Popup Layer, dialog box, cue box jquery plugin