HighDots Forums  

Mouse Events in nested layers ?

alt.html.dhtml alt.html.dhtml


Discuss Mouse Events in nested layers ? in the alt.html.dhtml forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Thorsten Hock
 
Posts: n/a

Default 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



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.