1
Hello, how do I change the src of an image when I click on a link next? I have a long list of images and I would like to advance according to the amount of images in this folder, rather than by one that would be beyond exhaustive a limited process, seen to add and remove would need to edit the html. If it is not possible, at least link the value of a variable js to a "page" and based on this access an xml list with links.
William didn’t quite understand, is it something like this https://jsfiddle.net/bwoep3wL/? If you are tell me here, write "@Miguel yes/no that..." so I can be notified and publish it or not as a response
– Miguel
@Miguel is more or less that, but what happens is that I don’t want to leave the images already loaded, because I already have a parallel search system that changes the src. Anyway, my idea is to have a list, a switch "case var =2" src exchange of id "imagemTroca" and the swap button activates a function var +1. I just don’t know how to put it together. 'Cause I don’t know where to put it. pq if I set with var = 0 at the beginning, it will reset td once I press the button next. :(
– Guilherme S. Santos
I noticed, I put down a possible answer
– Miguel