jQuery-FancyBox


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.