Here's an example on how this can be done.
????
????
????
????
????????
![tie](tie.jpg)
????????
????????
![xwing](xwing.jpg)
????
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:
![tie](images/tie.jpg)
![xwing](images/xwing.jpg)