We would like to know how to fade in div with delay.
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.6.2.js'></script>
<style type='text/css'>
div {<!--from ww w. ja v a2 s. c om-->
position: absolute;
width: 100%;
height: 100%;
background-color: yellow;
}
</style>
<script type='text/javascript'>
$(window).load(function(){
$('#test').hide().delay(1500).fadeIn('slow');
});
</script>
</head>
<body>
<div id="test" style="display: none;"></div>
</body>
</html>
The code above is rendered as follows: