jQuery Alert Dialogs -JS/jQuery代码 -演示与下载 -时代Java

« jQuery Alert Dialogs (Alert, Confirm, & Prompt Replacements)

Basic Examples

Alert
jAlert('This is a custom alert box', 'Alert Dialog');

Confirm
jConfirm('Can you confirm this?', 'Confirmation Dialog', function(r) {
    jAlert('Confirmed: ' + r, 'Confirmation Results');
});

Prompt
jPrompt('Type something:', 'Prefilled value', 'Prompt Dialog', function(r) {
    if( r ) alert('You entered ' + r);
});

Additional Examples

With HTML
jAlert('You can use HTML, such as bold, italics, and underline!');

Alternate Styles

By changing the value of the $.alerts.dialogClass property (and creating your own CSS class), you can changes the style of your dialogs:

View the plugin source for additional properties that can be modifed at runtime.

Back to the project page

下载代码说明
X关闭

jQuery Alert Dialogs (JQuery的Alert插件介绍)

有没有厌倦了原来那alert那个风格,总是一个感叹号。有时使得UE不好,今天我们介绍使用Jquery Alert插件 ,使用它可以用来替换JScript中的alert,confirm,prompt 。