var myIndex = 0; carousel(); function carousel() { var i; var x = document.getElementsByClassName("myslides"); for (i = 0; i < x.length; i++) { x[i].style.display = "none"; } myIndex++; if (myIndex > x.length) {myIndex = 1} x[myIndex-1].style.display = "block"; setTimeout(carousel, 3000); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)