Changing Multiple Images
I've been having problems recently with a piece of code that I have been working on. I am asked to create an array and cycle through the traffic lights with a button, this is what
Solution 1:
Images don't have innerHTML
, try this :
document.getElementById("image").src = images[0];
Post a Comment for "Changing Multiple Images"