Well, I would do that then and then do something like:
Code:
$('#loadarea a').fancybox();
It depends though on how that version of FancyBox works and what you're after. If it examines the link each time it's clicked, it will pick up on the changing URL. But the best thing might be to have something like:
Code:
$('#loadarea a').live('click', function(e){
$(activetrigger).trigger('click');
e.preventDefault();
});
Finding the active trigger is the trick, I'll have a look at the thumbnail code. I'm sure it's available as something. This assumes you want the same fancybox triggered as for clicking on the thumbnail would get you though - do you?
Bookmarks