onmouseover repeat

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
 
G

Guest

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.
 
B

Ben Amada

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top