html - How to add a bar like "Congrats ... – learn more" of this site? -
i think floating bar saying "congrats, you've gained privilege – talk in chat learn more" looks cool, , neat reporting status. how add 1 own site please?
without looking @ stackoverflow source, way imagine done follows:
add div called notify (or whatever else want call it) top of page; this:
#notify{ width: 100%; height: 30px; position: absolute; top: 0; display: none; z-index: 500; }
then use jquery slideup , slidedown methods (or else want to) animate when new notification found via ajax. (you use mootools or javascript library if wanted to)
( http://api.jquery.com/slideup, http://api.jquery.com/slidedown, http://api.jquery.com/animate, , http://api.jquery.com/jquery.ajax/ )
Comments
Post a Comment