I do a fade in div that is not displayed when I load the page:
$(\'#overlay\').fadeIn(\'fast\'); $(\'#box\').fadeIn(\'slow\');
I would
You could use setTimeout()
setTimeout()
var xSeconds = 1000; // 1 second setTimeout(function() { $('#overlay').fadeOut('fast'); $('#box').hide(); }, xSeconds);