Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function(){
- // Paste your Flickr API key here (see the tutorial on how to generate one)
- var apiKey = 'herskalAPIeninn';
- // Creating a flickr slider. This is
- // how you would probably use the plugin.
- $('#flickrSlider').jqFlick({
- photosetID: '72157632597356421',
- width:640,
- height:400,
- captions:false,
- autoAdvance:true,
- apiKey:apiKey
- });
- // Creating different flickr sliders,
- // depending on the select element value.
- $('select').change(function(){
- var options = {};
- switch(this.value){
- case '1':
- options = {
- photosetID: '72157632597356421',
- width:640,
- height:400,
- captions:true,
- autoAdvance:true,
- apiKey:apiKey
- };
- break;
- case '2':
- options = {
- photosetID:'72157632597356421',
- width:500,
- height:500,
- captions:true,
- autoAdvance:true,
- apiKey:apiKey
- };
- break;
- case '3':
- options = {
- photosetID:'72157632597356421',
- width:200,
- height:150,
- apiKey:apiKey
- }
- }
- $('#flickrSlider').jqFlick(options);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement