Picasa Script
-
Hello Guys,
I have integrated the following code/script into my website, which displays thumbnails from my Picasa account. Can someone please help modify the code to:
1. Display random images on each page load. At the moment it displays the latest images.
2. Reference the script to another location in my theme.
Thanks very much in advance for your help.
<div> <script type="text/javascript"> $j = jQuery.noConflict(); $j(document).ready(function(){ $j.getJSON("https://picasaweb.google.com/data/feed/base/user/extrememuz?kind=photo&thumbsize=72c&access=public&alt=json&callback=?", function(data){ var thumbCount = 9; var smallThumb = 0; var mediumThumb = 1; var largeThumb = 2; var picsCount = data.feed.entry.length - 1; for (var i = picsCount; i > picsCount - thumbCount; i--) { var pic = data.feed.entry[i]; $j("<img/>").attr("src", pic.media$group.media$thumbnail[smallThumb].url).attr("alt", pic.summary.$t).appendTo("#picasaStream"); } }); }); </script> <div id="picasaStream"></div> </div>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Picasa Script’ is closed to new replies.