I want to fade in text when loading a page, w/ the background-color slowly fading in as well.
<div id="alert-box">
<p>This is the alert box, this message will display 5 seconds after page is loaded, with the background-color fading in.</p>
</div>
Here is what I have for the jQuery for now:
$(document.body).click(function () {
$("div:hidden:first").fadeIn("slow");
});
It has the click function in it.
How would I go about setting a delay and also the background-color to fade in?
EDIT: I would like it to fade in, then slowly ("non-annoyingly") flash the div block 2 or 3 times, then stays still. The user won't miss the alert then.