[Chameleon] Script called when hovering over any chameleon
element for detailed online help
Paul Spencer
pspencer at dmsolutions.ca
Tue Jan 24 12:48:38 EST 2006
Carlo, the problem is that the images trap onmouseover events to
handle the various button states. What might be a useful extension
to chameleon would be for button-based widgets to support attributes
for mouseover and mouseout. The function calls could then be
integrated into the regular processing of the image swapping code and
everything would work normally. I don't really see a reliable way to
fix this without extending the chameleon core code though.
All the modifications for this could be made to Button.php and
cwc_button.js. If you attempt it and it works, please consider
contributing it.
Cheers
Paul
On 24-Jan-06, at 9:36 AM, Carlo Tronnberg wrote:
> Hello all,
>
> I want to call a javascript when hovering over any chameleon
> element. The actual purpose ios to pop up a detailed help of the
> different features for new users after selecting a help button.
>
> I managed to make it work under Firefox, by surrounding the each
> element with either:
>
> <!-- ZOOMIN -->
> <td><div onmouseover="doTooltip(event, zoomInMsgTips)"
> onmouseout="hideTip()"><cwc2 type="ZoomIn" visible="true"
> imagetip="Zoom In" image="icons/icon_zoomin.png"
> toolset="Navigation" styleresource="NavButtons">
> <image state="normal"/>
> <image state="hover"/>
> <image state="selected"/>
> </cwc2></div></td>
> or:
> <!-- ZOOMOUT -->
> <td onmouseover="doTooltip(event, zoomOutMsgTips)"
> onmouseout="hideTip()"><cwc2 type="ZoomOut" visible="true"
> imagetip="Zoom Out" image="icons/icon_zoomout.png"
> toolset="Navigation" styleresource="NavButtons">
> <image state="normal"/>
> <image state="hover"/>
> <image state="selected"/>
> </cwc2></td>
>
> Unfortunately this does not work properly in IE: The help layer
> pops up are it should only if the mouse pointer is on for example a
> navigation button BUT NOT on the buttons image. In other words,
> only when I carefully position the pointer on the border.
>
> Any idea how to solve this?
>
> Cheers,
>
> Carlo
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
+-----------------------------------------------------------------+
|Paul Spencer pspencer at dmsolutions.ca |
+-----------------------------------------------------------------+
|Applications & Software Development |
|DM Solutions Group Inc http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+
More information about the Chameleon
mailing list