$( '#send' ).click( function () { |
$.ajax({ |
type : "GET" , |
url : "http://api.flickr.com/services/feeds/photos_public.gne?tags=car&tagmode=any&format=json&jsoncallback=?" , |
dataType : "jsonp" , |
success : function (data) { |
$.each(data.items, function (i, item) { |
$( "<img class='para'/> " ).attr( "src" , item.media.m).appendTo( "#resText" ); |
if (i == 3) { |
return false ; |
} |
}); |
} |
}); |
}); |