> Javascript moving images loop?

Javascript moving images loop?

Posted at: 2014-12-18 
Your program only move the image once because it never adds to the left style property. It simply sets it at 25px then does that over and over again.

Here's an example on how this can be done.







????

????Mid Term Project

????





????


????????tie

????????


????????xwing

????








And here's a live version http://jsfiddle.net/puhmkcto/

Hope that helps.

Check this:



It works perfectly. No flaw. But change the image to your own!

You can test your code here to see it for yourself: http://www.tswebschool.com/try_it_editor... Good luck!

I am running a random number timer and haveing the images move depending on the number; however, the images only move once. Like the timer is not looping here is my code:











Mid Term Project





tie


xwing