Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- /* <![CDATA[ */
- jQuery(document).ready(function($){
- var fb_timeout = null;
- var fb_opts = { 'overlayShow' : true, 'centerOnScroll' : true, 'showCloseButton' : true, 'showNavArrows' : true, 'onCleanup' : function() { if(fb_timeout) { window.clearTimeout(fb_timeout); fb_timeout = null; } } };
- /* IMG */
- var fb_IMG_select = 'a[href$=".jpg"]:not(.nofancybox),a[href$=".JPG"]:not(.nofancybox),a[href$=".gif"]:not(.nofancybox),a[href$=".GIF"]:not(.nofancybox),a[href$=".png"]:not(.nofancybox),a[href$=".PNG"]:not(.nofancybox)';
- $(fb_IMG_select).addClass('fancybox').attr('rel', 'gallery');
- $('a.fancybox, area.fancybox').fancybox( $.extend({}, fb_opts, { 'transitionIn' : 'elastic', 'easingIn' : 'easeOutBack', 'transitionOut' : 'elastic', 'easingOut' : 'easeInBack', 'opacity' : false, 'titleShow' : true, 'titleFromAlt' : true }) );
- /* Auto-click */
- $('#fancybox-auto').trigger('click');
- });
- /* ]]> */
- </script>
- <style type="text/css">.fancybox-hidden{display:none}</style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement