Problem with setTimeout or setInterval not working
I've been trying to get a simple continuous loop application working and for some reason I cannot get setInterval or setTimeout to work. They simply don't call the function specified.
Here is a simple sample app.js to show the problem: http://pastie.org/1146449
Basically I want to create a loop where the images change sequentially (until stopped or the application ends), but I can't get it loop.
What is my major malfunction here?
1 Answer
-
Accepted Answer
setTimeout( function() { img_sequence(); },1000);
This should work.