Q:

Can I specify a delay before the browser raises "rollover" event?

I am working on an ASP.NET web application that is required to bring up a popup on a roolover.  I am using the "OnMouseOver" event and it works as expected.  The problem is that the event is on a "hair trigger"; even a casual passage of the mouse over the control brings up the popup (which then must be manually dismissed).  I want to add a delay so that a rapid pass over the control in question does not trigger the event.  Is there a way to set such a delay or is there a different event that I could use to get the same "trigger event on a slow rollover"? 

A:

One solution that comes to mind, there may be better ways though:

Make the onmouseover call the function via a setTimeout delay
Inside the function, check the mouse is actually over that element.

You could also use an onmouseout to clear the setTimeout, but then you'd have to store a reference to the timer in a global variable to get at it again.

