JQuery Alert Dialogs - заміна стандартних функцій Alert(), Confirm() та Prompt()

Для роботи плагіна необхідні такі скрипти:
Викликаються функції так:
- jAlert(message, [title, callback])
- jConfirm(message, [title, callback])
- jPrompt(message, [value, title, callback])
$(document). ready ( function ( )
$ ( "#alert_button"). click ( function ( ) < jAlert ( 'This is a custom alert box' , 'Alert Dialog' ) ; > ) ;
$ ( "#confirm_button"). click ( function ( ) < jConfirm ( 'Can you confirm this?' , 'Confirmation Dialog' , function ( r ) < jAlert ( 'Confirmed: ' + r , 'Confirmation Results' ) ; >); >);
$ ( "#prompt_button"). click ( function ( ) < jPrompt ( 'Type something:' , 'Prefilled value' , 'Prompt Dialog' , function ( r ) < >); >);
$ ( "#alert_button_with_html"). click ( function ( ) < jAlert ( 'Ви можете використовувати HTML, так якbold, italics, andunderline!' ) ; > ) ;
$ (".alert_style_example"). click ( function ( ) < $. alerts . dialogClass = $ ( this ) . attr ( 'id' ) ; // set custom style class jAlert ( 'This is the custom class called “ style_1”' , 'Custom Styles' , function ( ) $.alerts .dialogClass = null ; // reset to default > > );
Недоліки: * Клавіші ENTER та ESC (підтвердити/скасувати) не працюють у WebKit-браузерах * Draggable plugin на даний момент не працює в Opera * У IE6 position: fixed не підтримується.