View Full Version : Picasa Web Album Images

12-29-2011, 05:46 PM
Hi all,

I found a small code that displays (x) amount of thumbnails from the latest uploads to my Picasa Web Album. The thumbnails themselves are links which bring you to the image in the Web Album. What I would like to do instead, is have it link directly to the image so that I can have the thumbnails open the image in a lightbox or something.

Here is the code. The red text is what makes the thumbs hyperlinks.

<script src="http://bloggerbuster-tools.googlecode.com/files/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$j = jQuery.noConflict();
var thumbCount = 16;
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").wrap("<a href=" + pic.link[1].href + " target='_blank'>");
<div id="picasaStream"></div>

Thanks for the help!

01-03-2012, 05:43 PM
Any help is still needed and appreciated!