Feed Flickr Photos to Website


/ Published in: JavaScript
Save to your folder(s)

Quick and easy way to feed flickr images into your website


Copy this code and paste it in your HTML
  1. <script type="text/javascript">
  2. function jsonFlickrFeed(o)
  3. {
  4. var i = 0;
  5. while(o.items[i])
  6. {
  7. document.write('<img src="' + o.items[i].media.m + '" alt="' + o.items[i].title +'">');
  8. i++;
  9. }
  10. }
  11. </script>
  12. <script src="http://api.flickr.com/services/feeds/photos_public.gne?id=28203925@N08&lang=en-us&format=json" type="text/javascript"></script>

URL: http://www.kirupa.com/forum/showthread.php?t=303693

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.