create a fade-in link, delayed link - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:delay

Description

create a fade-in link, delayed link

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <script type="text/javascript" src="https://code.jquery.com/jquery-1.6.3.js"></script> 
  <script type="text/javascript">
    $(window).load(function(){//from  w  w  w  .  j a  v  a2  s.  co  m
$('.delayed')
    .hide()
    .delay(10 * 1000)
    .fadeIn();
    });

      </script> 
 </head> 
 <body>
   Wait 10 seconds... 
  <br> 
  <a class="delayed" href="http://blog.slaks.net">Delayed link!</a>  
 </body>
</html>

Related Tutorials