Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. imgArray[1] = new Image();
  2. imgArray[1].src = "WhitePicture1.gif"; //this works
  3. ...
  4.  
  5. function displayPicture(int)
  6.  
  7. var image = document.getElementById('ImageNumber[int]'); //this doesn't work
  8. var image = document.getElementById('ImageNumber' + int); //this doesn't work
  9.  
  10.  
  11.  
  12. image.src = imgArrayS[int] //doesn't work
  13.  
  14. var thefile = "imgArray" + int + ".gif"
  15. image.src = thefile; //doesn't work
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement