By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,077 Members | 1,237 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,077 IT Pros & Developers. It's quick & easy.

onmouseover only fires on top layer

P: n/a
I'm trying to drag one layer over an image on the layer below it - that
part works fine - and have the image fire its onmouseover event (e.g.,
an alert) when I drag the top layer over it. It appears that events
only fire for the top layer, so I never get that alert. Is there a way
to make the onmouseover event happen no matter what the element's
z-index is?

Jun 8 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
wi**********@hotmail.com wrote:
I'm trying to drag one layer over an image on the layer below it - that
part works fine - and have the image fire its onmouseover event (e.g.,
an alert) when I drag the top layer over it. It appears that events
only fire for the top layer, so I never get that alert. Is there a way
to make the onmouseover event happen no matter what the element's
z-index is?


I don't believe this is possible. But you could create a transparent
GIF with the highest z-index above your current top layer, and then add
the event to that image. Alternatively, you could set an identical
onmouseover-event for both images (that is, if the one fully overlaps
the second).

Hope this helps,

--
Bart

Jun 9 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.