Appear a div after a time delay using jquery

Last night i was searching for jquery code which could display a div after a time delay,i have been looking for code but i just need a simple code and lots of codes were those which show div and then hide after sometime.At this i thought  to write my own jquery code snippet and here is my code…

<script type=”text/javascript” >
jQuery(document).ready(function($)
{
$(‘your div class’).delay(11000).fadeIn(6000);
});
</script>

in this code donot forget to replace your div class with ‘your div class’ and also u can set speed of fadein.
Also include standard jquery liabirary in ur head of page

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s