title: Simple Javascript or jQuery clearInterval problem
body: <p>I have gone through most of the code here and tried several ways to get clearInterval to work and for some reason it is just not working, although it is a basic and simple problem.</p>
  
  <p>Here is the code and I want to know WHY it isn't working, not just get the code done for me.</p>
  
  <pre><code>var myTimer;
  
  function startTimer() {
      myTimer = window.setInterval( function() {
          $('#randomImage').fadeTo('slow',0.0).addClass("changeBg_" + current);
          var current = Math.round(Math.random() * 4) + 1;
          $('#randomImage').fadeTo('slow',1.0).addClass("changeBg_" + current);
      }, 5000);
  };
  
  function stopTimer(){
      window.clearInterval(myTimer);
      $('#randomImage').fadeTo('slow',0.0);
  
  }
  </code></pre>
  
  <p>Thanks In Advance from a Newbie...</p>