title: Blinking divs like traffic lights?
body: <p>I have this website: <a href="http://backlinkbeat.com" rel="nofollow">backlinkbeat.com</a>. To the down, there are 3 divs having the background images. Each background-image includes a number like "1", "2", "3". I want those divs to blink as traffic lights respectively.</p>
  
  <p>The script I wrote is not blinking the lights correctly as you can see in the <a href="http://backlinkbeat.com" rel="nofollow">link</a> which means that it is not blinking the correct order. I want to blink them in the way are shown in the markup:</p>
  
  <pre><code>&lt;div style="float:left; height:400px;"&gt;
      &lt;div style=" margin-top:50px;"&gt;
          &lt;div class="list cufon one" id="blink1" style="width:420px;"&gt;put you on just any, &lt;span style="color:#1fbfd1;"&gt;www.yourwebsite.com&lt;/span&gt;
          &lt;/div&gt;
          &lt;div class="list cufon two" id="blink2" style="width:420px;"&gt;Press &lt;span style="color:#1fbfd1;"&gt;"do it"&lt;/span&gt;
          &lt;/div&gt;
          &lt;div class="list cufon three" id="blink3" style="width:420px;"&gt;see the backlinks &lt;span style="color:#1fbfd1;"&gt;roll in!&lt;/span&gt;
          &lt;/div&gt;   
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The script I wrote which donot work correctly is:</p>
  
  <pre><code>setInterval(function () {
      setTimeout(function(){
         var vis1 = $("#blink1").css("visibility");
         vis1 = (!vis1 || vis1 == "visible") ? "hidden" : "visible";
         $("#blink1").css("visibility", vis1);
          }, 1000);
      }, 1000);
  setInterval(function() {
      setTimeout(function(){
         var vis2 = $("#blink2").css("visibility");
         vis2 = (!vis2 || vis2 == "visible") ? "hidden" : "visible";
         $("#blink2").css("visibility", vis2);
      }, 2000);
  }, 2000);
  setInterval(function() {
      setTimeout(function(){
         var vis3 = $("#blink3").css("visibility");
         vis3 = (!vis3 || vis3 == "visible") ? "hidden" : "visible";
         $("#blink3").css("visibility", vis3);
      }, 3000);
  }, 3000);
  </code></pre>
  
  <p>Thanks,
  Areeb</p>