That's a common request. Which HTML page? Often it's the one that clicking on the larger image would open. If so add this script to the head of the page:
Code:
<script type="text/javascript">
jQuery(function($){
var re = /:(?!\/\/)/;
$('a[rel=enlargeimage]').click(function(e){
var opts = {}, rev = this.rev.split(','), i = rev.length - 1;
for (i; i > -1; --i){
rev[i] = rev[i].split(re);
opts[$.trim(rev[i][0])] = $.trim(rev[i][1]);
if(opts.link){
e.preventDefault();
location.href = opts.link;
return;
}
}
});
});
</script>
Once you have that, use this syntax for the trigger:
Code:
<a title="Some long title that you don't want to be a tooltip" href="whatever.jpg" rel="enlargeimage"
rev="targetdiv:loadarea,hidetitle:yes,link:whatever.html">Trigger Text or Image Tag</a>
Replace whatever.html with the address to the page you want it to link to.
Bookmarks