Gallery as image selector
-
Hi,
This might be an atypical use case but here goes…
I need to capture the click event for thumbnails so that I can grab the name of the thumbnail and pass it along. I’d like to prevent the default behavior which is to display the full size image.
Is there a hook? By the names of the hooks it did not appear so.
With jQuery I can use img as selector and stop the default event handling to do my own thing. Unfortunately there appears to be no more specific selector to use…
<img title="cheetah" alt="cheetah" src="http://mist.dynu.com:8888/ludicrisp/wp-content/gallery/animals/thumbs/thumbs_cheetah.jpg" width="240" height="160" style="max-width:100%;">Thanks!
The topic ‘Gallery as image selector’ is closed to new replies.