display photos w/ jquery externally

thobthob Registered Users Posts: 7 Beginner grinner
Hi,

I like to display keyword-based photos on a website by using jquery. It works wonderful with Flickr and I wonder how to get similar results with SmugMug.
Here is what I use with Flickr (jquery is already loaded)

<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?tags=gruner+veltliner&s=int&format=json&jsoncallback=?", function(data) {
var target = "#flickr-div";
for (i = 0; i <= 8; i = i + 1) {
var pic = data.items;
var liNumber = i + 1;
$(target).append("<a title='" + pic.title + "' href='" + pic.link + "'><img src='" + pic.media.m.replace("_m.jpg", "_s.jpg") + "' /></a>");
}
});
});
</script>

Here is the webpage, it's a monitoring page for "Grüner Veltliner" the famous Austrian grape variety (Flickr already integrated)=> http://burg.cx/pages/gruner-veltliner-online

How would I do this with SmugMug?

Comments

Sign In or Register to comment.