I want widget.Rotator.rotate() to be delayed 5 seconds between calls… how do I do this in jQuery… it seems like jQuery’s delay() wouldn’t work for this…
I want widget.Rotator.rotate() to be delayed 5 seconds between calls… how do I do
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use plain javascript, this will call your_func once, after 5 seconds:
If your function has no parameters and no explicit receiver you can call directly
setTimeout(func, 5000)There is also a plugin I’ve used once. It has
oneTimeandeveryTimemethods.