Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.swipebox( [
- { href:'big/image1.jpg', title:'My Caption' },
- { href:'big/image2.jpg', title:'My Second Caption' }
- ] );
- $.swipebox( [
- $.each( data, function(index, val){
- { href:data[index].image_link, title:data[index].image_title }
- } )
- ] );
- $.swipebox($.map(data, function (val, index) {
- return {
- href: val.image_link,
- title: val.image_title
- }
- }));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement