I have simple html page:
Try this code
if($('.to_hide').css("display") == "block") { $(".to_hide").mouseout(function(){ setTimeout(hidepara,10000); }) } function hidepara() { $(".to_hide").hide(); }
Working sample http://jsfiddle.net/kaYLG/