One sloution would be to use getPageX
and compare the returned value t the getPageX
ofthe layer holding the table
(assuming that the table is right up against
the edge of the layer)
----- Original Message -----
From: "Christof Pohl" <[EMAIL PROTECTED]>
To: "[DynAPI Help] Mailingliste" <[EMAIL PROTECTED]>
Sent: Tuesday, February 27, 2001 3:40 AM
Subject: [Dynapi-Help] Strange results from MouseEvent.getX() in IE5.5 SP1 -
Win2K
> Hi everybody!
>
>
> I have a blind table which formats some content and I want to use a
> mouseover-effect. In contrast to defining a DynLayer for each <td></td>
> element of the table, I put the whole table into one single DynLayer and
add
> an "onmousemove" event listener to it. By evaluating the MouseEvent.getX()
> result, I want to display corresponding menus somewhere else on the page.
>
> This works fine in NS4.7, but in IE5.5 SP1 (Platform: Win2K), e.getX()
> always returns x-coordinates relative to the table cells! So every
> <td>...</td> entry starts with zero and goes up to the td's width. So i.e.
> e.getX()>=150 is never true for a 400px wide table containing 4 cells with
> 100px width. :-\ By the way, the same is true for images inserted with the
> <img> tag.
>
> Does anybody know anything about this? :-)
>
>
> Thanks in advance,
>
> Christof
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
---
Outgoing mail is certified Virus Free by AVG Free Edition
Download at: http://www.grisoft.com/html/us_index.cfm
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.231 / Virus Database: 112 - Release Date: 2/12/01
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help