im trying out facybox and i need to use a div instead of a hyper link.

for example, i need to change it from:

<a href="mypic.jpg" class=fancybox">click to see picture</a>

to

<div onclick="ShowFancyBox();" class=fancybox">click to see picture</div>