Edit: Here is the new code:
编辑:这是新代码:
$("#normalcontent").hide("fast").load($this.attr("href") +" #normalcontent","",function(){
$(this).slideDown("normal");
$(this).find("img").each(function(){
if($(this).hasClass("large"))
{
var myThis=$(this);
myThis.css("display","none");
var img = new Image();
$(img).attr("src", "images/ajax-loader.gif");
$(img).css({
border:"none",
width:"16px",
height:"11px"
});
myThis.after(img);
myThis.load(function(){
$(img).remove();
myThis.fadeIn("normal");
})
.error(function(){
$(img).attr("src","images/errorIcon.png").css({
border:"none",
width:"14px",
height:"14px"
});
});
}
});
});