Raphael - event when mouse near element
问题 I would like to make a mouse event that triggers when the mouse is near a Raphael element. (So I guess I would need to know the x,y position of the mouse. Any ideas on how this might be possible? Thank you! 回答1: You could, as you suggest in the question, track the mouse position and compare it with the position of the element. But that's doing things the hard way. Far easier would be to exploit the mouseover or mouseenter events. Obviously mouseenter and mouseover are only triggered when the