html - Getting a jquery lightbox to pull the image out of a <img> tag -
on website using jquery plugin scrolls images automatically across page, fine. but if click image takes image source , want use lightbox feature incorporated it. problem jquery lightbox codes can find uses href tag image url, scroller uses img so; img src="img/img1.jpg" longdesc="img/img1.jpg" width="400" alt="image 1" / how can around this? first thing going need disable onclick behavior of image flow: http://finnrudolph.de/imageflow/documentation luckily available in image flow options. something onclick : $.noop next need make alterations lightbox. colorbox uses href attribute determine content display. not standard should able away href attribute on image element. give shot. <img src="img/img1.jpg" href="img/img1.jpg" width="400" alt="image 1" />