Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function moveleft(){
- for(i=1;i<14;i++){
- move[i]=move[i]-3
- var randomnum1 = Math.floor(820*Math.random())+1;
- var randomnum2 = Math.floor(1500*Math.random())+1280;
- document.getElementById(i).style.left= move[i]
- if (move[i]<0-45){
- document.getElementById(i).style.top= randomnum1
- move[i]=randomnum2
- }
- }
- setTimeout("moveleft();",1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement