WordPress.org

Ready to get started?Download WordPress

Forums

Picasa Script (2 posts)

  1. murrayac
    Member
    Posted 4 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.

    <div>
                		<script type="text/javascript">
    				        $j = jQuery.noConflict();
    				        $j(document).ready(function(){
    				        $j.getJSON("http://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>
  2. murrayac
    Member
    Posted 4 years ago #

    bump thanks

Topic Closed

This topic has been closed to new replies.

About this Topic