kiNotice jQuery plugin
Very simple to use notification system that pops from the bottom right of the screen
Today the majority of the web applications like news portals, social media platforms or administration interfaces contain a notification system that reminds the visitor/user about certain promotions or settings available.
The easiest way to show any kind of notification without obstructing the user's view is by introducing the message in the bottom right corner of the screen (browser). This is where jQuery plugin kiNotice comes into play to help you do that with ease.
Download (3.79 KB) |
Demos & SourceCode
Calling the plugin, some random examples:
<script type="text/javascript" src="jquery.kinotice.js"></script> <link type="text/css" rel="stylesheet" href="kinotice.css" />
// Static string example. $.fn.kiNotice({ autoOpen: true, hideOnClose: true, title: 'Today\'s announcement', content: '<p>Quisque a nunc felis, vel bibendum diam. Phasellus a velit libero. Aliquam consectetur arcu vitae massa pellentesque accumsan.</p>' });
// DOM object inserted into the body of the notice $.fn.kiNotice({ autoOpen: true, content: $('#important-message') });
// AJAX content loaded. $('#content').kiNotice({ autoOpen: true, hideOnClose: true, ajaxSettings: { url: 'ajax.php?page=get_message&response=html', type: 'GET' } });
// You can use extra classes to customize the notice, and a custom notice animation. $.fn.kiNotice({ autoOpen: false, ajaxSettings: { url: 'ajax.php?action=inbox&response=json', type: 'GET', success: function(data){ this._setToggleIcon('<sup>'+data.notice_count+'</sup>'); this.kiNoticeContent.html(data.notice_content); this._open(); } }, extraClasses: 'AlmaTheme', extraNoticeInterval: 1000 });
What browsers are supported?
The plugin was tested and successfully ran on: IE6, IE7, IE8, IE9, Firefox, Chrome, Opera, Safari.
What version of jQuery can I use?
The plugin works on jQuery 1.3.1 and above. I recommend you to run it on >=1.4
Post new comment