Posted By

tscheckenbach on 03/24/10


Tagged

jquery Lightbox fancybox


Versions (?)

jQuery-FancyBox


 / Published in: jQuery
 

  1. var thumbnails = 'a:has(img)[href$=".bmp"],a:has(img)[href$=".gif"],a:has(img)[href$=".jpg"],a:has(img)[href$=".jpeg"],a:has(img)[href$=".png"],a:has(img)[href$=".BMP"],a:has(img)[href$=".GIF"],a:has(img)[href$=".JPG"],a:has(img)[href$=".JPEG"],a:has(img)[href$=".PNG"]';
  2. $s(thumbnails).addClass("thickbox").attr("rel","fancybox");
  3. $s("a.thickbox").fancybox({
  4. 'titleShow' : true,
  5. 'transitionIn' : 'elastic',
  6. 'transitionOut' : 'elastic'
  7. })

Report this snippet  

You need to login to post a comment.