Yes, that probably could be done with a bit of modification of the lightbox script, probably more than just a little bit. However, I see no reason to. If you want lightbox activated onclick of an image, you may do this:
HTML Code:
<a href="some.jpg" rel="lightbox" title="Some Picture"><img
src="some_thumb.jpg" style="border:none;"></a>
Incidentally, if you happen to have an image map, lightbox can initialize on an area tag as well:
HTML Code:
<area rel="lightbox" shape="rect" coords="0, 22, 30, 60" href="some.jpg" title="Some Picture">
So an href link is not required, but an href link or an href area tag is.
This is actually an accessibility feature for search engines indexing your site, as well as for users who have javascript disabled.
Bookmarks