Create a web page in HTML having a white background and two button objects.Write code using Java script
Answers
Answered by
2
Answer:
var slides = document. getElementsByClassName("mySlides"); for (i = 0; i < slides.
length; i++) { slides[i]. style. display = "none"; } ...
if (slideIndex > slides. length) {slideIndex = 1} slides[slideIndex-1].
style. display = "block"; setTimeout(showSlides, 2000); // Change image every 2 seconds. }
Similar questions
Social Sciences,
4 months ago
Physics,
1 year ago