Jquery/Javascript looping div scroller
<p>I'm trying to make 5 divs that loop in and out forever. The divs will have classes "text1" "text2" "text3" etc. Is there anything wrong with this code? It doesn't seem to work.</p>

<pre><code>$(document).ready(function(){
    var num = 1
    while(num =&lt; 5) {
        $('.text' + num).fadeIn().delay(4000).fadeOut()
        var num = num ++i

        if(num == 5) {
            var num = 1
        }
        else{
            var num = num
        }
    }
});
</code></pre>
