1
Was muss in dem JavaScript noch eingefügt werden damit die Bilder endlos dargestellt werden:
[Edit Jörg: Code-Block eingefügt]
<script>
var numChanges = 0;
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++) {
slides[i].style.display = "none";
}
slideIndex++;
if (slideIndex> slides.length) {slideIndex = 1}
for (i = 0; i < dots.length; i++) {
dots[i].className = dots[i].className.replace(" active", "");
}
slides[slideIndex-1].style.display = "block";
dots[slideIndex-1].className += " active";
numChanges++;
if (numChanges < 8) {
setTimeout(showSlides, 6000); // Change image every 5 seconds
}
}
</script>
https://www.fahrrad-workshop-sprockhoevel.de/index.htm[Edit Jörg: Code-Block eingefügt]