473,396 Members | 1,786 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

onmouseover only fires on top layer

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
1 1502
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Eqbal Z | last post by:
Hi, I have the following code, and onmouseover/onmouseout etc. does not work in netscape 4.7. <div id="divUpControl"><a href="javascript:void(0);" onMouseOver="PerformScroll(-7);"...
4
by: laurie | last post by:
Hi. I have a DIV section that has many thumbnail images inside it. I have a DIV so all images can fit in a row and the horizontal scroll bar is used to move the thumbnails from left to right. ...
7
by: Samir | last post by:
I would like to get a little window (101x73) to appear on onmouseover and go away onmouseout. the onclick works. <html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta...
5
by: Jake | last post by:
What would be the correct syntax for setting the z-index of a layer OnMouseOver? I have a mouseover action on a visible layer which displays a popup info layer but it gets displayed behind other...
12
by: Epetruk | last post by:
Hi all, I want a page where the contents of a table cell are replaced with an image when the mouse moves over the cell, and the text is restored when the mouse moves out. Here's the html for the...
2
by: Justin Rowe | last post by:
I'm attempting to design a site with alot of dynamic content and intractability, however I've hit a snag when it comes to the function of the onMouseOver and onMouseOut events. Using a bit of code...
1
by: james | last post by:
OK, I have the following javascript functions: var TimerID = null; function onMouseOverHandler(oPopup) { if (TimerID) { clearTimeout(TimerID); } TimerID = setTimeout(" + oPopup + ", 1500);...
5
by: Sabbaath | last post by:
First off, I've pretty much convinced myself that the issue is that there are onmouseover events inside the div that contains an onmouseover event on it... I wrote the message below first. This was...
1
by: aotash | last post by:
This javascript shows and hides description (like alt in image tag). It works in IE but not in Mozilla, what is wrong please help: <SCRIPT LANGUAGE="JavaScript"> // ############## SIMPLE...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.