Guest User

Untitled

a guest
Nov 7th, 2012
103
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
  2.  
  3. <script>
  4. $(function() {
  5.     /**
  6.      *
  7.      */
  8.     var container = $('.container');
  9.    
  10.     setInterval(function() {
  11.         if(container.hasClass('active')) {
  12.             container.removeClass('active');
  13.         }
  14.         else {
  15.             container.addClass('active')
  16.         }
  17.    
  18.     }, 732);
  19.  
  20. });
  21.        
  22.  
  23. </script>
  24.  
  25. <style>
  26.     .container {
  27.         width:10px;
  28.         height:10px;
  29.         background: red;
  30.     }
  31.     .container.active {
  32.         width:20px;
  33.         height:20px;
  34.     }
  35. </style>
  36.  
  37.  
  38. <div class='container'></div>
RAW Paste Data