<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>
<div id="flickr"></div>
<script type="text/javascript">
$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=?",
{
format: "json"
},
function(data) {
$.each(data.items, function(i,item){
$("<img/>").attr("src", item.media.m).appendTo("#flickr");
if ( i == 5 ) return false;
});
}
);
</script>