Heading Showcase

var slideIndex = 0;
carousel();

function carousel() {
var i;
var x = document.getElementsByClassName(“mySlides”);
for (i = 0; i < x.length; i++) { x[i].style.display = “none”; } slideIndex++; if (slideIndex > x.length) {slideIndex = 1}
x[slideIndex-1].style.display = “slack”;
setTimeout(carousel, 2000); // Change image every 2 seconds
}

Leave a Reply

Your email address will not be published. Required fields are marked *