Automatic slideshow with button
问题 I could create the automatic slideshow with a javascript. But I want it not only manual, but control with buttons. I added some manual controlling code. Then the slideshow was not working properly. This is the code for automatic slide show. How to modify this to work with buttons. var slideIndex = 0; showSlides(); function showSlides() { var i; var slides = document.getElementsByClassName("mySlides"); var dots = document.getElementsByClassName("dot"); for (i = 0; i < slides.length; i++) {