Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

143
Views
Ejecución de 2 presentaciones de diapositivas en la misma página

Quiero ejecutar 3 presentaciones de diapositivas en una página, intenté copiar el código pero no tuve éxito. Estoy usando una presentación de diapositivas W3. Además, quiero hacer los botones Siguiente y anterior como este: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_slideshow Por favor, ayúdenme

Aquí está el código:

 var slideIndex = 1; showDivs(slideIndex); function plusDivs(n) { showDivs(slideIndex += n); } function showDivs(n) { var i; var x = document.getElementsByClassName("mySlides"); if (n > x.length) {slideIndex = 1} if (n < 1) {slideIndex = x.length} for (i = 0; i < x.length; i++) { x[i].style.display = "none"; } x[slideIndex-1].style.display = "block"; }
 .mySlides {display:none;}
 <html> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> <body> <div class="w3-content w3-display-container"> <img class="mySlides" src="https://www.w3schools.com/w3css/img_snowtops.jpg" style="width:100%"> <img class="mySlides" src="https://www.w3schools.com/w3css/img_lights.jpg" style="width:100%"> <img class="mySlides" src="https://www.w3schools.com/w3css/img_mountains.jpg" style="width:100%"> <button class="w3-button w3-black w3-display-left" onclick="plusDivs(-1)">&#10094;</button> <button class="w3-button w3-black w3-display-right" onclick="plusDivs(1)">&#10095;</button> </div> </body> </html>

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!