View Full Version : Disable "onmouseover" after it's been triggered

07-09-2007, 10:31 PM
I have an image that has an onmouseover event. Is there a way to disable the onmouseover until the event has finished?

07-09-2007, 11:13 PM
One approach is to use a global variable to indicate the state of the event. For example..if it is equal to 1, the event is in process and if it is equal to 0, the event has not started...or has finished processing.

a second approach is to remove the event handler from the image/button/link. A good idea is to also change the style of the image/link/button to indicate that some sort of processing is going on in the back ground...or the button/image/link is disabled until the event is completed.