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

145
Views
Control deslizante de imagen con efecto de desvanecimiento solo javascript no JQuery

JS ahora funciona de forma automática, pero quiero crear botones a la izquierda y a la derecha y deslizarlo al hacer clic

esto es html

 <div id="bcg"> <img id="slider" src="img/backgrounds/bg.jpg" alt=""> <img id="slider" src="img/backgrounds/bg-1.jpg" alt=""> <img id="slider" src="img/backgrounds/bg-2.jpg" alt=""> <img id="slider" src="img/backgrounds/bg.jpg"> </div>>

esto es css

 #bcg { width: 100%; height: 100%; display: flex; position: absolute; overflow: hidden; top: 0; left: 0; } #bcg img { width: 100%; height: 100%; }

/// Esto es JavaScript, quiero trabajar en click//

 var imgArray = [ "https://www.ncesc.com/wp-content/uploads/2021/07/business-development-manager-job- description.png", "https://www.compuvis.com/images/site/slider/download.jpg", 'https://koinworks.com/wp-content/uploads/2021/04/bisnis-proposal.jpg'], curIndex = 0; imgDuration = 3000; function slideShow() { document.getElementById('slider').className += "fadeOut"; setTimeout(function () { document.getElementById('slider').src = imgArray[curIndex]; document.getElementById('slider').className = ""; }, 1000); curIndex++; if (curIndex == imgArray.length) { curIndex = 0; } setTimeout(slideShow, imgDuration); } slideShow()
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!