Schaut also so aus:
<a onclick="clickPic(this, 'http://example.org/example.jpg');" href="javascript:void(0);"> ... </a>
Warum nicht einfach:
<a onclick="clickPic(this, this.href);return false;" href="http://example.org/example.jpg"> ... </a>
Struppi.
--
Javascript ist toll (Perl auch!)
Javascript ist toll (Perl auch!)