I’ve been looking for a notification bar like the one on this site that displays at the top notifying a user of changes etc. It should have the ability of being closed. All I can find for jquery is this one
Does anyone have any other recommendations or suggestions?
Super easy to build your own. Just make it the first
<div>under the<body>tag, and set the css to something like this:Then on your notifications, simply slide it down:
And add a click event to close it and clear out the notification:
Demo: http://jsfiddle.net/AlienWebguy/Azh4b/
If you wanted to really make it like StackOverflow’s you’d simply set a cookie when you issue the notification, and then every page load show all notifications which have applicable cookies.
If you want multiple notifications, change
#notifyto.notifyand stack em up. Something like this:Demo: http://jsfiddle.net/AlienWebguy/5hjPY/