Adding javascript to image

g0d

Joined: 2005-03-12
Posts: 22
Posted: Sun, 2005-08-28 14:36

in photo.tpl how can i add a javascript to the image tag
{g->image id="%ID%" item=$theme.item image=$image fallback=$smarty.capture.fallback class="%CLASS%"}

i want to add a "OnClick" javascript to this image, how can i do that ?

<TYPE YOUR MESSAGE HERE, ENTER SYSTEM DETAILS BELOW>
<Please check the G2 FAQ (sticky topic in this forum) before posting!>
----

Gallery URL (optional):
Gallery version:
Webserver (with version):
Datatabase (with version):
PHP version (eg 4.2.1):
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system:
Web browser/version:
G1 version (for migration bugs):