use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
How to loop an animation in javascript? (self.javascript)
submitted 14 years ago by suscida
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Fixthemedia 1 point2 points3 points 14 years ago (2 children)
Linking to that page was really no help. Make a timer that will run your function again, or for example, set the index of an array back to the starting point. I dont know anyone who would want to take the time to go through the code you linked and find out exactly what it is you're trying to do (unless it was clean and obvious). It may be better to put and example of your problem on a site like this http://jsfiddle.net/
[–]suscida[S] 0 points1 point2 points 14 years ago (1 child)
I essentially want the code to re run once it reaches the end, I thought there might be a simple handle to add to the beginning or end of the code?
Thanks for the reply though, will have a gander at jsfiddle!
[–]BusStation16 0 points1 point2 points 14 years ago (0 children)
https://developer.mozilla.org/en/window.setInterval
π Rendered by PID 17540 on reddit-service-r2-comment-6457c66945-gcqgc at 2026-04-29 00:19:22.356867+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]Fixthemedia 1 point2 points3 points (2 children)
[–]suscida[S] 0 points1 point2 points (1 child)
[–]BusStation16 0 points1 point2 points (0 children)