PDA

View Full Version : onmouseover while onmousedown


tspratt
01-19-2004, 05:25 PM
I need to highlight a drop target (apply a state) when the user mouses over it with the left mouse button depressed.

Is there an event or trick, or is this just a case where I need to set a global flag on mousedown/up and handle the conditional in the onmousever event?

onmousedragin is sort of close, but my drag does not start in the view it ends in.

antun
01-19-2004, 05:29 PM
I've run into this before - you have the right idea; use a flag variable to keep track of which state to be in.

-Antun

tspratt
01-19-2004, 05:30 PM
So my flag idea won't work.

Back to the drawing board.

tspratt
01-19-2004, 05:33 PM
and do the x and y thing.