[jQuery] Willing to show div 10 secs after page load?

Discussion in 'jQuery' started by Miquexia, Apr 24, 2010.

  1. #1
    Hello,

    Is there a possibility to show a DIV 10 secs after page load? With the use of jQuery?

    **EDIT** Nvm, have one!

    Thanks,

    Miquexia
     
    Last edited: Apr 24, 2010
    Miquexia, Apr 24, 2010 IP
  2. d_s

    d_s Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi,

    Here is the way by which you can accomplish the functionality. I have given the code inside the script tag.

    
        $(document).ready( function(){
            var to=setTimeout("showDiv()",10000);        
        });
        
        function showDiv()
        {
            $("#delayDiv").show("slow");
        }
    
    Code (markup):
    For any further sample that you may need regarding javascript, do checkout my blog at: http://www.dsaravanan.wordpress.com/javascript.

    regards,

    d_s.

     
    d_s, Apr 24, 2010 IP