[jQuery] Fading images with jQuery
Hi,
I would like to fade 4 images with jQuery, 1.jpg, 2.jpg. 3.jpg. and
4.jpg
I have the following code, but no luck yet :(
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
for(i=1; i<=4; i++) {
$("#app").html("<img id='yass"+i+"' src='"+i+".jpg'>")
$("#app").fadeIn("slow");
$("#app").fadeOut("slow");
}
});
</script>