Support » Plugins and Hacks » Picasa Script

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.

                		<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>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Picasa Script’ is closed to new replies.
Skip to toolbar