This is a modified version of jQuery alerts from Cory S.N. LaViska, A Beautiful Site (abeautifulsite.net/notebook/87).
Dual-licensed as GPL and MIT.
-
no titles anymore;
-
no ‘draggable’ dependency;
-
buttons texts are parametrables (for i18n and more flexibility).
Just copy and include the .js and .css files.
jAlert('Yup', 'Okay dude', function(){ // ... }); jConfirm('Sure ?', 'Yes dude', 'Nope', function(confirmed){ if(confirmed){
}else{ }
}); jPrompt('What is the response?', 42, 'OK', 'Cancel', function(){ // ... });
Reseased under MIT License as the original source was.