Mouse Events in nested layers ? -
08-09-2004
, 05:11 AM
Hi !
I have the following situation:
<div id="base">
<div id="square"></div>
</div>
Now I want to move the 'square' layer within the area of the 'base' layer.
Therefore I'm catching the mouseevents and move the square layer based on
the coordinates of these events. But as soon as the square moves under the
mouse cursor the events are coming from the square layer and instead of 300
/ 300 I'm getting 0/0 .
Any idea ?
Regards,
Thorsten Hock
edv (AT) eurocamp (DOT) de |