I need to show a div (e.g. #mybox) in 10secs after page load, keep it visible for another 10 secs and then hide with a nice sliding in/out effects.
Thanks a lot for
May be this way: http://jsfiddle.net/EzvGD/2/
$(function(){ //-----------------when page loads fire the code below. $('#div').delay(10000).show('slow').promise().done(function(){ $('#div').delay(10000).hide('slow') }); });