Sunday, 20 July 2014

Document Ready Event Example

 <html>  
      <head>  
           <title></title>  
           <script type="text/javascript" src="js/jquery.js"></script>  
           <script type="text/javascript">  
              $(document).ready(function(){  
                   $('#message').fadeIn('show');  
                 });  
           </script>  
      </head>  
      <body>  
         <div id="message" style="display:none;">Welcome to my website</div>  
      </body>  
 </html> 

Click here to see Demo Demo1

No comments:

Post a Comment