jQuery를 사용하여 이미지를로드하고 페이드를 시도하는 중입니다. 문제는 하나의 이미지 만로드한다는 것입니다. 이 문제를 어떻게 해결할 수 있습니까?jQuery에서 페이드 및 루프를 사용할 수 없습니다.
$('input[id*="friend_bar"]').click(function() {
FB.ui({
method: 'apprequests',
message: 'Try this awesome application?',
exclude_ids: '<?php echo $exclude_ids ?>'
}, function (response) {
if (response) {
$.post('invite_suck.php', {
'response': response.to
}, function (data) {
for (var index in response.to) {
var ID = response.to[index];
$("#friend_bar").first().fadeOut(function() {
$(this).load(function() {
$(this).fadeIn();
});
$(this).replaceWith('<div align=\"center\"> <input type=\"image\" src=\"https://graph.facebook.com/' + ID + '/picture/?type=square\" height=\"50\" width=\"50\" align=\"center\">').attr("id", "friend");
});
}
});
}
else {
alert('Request was not sent');
}
});
왜이 질문은 [: 페이스 북 태그] 태그입니까? –