title: Changing background color with time interval
body: <p>I was attempting to slowly change my background color from black <code>rgb(0,0,0)</code> to <code>rgb(8,8,8)</code> and so on onto <code>rgb(255,255,255)</code>. I wanted to do this using Javascript and functions. I seem to be getting stuck in an infinite loop and I'm not sure why. Help please. Thank you!</p>
  
  <pre><code>&lt;body onload="setInterval"&gt;
      &lt;div id="topBanner"&gt;
          &lt;h1&gt;Testing&lt;/h1&gt;
      &lt;/div&gt;
      &lt;script&gt;
          setInterval(function() {
              for (var x = 0; x &lt;= 255; x + 8) {
                  document.body.style.background = "rgb(" + x + "," + x + "," + x + ")"
              }
          }, 1000)
      &lt;/script&gt;
  &lt;/body&gt;
  </code></pre>