onmouseover repeat

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey all,
i'm using the onmouseover event and i was wondering if there was a way to
repeat the function automatically why the mouse is over the control?

thanks,
rodchar
 
rodchar said:
hey all,
i'm using the onmouseover event and i was wondering if there was a way to
repeat the function automatically why the mouse is over the control?

thanks,
rodchar

No, there isn't.

You can use the window.setInterval method to start a method repeatedly.
Set a variable on onmouseover and clear it on onmouseout and check the
variable in the repeating function.
 
rodchar said:
i'm using the onmouseover event and i was wondering if there was a way to
repeat the function automatically why the mouse is over the control?

There's the onmousemove event which fires everytime the mouse moves while
over an element.
 
Back
Top