And what is the general problem with this code? Does not work
srcs = [ "upload/iphone.png", "upload/screen.png" ] ### setInterval( function() { $('.image1').fadeOut(300, function() { $(this).attr('src',srcs[Math.floor(Math.random()*srcs.length)];).bind('onreadystatechange load', function() { if (this.complete) $(this).fadeIn(300); }); }); }), 5000);