T
T
The Whiz2012-09-12 09:41:56
JavaScript
The Whiz, 2012-09-12 09:41:56

Autoclick delayed?

Gentlemen programmers, tell me:

I wrote a slider, everything goes well left-right on a click, now I'm trying to create an additional function that triggers the autoclick next on a delay. Any advice on how best to do this? I'm trying to do something with delay, but he stubbornly refuses to be friends with click.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nur, 2012-09-12
@modernstyle

Your click probably causes some kind of handler, if you don’t be too smart, then do it
document.getElementById('btnSearch').click();
simply .
setInterval(myslider.goNextFunction,2000);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question