+ 3
Image Changing
Hey how can I change the source of an image in html using JavaScript I tried the document.get ElementByID(). src = some link; and I also tried using the set interval and clearinterval to continuously change between two images but it did not work only once the image came and then the previous image did not come back. look at this this is my code and please help https://code.sololearn.com/WGR141b6B7oL/?ref=app
2 ответов
+ 2
Just use one timer to switch images:
https://code.sololearn.com/WJ0oRKl4wE8L/?ref=app
+ 2
thanks