0
My code:
<div class="w3-content w3-row">
<div class="w3-third">
<img class="mySlides1 w3-animate-fading" src="comida/1.png" width="250" height="200" border="3">
<img class="mySlides1 w3-animate-fading" src="comida/2.jpg" width="250" height="200" border="3">
<img class="mySlides1 w3-animate-fading" src="comida/3.jpg" width="250" height="200" border="3">
<img class="mySlides1 w3-animate-fading" src="comida/4.jpg" width="250" height="200" border="3">
<img class="mySlides1 w3-animate-fading" src="comida/5.jpg" width="250" height="200" border="3">
<img class="mySlides1 w3-animate-fading" src="comida/6.jpg" width="250" height="200" border="3">
</div>
<div class="w3-third w3-container">
<img class="mySlides2 w3-animate-fading" src="cozinheiro/cozinheiro1.jpg" width="250" height="200" border="3">
<img class="mySlides2 w3-animate-fading" src="cozinheiro/cozinheiro2.jpg" width="250" height="200" border="3">
<img class="mySlides2 w3-animate-fading" src="cozinheiro/cozinheiro3.jpg" width="250" height="200" border="3">
<img class="mySlides2 w3-animate-fading" src="cozinheiro/cozinheiro4.jpg" width="250" height="200" border="3">
<img class="mySlides2 w3-animate-fading" src="cozinheiro/cozinheiro5.jpg" width="250" height="200" border="3">
<img class="mySlides2 w3-animate-fading" src="cozinheiro/cozinheiro6.jpg" width="250" height="200" border="3">
</div>
<div class="w3-third w3-container">
<img class="mySlides3 w3-animate-fading" src="larive/larive1.jpg" width="250" height="200" border="3">
<img class="mySlides3 w3-animate-fading" src="larive/larive2.jpg" width="250" height="200" border="3">
<img class="mySlides3 w3-animate-fading" src="larive/larive3.jpg" width="250" height="200" border="3">
<img class="mySlides3 w3-animate-fading" src="larive/larive4.jpg" width="250" height="200" border="3">
<img class="mySlides3 w3-animate-fading" src="larive/larive5.jpg" width="250" height="200" border="3">
<img class="mySlides3 w3-animate-fading" src="larive/larive6.jpg" width="250" height="200" border="3">
</div>
</div>
<script>
var myIndex1 = 0;
var myIndex2 = 0;
var myIndex3 = 0;
carousel();
function carousel() {
var i;
var x1 = document.getElementsByClassName("mySlides1");
var x2 = document.getElementsByClassName("mySlides2");
var x3 = document.getElementsByClassName("mySlides3");
for (i = 0; i < x1.length; i++) {
x1[i].style.display = "none";
}
for (i = 0; i < x2.length; i++) {
x2[i].style.display = "none";
}
for (i = 0; i < x3.length; i++) {
x3[i].style.display = "none";
}
myIndex1++;
if (myIndex1 > x1.length) {myIndex1 = 1}
x1[myIndex1-1].style.display = "block";
myIndex2++;
if (myIndex2 > x2.length) {myIndex2 = 1}
x2[myIndex2-1].style.display = "block";
myIndex3++;
if (myIndex3 > x3.length) {myIndex3 = 1}
x3[myIndex3-1].style.display = "block";
setTimeout(carousel, 8000);
}
</script>
class="mySlides1 w3-animate-fading""
- There’s an extra quote here.– Victor Stafusa
I was going to start trying to simulate your code, but without the link of the figures, it’s hard.
– Victor Stafusa
Places all HTML, including CSS, and whether you’re using a library or plugin
– hugocsl
Hmmm I didn’t use css in this part of slideshow
– user100698