Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("a.fancy").livequery(function() {
- $(this).fancybox({
- 'overlayColor': fancyoverlay,
- 'overlayOpacity': fancyopacity,
- 'transitionIn': 'fade',
- 'transitionOut': 'fade',
- 'speedIn': 600,
- 'speedOut': 200,
- 'href': $(this).attr('href'),
- 'type': 'image',
- 'paginatenext': function() {
- if ($('div#pagination .next a').length) {
- window.location.href = $('div#pagination .next a').attr('href') + '&autoload=first';
- } else {
- alert ("That's it for now!");
- }
- },
- 'paginateprev': function() {
- if ($('div#pagination .previous a').length) {
- window.location.href = $('div#pagination .previous a').attr('href') + '&autoload=last';
- } else {
- alert ("That's it for now!");
- }
- },
- });
- return false;
- });
Add Comment
Please, Sign In to add comment