Top.Mail.Ru
December 9th, 2004 - Java developers — LiveJournal
? ?

Java developers

December 9th, 2004
 

01:54 am - Image101100010011111

Imageutil's post brought something to my mind =)
is there an easy way to get if the mouse is 'hovering' over an object?
besides perhaps doing a timer on mouseover and then checking if mouse is still over when the timer runs out =/ (and killing timer + 'event' if mouse exits i suppose)

it came to mind because i wrote an applet a couple months back with some simple dragging and dropping and i realized it would be nice to have simple 'popup' on object:hover but i couldn't think of a decent way to do it (the timer bit above just seems so nasty and google results were rather fruitless) so if anyones done it and has sample code/pseudocode it'd be nice for future reference
Powered by LiveJournal.com
Image