I wrote a warning bar:
alertmsg{ font-family:Arial,Helvetica,sans-serif; font-size:135%; font-weight:bold; overflow: hidden; width: 100%; text-align: center; position: fixed; top: 0px; left: 0px; background-color: #fff; height: 56px; color: #000; font: 20px/40px arial, sans-serif; display:none; padding-top:12px; -webkit-box-shadow: 3px 3px 5px #888; -moz-box-shadow: 3px 3px 5px #888; box-shadow: 3px 3px 5px #888; } function alertbar(m, timeout){ if(!timeout){ var timeout = 3000; } var $alertdiv = $('<div id = "alertmsg"/>'); $alertdiv.text(m); $alertdiv.bind('click', function() { $(this).slideUp(200); }); $(document.body).append($alertdiv); $("#alertmsg").slideDown("slow"); setTimeout(function() { $alertdiv.slideUp(200) }, timeout); return false }
Pretty simple. I call alertbar("Go go go!"); to issue this warning.
However, it covers the body page. I want it to be like a “click” on the whole page (all elements) ... sort of like StackOverflow, I think.
TIMEX source share