/ Published in: jQuery

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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"]'; $s(thumbnails).addClass("thickbox").attr("rel","fancybox"); $s("a.thickbox").fancybox({ 'titleShow' : true, 'transitionIn' : 'elastic', 'transitionOut' : 'elastic' })
Comments
