I'm not familiar with that particular plugin, but can't you simply attach your own click
event handler?
Given this markup (based on the demo at the plugin's GitHub repo):
<div>
<a class="demo" href="path/to/some/url">
<img src="path/to/image" width="191" height="240" />
</a>
<img class="demo" src="path/to/image" width="191" height="240" />
</div>
You can attach a click handler like this:
$(function(){
$('a.demo').on('click', function(e){
// prevent the link from going anywhere (if that's what you want)
e.preventDefault();
// do something else...
alert('The Loupe link was clicked!');
});
});
Edited to add that if you're working with an image map, you can simply attach a click event handler to the <area>
elements, something like this:
$('area').on('click', function(e){
// stuff here
});