Twitter will pop down a message bar at the top of the screen say \"Wrong password\" and after 10 seconds, it will slide up and disappear. Chrome also shows \"Do you want to
You can do this with just a few lines of code, like this:
function topBar(message) {
$("", { 'class': 'topbar', text: message }).hide().prependTo("body")
.slideDown('fast').delay(10000).slideUp(function() { $(this).remove(); });
}
Then just give the class you use some styling, for example:
.topbar {
background: #990000;
border-bottom: solid 2px #EEE;
padding: 3px 0;
text-align: center;
color: white;
}
You can view a working demo here, tweak as needed :) This creates a