Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

detect mouse over TWO images (image OVER image)

Status
Not open for further replies.

chetFinster

Programmer
Joined
Mar 3, 2005
Messages
6
Location
US
What I'm trying to do is create a better drag and drop.

Thus far I have the image moving with the mouse (image linked to clientX, Y), no big deal.

The problem is, using the IE ondragover, drageend, (or even onmouseup) events, the event doesn't register eith the target. It doesn't register the event as the mouse is actually OVER the DRAGGED IMAGE which are BOTH over the target image.

What I need is the target image to register the event of the dragenter/dragend when the mouse is let up while both it (the mouse) and the dragged image are over the target image.

I was hoping for some type of event being able to be passed to the "covered" image object.

Thanks in advance - learning alot in the process of losing my hair.

 

Are you correctly setting return values from the events earlier events?

I found reading about drag / drop on MSDN quote informative... It gave examples of when to set window.event.returnValue, and to what.

I have no idea if it will help or not, but have a look at my FAQ on dynamically reordering table rows here:

faq216-5190

Hope this helps,
Dan


[tt]D'ya think I got where I am today because I dress like Peter Pan here?[/tt]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top