We Recommend

Pro JavaScript Techniques Pro JavaScript Techniques
Pro JavaScript Techniques is the ultimate JavaScript book for the modern web developer. It provides everything you need to know about modern JavaScript, and shows what JavaScript can do for your web sites. This book doesn't waste any time looking at things you already know, like basic syntax and structures.


Posted By

jessnoonyes on 09/03/08


Tagged

javascript feed html sidebar flickr images


Versions (?)


Who likes this?

2 people have marked this snippet as a favorite

wizard04
basicmagic


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.