Advertisement
Guest User

Untitled

a guest
Mar 4th, 2013
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. <script type="text/javascript">
  2. /* <![CDATA[ */
  3. jQuery(document).ready(function($){
  4. var fb_timeout = null;
  5. var fb_opts = { 'overlayShow' : true, 'centerOnScroll' : true, 'showCloseButton' : true, 'showNavArrows' : true, 'onCleanup' : function() { if(fb_timeout) { window.clearTimeout(fb_timeout); fb_timeout = null; } } };
  6. /* IMG */
  7. 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)';
  8. $(fb_IMG_select).addClass('fancybox').attr('rel', 'gallery');
  9. $('a.fancybox, area.fancybox').fancybox( $.extend({}, fb_opts, { 'transitionIn' : 'elastic', 'easingIn' : 'easeOutBack', 'transitionOut' : 'elastic', 'easingOut' : 'easeInBack', 'opacity' : false, 'titleShow' : true, 'titleFromAlt' : true }) );
  10. /* Auto-click */
  11. $('#fancybox-auto').trigger('click');
  12. });
  13. /* ]]> */
  14. </script>
  15. <style type="text/css">.fancybox-hidden{display:none}</style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement