Hi All,
I'm trying to add support for onmouseover and onmouseout to the thumbnails as follows in layouts/squares/templates/albumBody.tpl:
{g->image item=$child image=$child.thumbnail class="img-thumbnail-overlay" onmouseover="thumbnail_show(this);" onmouseout="thumbnail_hide(this);"}
It seems that in: modules/core/classes/GalleryDerivativeImage.class only the 'class' attribute is supported even though I have modified the 'return' statement to include:
<snip>
return sprintf('<img%s%s%s src="%s"%s%s%s%s alt="%s" longdesc="%s"/>', $params['class'] ? ' class="' . $params['class'] . '"' : '',
$params['onmouseover'] ? ' onmouseover="' . $params['onmouseover'] . '"' : '',
$params['onmouseout'] ? ' onmouseout="' . $params['onmouseout'] . '"' : '',
$src,
$sizeStr,
$nameStr,
</snip>
I'm using gallery2 beta 1, BTW.
Thanks in advance!
Paul