Java / HTML image change
Go to solution
Solved by fjdhdhcyfhf,
create an array of image URLs,
create a variable to use as index to the array
create a new javascript function that does the following:
increment the index
check the index is not greater than image array length, if yes reset to zero
use document.getelementbyid() to get the image element
set the image element.src = imageArray[index]

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now