[ka-Map-users] kaXmlOverlay and ONMOUSEOVER()

Brent Pedersen bpederse at gmail.com
Fri Mar 3 10:42:12 EST 2006


hi, not sure about the workings of kaXML, but you probably need
this.onmouseover = function(){ alert(pid) }
or  maybe
this.div.onmouseover = ...
-brent

On 3/3/06, Sepehr Sadeghi <sadegs at alum.rpi.edu> wrote:
>
> Hello All,
> I am trying to implement a way that when you mouseover a kaXmlPoint, it
> will display a "tooltip" or "callout".
> Typically you could could add a ONMOUSEOVER() in the html image tag, but
> since this is a javascript object its not straightforward.
>
> I tried adding a
> * this.onmouseover(alert(pid));*
> inside the *function kaXmlPoint(pid, xml_overlay) {*      in the
> kaXmlOverlay.js file. That didn't work as expected!
>
> Does anyone have any suggestions?
>
> The other ways I was thinking of handling it was;
>  - on MOUSEMOVE() , compare mouse coords to each point's coords (not
> efficient)
>  - create a new event handler (KA_POINT_OVER); (not sure how that would
> work)
>
>
> Thanks
> -Sepehr
>
> --
>
>
>
> ..:: Sepehr Sadeghi          ::..
> ..:: sadegs at alum.rpi.edu  ::..
>
>
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20060303/36bbdc03/attachment.html


More information about the ka-Map-users mailing list