title: Changing the css color every second
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1374867/how-to-loop-a-css-background-image-with-jquery-every-few-seconds">How to loop a css background image with Jquery every few seconds?</a>  </p>
  </blockquote>
  
  
  
  <p>I'm wondering how to achieve a simple "animation" effect of colors changing every second and if there is a way to animate the animation it can be even better.</p>
  
  <p>I have just tried something like:</p>
  
  <pre><code>$('.box').delay(1000).css("background","red");
  </code></pre>
  
  <p>And it doesn't work at all (the delay function isn't working).. anyways i need like two of them:</p>
  
  <pre><code>$('.box').delay(1000).css("background","red");
  $('.box').delay(1000).css("background","green");
  </code></pre>
  
  <p>So that it becomes red -> wait a second and becomes green -> becomes red again..</p>
  
  <p>Is it possible? thanks!</p>