title: Javascript Marquee to replace <marquee> tags
body: <p>I'm hopeless at Javascript. This is what I have:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      function beginrefresh(){
  
          //set the id of the target object
          var marquee = document.getElementById("marquee_text");
  
          if(marquee.scrollLeft &gt;= marquee.scrollWidth - parseInt(marquee.style.width)) {
              marquee.scrollLeft = 0;
          }
  
          marquee.scrollLeft += 1;
  
          // set the delay (ms), bigger delay, slower movement
          setTimeout("beginrefresh()", 10);
  
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>It scrolls to the left but I need it to repeat relatively seamlessly. At the moment it just jumps back to the beginning. It might not be possible the way I've done it, if not, anyone have a better method?</p>