as shown below, if the user hover over the div then how to halt the fade out div? and if the is not hover the div then fadeout whatever the time is set to.?
below is the code i am using….for fadein and fadeout:
$("#success").fadeOut('slow');
$("#success").fadeIn('slow');
$("#success").fadeTo(5000, 1).fadeOut(2000);
my div:
<div class="success"><a href="#" class="close">×</a>status message here...</div>
i tried this:
if ($('#success').is(':hover')) { //dont close me and reset the time ...}
result:

Something like this? http://jsfiddle.net/krmNY/1/
JS
HTML