Difference between revisions of "Team:Mingdao/DM"

Line 132: Line 132:
 
     slides[slideIndex-1].style.display = "block";   
 
     slides[slideIndex-1].style.display = "block";   
 
     dots[slideIndex-1].className += " active";
 
     dots[slideIndex-1].className += " active";
     setTimeout(showSlides, 4000); // Change image every 2 seconds
+
     setTimeout(showSlides, 15000); // Change image every 2 seconds
 
}
 
}
 
</script>
 
</script>

Revision as of 04:53, 12 October 2018

<!DOCTYPE html>

Automatic Slideshow

Change image every 2 seconds:

1 / 4
Caption Text
2 / 4
Caption Two
3 / 4
Caption Three
4 / 4
Caption Three