jQuery Page Widget How to - Blink text








Question

We would like to know how to blink text.

Answer


<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-2.1.0.js'></script>
<script type='text/javascript'>//<![CDATA[ 
$(window).load(function(){<!--   w ww. j  av  a  2  s.  c om-->
    setInterval(function(){
      $('.comments').toggle();
    }, 1000);
});//]]>  
</script>
</head>
<body>
  <div class="comments">There is no orders to download.</div>
</body>
</html>

The code above is rendered as follows: