jQuery - How to loop the function?
<p>I want to make a basic fadein fadeout slideshow.I only make it auto run once.
How to make it have a loop??</p>

<p>html</p>

<pre><code>&lt;img src="image1.jpg" class="img1"&gt;
&lt;img src="image2.jpg" class="img2"&gt;
</code></pre>

<p>js</p>

<pre><code>$(document).ready(function () {
function playslider(){
        $('.img1').fadeIn(800).delay(800).fadeOut(800);
        $('.img2').delay(1600).fadeIn(800).delay(800).fadeOut(800);
}   
playslider();
});
</code></pre>
