title: Change body background image with jQuery
body: <p>I decided to make a function that changes the body background image after every 10 seconds.</p>
  
  <pre><code>function Background()
  {
      var Background_Stage;
      switch(Background_Stage)
      {
          case 0:
          {
              $('body').css.('background', '#000 url(../../Styles/Callum_Project1/Images/BACKGROUND_1_TEST.png) no-repeat');
              Background_Stage++;
              setInterval(function(){Background()},10000);
          }
          case 1:
          {
              $('body').css.('background', '#000 url(../../Styles/Callum_Project1/Images/BACKGROUND_2_TEST.png) no-repeat');
              Background_Stage++;
              setInterval(function(){Background()},10000);
          }
          case 2:
          {
              $('body').css.('background', '#000 url(../../Styles/Callum_Project1/Images/BACKGROUND_2_TEST.png) no-repeat');
              Background_Stage = 0;//Reset 
              setInterval(function(){Background()},10000);
          }
      }
  }
  </code></pre>
  
  <p>However hen I did something like this</p>
  
  <pre><code>&lt;body onload="Background()"&gt;&lt;/body&gt;
  </code></pre>
  
  <p>It doesn't seem to do anything, this might be a dumb thing to ask for help with but this is the first I did when I was learning JavaScript, I should say that I used jQuery for most of this.</p>