I wonder if there is a way to do this, because when I run the test, the fadeIn doesn't work. It appears that it is activated immediately when the tag image is in the document, but only when that image is completly downloaded it appears!
$(document).ready(function(){
$('a[name=view]').click(function(e){
e.preventDefault();
$('#load').show();
$('#img').append('<img src="media/1.jpg" id="loaded" width="600"/>');
$('#loaded').load(function(){
$('#load').delay(1000).fadeOut();
$('#img').delay(1000).fadeIn();
});
});
});
In this case the fadeIn works only if the image is loaded in less than 1 sec. I want that effect works in a image of 4 mb, for exemple, so, without delay, but another option.
Thank u all!! Sorry my english :3