how to fadeIn and fadeOut html()
<p>i have this 23 jpeg images but i couldnt do the proper animation like fadein fadeout
heres my code:</p>

<pre><code>var srcStr1 = "../img/portrait/anne/",
                srcStr2 = ".jpg",
                counter = 1,
                pos =0,
                x;

            var anne = $('#anne').attr('rel');

                if(typeof(anne) == "undefined" || anne.length &lt; 1) {
                    x = 1;  
                } else if (anne &lt; 23 &amp;&amp; anne != 23) {
                    x = parseInt(anne) + 1; 
                } else {
                    x = 1;  
                }

            $('div').html('&lt;img id="anne" src="' + srcStr1 + x + srcStr2 + '" rel="' + x + '"/&gt;');
</code></pre>
