Help with modifying my custom JQuery slider to allow continous scrolling
<p>You can view my custom slider here: <a href="http://www.awaismuzaffar.com/examples/index.html" rel="nofollow">http://www.awaismuzaffar.com/examples/index.html</a></p>

<p>And below is the JQuery code for it:</p>

<pre><code> $(document).ready(function() {

        // Slider Function

        var slideWidth =  $('div.slide').width();

        // Set the left position of each div element

        $('div.slide').each(function(index){
            $(this).css('left', index * slideWidth ); // Multiply each div element by the index(0, 1 etc) so each div is placed inline
        });

        // Next step is to animate the div elements

        var clickCount = 1;
        var slideCount = $('div.slide').length;

        // Set the previous button to hide when loading with the first slide

        if(clickCount == 1){
            $('a#previous-button').css('background-color', '#cccccc');
        }

        $('a#next-button').click(function() {
           if(clickCount &lt; slideCount) {
                $('div.slide').animate({"left":"-=" + slideWidth}, 'slow');
                $('a#previous-button').css('background-color', '#ffffff');
                clickCount++;
            }
            if(clickCount == slideCount) {
                $('a#next-button').css('background-color', '#cccccc'); // Hide or grey out button
            }
        });

        $('a#previous-button').click(function() {
            if(clickCount &gt; 1){
                $('div.slide').animate({"left":"+=" + slideWidth}, 'slow');
                $('a#next-button').css('background-color', '#ffffff');
                clickCount--;
            }
            if(clickCount == 1){
                $('a#previous-button').css('background-color', '#cccccc'); // Hide or grey out button
            }
        });
    });
</code></pre>

<p>I am trying to modify this slider to allow continous scrolling.</p>

<p>I am not sure exactly how to achieve this, I am assuming I need to use append, but I am not sure how to make use of it.</p>

<p>Thanks.</p>
