jQuery Fade Out by Timer

12/26/2012 5:27:36 AM

Fade out an object(s) using javascript timer (setTimeOut) and jQuery fadeOut. In 2.5 seconds, the #divObject will start to fade out "slow"ly.

//show the object if not currently visible
$("#divObject").show();

setTimeout(function ()
{
	$("#divObject").fadeOut("slow");
}, 2500);