The usual way to assign color box functionality on a link is like this:
$(\"a.colorbox\").colorbox({ transition: \"elastic\" });
Newly added
You could also try this:
$('.colorbox').live('click',function(e){ e.preventDefault(); $(this).colorbox({open:true}); });
I think it's a little cleaner then using the fn command.
fn