A jQuery-powered custom Alert, Confirm and Prompt plugin that replaces the default browser dialog boxes with enhanced versions.
To see the alertX in action right now, with all its default settings, you may click here. You need only this line in your javascript:
$.alertX({message:'This is the message.'});
To change the title part, you can set title property. For preview click here. Code sample:
$.alertX({ title:'My own title here', message:'This is the message.' });
There are many animations availiable, you may click any link to see it in action. Code sample:
$.alertX({ message:'This alert opened with bounce animation. Same animation will apply in reverse mode when closing the alertX.', title:'bounce animation example', animation:'bounce' });
There are many themes availiable, you may click any link to see a theme in action.
$.alertX({ message:'This alert opened with glass theme. You may develop your own theme or download more from our website.', title:'glass theme example', theme:'glass' });
There are some action icons availiable, you may click any link to see an icon preview.
$.alertX({ message:'This alert opened with success icon. These may come handy to represent various situations.', title:'success icon example', icon:'success' });
There are some color classes that you may find useful with buttons, backdrop and title color. Button HTML code sample:
<a href="#" class="alertx-btn red">Red Button</a>Click any button below for preview. Code sample is below buttons:
$.alertX({ message:'This alertX have teal colored title and backdrop color.', title:'teal color class example', titleClass:'teal', bgClass:'teal' });
Backdrop have 3 properties that can be true or false. Code sample:
$.alertX({ message:'This is the message.', title:'Backdrop options example', bg:true, bgpic:false, bgblur:true });
Confirm dialogs can also be made using this plugin. See demo
$.alertX({ message:'Are you sure?', title:'Please confirm...', type:'confirm', confirmed:function(){ $.alertX('You confirmed it!'); }, cancelled:function(){ $.alertX('You cancelled it!'); } });
You can make use of Xalign and Yalign options to control the position of alertX. Code sample:
$.alertX({ message:'This box should be aligned as per the link you had clicked.', title:'Alignment preview', Yalign:'start', Xalign:'end' });
You can run multiple instances at once. View demo here
You can use it for notification also. You can also set timeout for it. View demo here. Code sample:
$.alertX({ message:'This is a notification message. It disappears in 15 seconds.', Yalign:'center', Xalign:'center', theme:'neon', timeout:15000, bgblur:false, type:'notify' });
Sometimes, you may need multiple action buttons OR want some information to be displayed in footer part of alertX. Code sample:
$.alertX({ message:'Can you see my name in footer near button area?', title:'Footer text example...', footer:'Satish Kumar Sharma' });