Flickr Demo
The public flickr feed mashed together, using the flickr API, jQuery and JSON
$(document).ready(function() {
loadData();
});
function loadData()
{
$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?lang=en-us&format=json&jsoncallback=?",
function(data){
var maxImagesPerTOS = 30;
$.each(data.items, function(i,item){
$("<img class=\"photo\">")
.attr("src", item.media.m)
.appendTo("#images")
.wrap("<a href=\"" + item.link + "\" target=\"_blank\"></a>");
if ( i == maxImagesPerTOS )
{
return false;
}
});
});
}
Click on any picture to open in a new tab or window