Always wanted to show y0ur Flickr photos in a slideshow? Without requesting a Flickr API code? In this tutorial I will show you how to do that, by making use of the Awkward Showcase jQuery slideshow plugin and some jQuery code. Click on the demo button to watch the demo. If you don’t want to create your own slideshow by following this tutorial, you can also download the source files by clicking on the download button.
The first thing you have to do is downloading the jQuery library an dthe Awkward Showcase plugin. If you’re using WordPress, there’s a big chance you don’t have to include jQuery. You can just try it without including the jQuery library. If the slideshow isn’t working, you can always include the jQuery library anyway.
Include the jQuery library and Awkward plugin between the <head> tags:
<script type="text/javascript">
$(document).ready(function(){
// Our very special jQuery JSON fucntion call to Flickr, gets details
// of the most recent 20 images
function callback() {
$("#showcase").awShowcase({
width: 500,
height: 312,
auto: true,
interval: 5000,
continuous: true,
loading: true,
tooltip_width: 200,
tooltip_icon_width: 32,
tooltip_icon_height: 32,
tooltip_offsetx: 18,
tooltip_offsety: 0,
arrows: true,
buttons: false,
btn_numbers: false,
keybord_keys: false,
mousetrace: false,
pauseonover: false,
transition: 'hslide', /* vslide/hslide/fade */
transition_speed: 500,
show_caption: 'onload', /* onload/onhover/show */
thumbnails: true,
thumbnails_position: 'outside-first', /* outside-last/outside-first/inside-last/inside-first */
thumbnails_direction: 'vertical', /* vertical/horizontal */
thumbnails_slidex: 0 /* 0 = auto / 1 = slide one thumbnail / 2 = slide two thumbnails / etc. */
});
}
$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?id=66790267@N03&lang=en-us&format=json&jsoncallback=?", displayImages);
function displayImages(data){
// Start putting together the HTML string
var htmlString = "";
// Now start cycling through our array of Flickr photo details
$.each(data.items, function(i,item){
// I only want the ickle square thumbnails
var sourceSquare = (item.media.m).replace("_m.jpg", "_s.jpg");
var bigImage = (item.media.m).replace("_m.jpg", "_b.jpg");
// Here's where we piece together the HTML
htmlString += '<div><div>' + item.title + '</div>';
htmlString += '<a target="_blank" href="' + item.link + '"><img width="500px" src="' + bigImage + '" alt="' + item.title + '" /></a>';
htmlString += '<div>';
htmlString += '<img width="80px" src="' + sourceSquare + '" alt="' + item.title + '" />';
htmlString += '<div></div>';
htmlString += '</div></div>';
});
// Pop our HTML in the #images DIV
$('#showcase').html(htmlString);
// Close down the JSON function call
// now we are calling our own callback function
if(typeof(callback)==='function'){
callback.call(this);
}
}
});
</script>






Pingback: Real Estate Nicaragua
Pingback: profumi
Pingback: Article Writing Jobs
Pingback: spell casting
Pingback: water damage michigan, water damage repairs michigan, flood repair, leaking roof, sewer backup, water damage restoration michigan, michigan repairs, flooding,
Pingback: hier gehts direkt zur seite
Pingback: weiter zur seite
Pingback: hier klicken
Pingback: klicken
Pingback: vertaile vipit
Pingback: http://www.autoapproveclub.com
Pingback: remove stretch marks
Pingback: sftp software uses
Pingback: scavenger hunt ideas for teenagers
Pingback: scavenger hunt riddles
Pingback: how to get rid of blackheads
Pingback: check the site
Pingback: bingo card
Pingback: how to get your ex back
Pingback: learn internet marketing
Pingback: learn affiliate marketing
Pingback: eMarketSchool
Pingback: social media marketing
Pingback: emarket school
Pingback: penny stock list
Pingback: treasure hunt clues for kids
Pingback: treasure hunt clues
Pingback: hiroads
Pingback: Click Here
Pingback: Go to this link
Pingback: Go to this link
Pingback: seo vegas
Pingback: managed care organization
Pingback: seo las vegas
Pingback: low vitamin d
Pingback: Solar flare 2012
Pingback: GIMP Editor
Pingback: Software
Pingback: mujeres article
Pingback: Gabsterz2
Pingback: mujeres
Pingback: page
Pingback: http://www.disquedurinterne.net/
Pingback: rasoir electrique
Pingback: mini camescope hd
Pingback: http://www.friteusesanshuile.net/
Pingback: http://www.piscineautoportante.net/
Pingback: Immobilier Quimper
Pingback: blog
Pingback: url
Pingback: birdweed motion afterhand