- Version: 3
- Homepage: jnotifica.lenonmarcel.com.br
- Author: Lenon Marcel
jNotifica is a jQuery plugin that provides a beautiful and simple notifications system. It's usefull for substitute JavaScript alerts.
jNotifica is compatible with the most of modern browsers:
- Firefox
- Opera
- Google Chrome
- Internet Explorer 7
- Internet Explorer 8
...there is a poor support, because IE6 don't support CSS position: fixed. I had to use a "gambiarra" (something like "quick fix" in English), and this solution not provides a good "user experience". But works.
-
Top message:
$.jnotifica('Hello from Brazil!',{ margin : 10, width : 400, effect : 'fade', padding: 25, msgCss : { textAlign : 'center', fontSize : '138.5%', fontWeight: 'bold' } });
-
Right/bottom message:
$.jnotifica('Hey! You here? ;-D',{ margin : 10, position : 'bottom', align : 'right', background: 'purple', width : 400 });
-
Big bottom message:
var timer, color; $.jnotifica('BUY ME! BUY ME!',{ position : 'bottom', background: 'navy', onShow : function(Main){ timer = setInterval(function(){ Main.find('.jnotifica_bg').css('backgroundColor',color?'red':'navy'); color = color ? false : true; },200); }, onClose : function(Main){ clearInterval(timer); } });
-
Message with HTML
$('span.example_4').jnotifica({ position : 'bottom', background: 'green', clickClose: false, timeout : 0, cursor : 'default' });
-
Rounded corners
$.jnotifica('Beautiful! *-*',{ position : 'bottom', width : 300, msgCss : { textAlign: 'center' }, background: 'blue', opacity : 0.5, margin : 30, classes : 'rounded_corners' });
$.jnotifica(MESSAGE[, OPTIONS]);
...or:
$.jN(MESSAGE[, OPTIONS]);
$.jnotifica.close();
...or:
$.jN.close();
$(ELEMENT).jnotifica([OPTIONS]);
...or:
$(ELEMENT).jN([OPTIONS]);
Please visit jnotifica.lenonmarcel.com.br.
Dual licensed under the MIT and GPL licenses.
Copyright 2009, 2010 Lenon Marcel