Posted By

jessnoonyes on 09/03/08


Tagged

javascript feed html sidebar flickr images


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

wizard04
basicmagic
ajfischler


Feed Flickr Photos to Website


 / Published in: JavaScript
 

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

Quick and easy way to feed flickr images into your website

  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>

Report this snippet  

You need to login to post a comment.