Picasa Script (2 posts)

  1. murrayac
    Posted 6 years ago #

    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.

                		<script type="text/javascript">
    				        $j = jQuery.noConflict();
    				                  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");
        				<div id="picasaStream"></div>
  2. murrayac
    Posted 6 years ago #

    bump thanks

Topic Closed

This topic has been closed to new replies.

About this Topic