title: How do I make this 'slider' javascript to simply rotate images infinitely?
body: <p>I'm trying to help out a friend who has a rotating pane on his homepage where the images don’t scroll on an infinite loop.  They scroll through and then roll back to the beginning and start again.</p>
  
  <p>Here is the Javascript snippet he provided:</p>
  
  <pre><code>$(function () {
      if ($('#customScroller').length != 0) { //check if we're on the right page
          var width = $('#slider a').length;
          $('#slider').width(width * 930); //give the slider the appropriate width
          var count = 0;
          initial slide position
  
          function slide() {
              if (count &lt; (width - 1)) { //we want to check if at end of the slider
                  count++;
              }
              else {
                  count = 0;
              }
              var toMove = 0;
              toMove = (-1 * (count * 930));
              $('#slider').animate({
                  left: toMove
              }, 1000, function () {
                  //complete
              });
          }
          var s = window.setInterval(slide, 8500);
      }
  });
  </code></pre>
  
  <p>How much work is it to convert it to simply cycle infinitely?</p>
  
  <p>EDIT:  Here is the site:  <a href="http://www.ralphshardwood.com" rel="nofollow">http://www.ralphshardwood.com</a></p>