Results 1 to 6 of 6
Thread: Problem with events
Jan 8, 2003, 16:16 #1
Problem with events
I believe this should be an easy one.
I have 2 positioned layers one on top of the other.
I want an event to take place when the mouse is over the bottom layer, even if that means that the mouse will be over the top layer also.
If i use something like:
<div id="bottom" onmouseover="al()">This is my bottom div</div>
But if i remove the inline event handler, and i try to capture the event in a script in the head of my document, it doesn't work anymore. It works only if the mouse is DIRECTLY ontop of the bottom div, but if the top div is "between" the bottom div and the mouse pointer it doesn't work.
Here are the examples:
http://184.108.40.206/eventsproblem1.html this works
http://220.127.116.11/eventsproblem2.html doesn't work
In the second page, to activate the event you have to point directly on the bottom div (yellow area), otherwise it doesn't work.