$(document).ready(function(){ $("div#toggle a.button").click(function () { $("div#toggle div.box").toggle("slow"); }); hidden = true; $("div#custom a.button").hover(function () { if(hidden == false) { $("div#custom div.box").fadeOut(); hidden = true; } else { $("div#custom div.box").fadeIn(100); hidden = false; } }); This is the CSS code:
#custom { z-index:0; } .box { width:100%; height:20px; border:0px solid #999; background-color:rgb(128, 129, 132); display:none; position:fixed; left:0; margin-top:6px; z-index:0; font-family:Arial, Helvetica, sans-serif; font-size: 10px; color:#E6E4D7; }