$.post("service.php", { GetStartpageImages : true },function(data) {
$.each(data,function(i, value){
var path = "uploads/thumb_" + value.Filename;
$('.startpage-images').append(
'<div class="imagewrapper clearfix">' +
'<a class="imagelink" href="?p=photo&id=' + value.ID + '">' +
'<img src="'+ path +'"/></a>' +
'<div class="imageinfo alpha70">'+ value.UploadTimestamp +'</div>' +
'</a>' +
'</div>');
});
});
如何在加載後顯示它們? $(window).load..
沒有爲我工作。由於等待使用ajax加載的圖像
謝謝,但我不知道有什麼區別:/ http://83.254.112.18/fotosida/ – Johan 2011-12-15 23:12:42