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

246
Views
Ocultar imágenes entre rotación (Javascript)

Creé un temporizador que cambia y repite entre imágenes.

Estoy buscando crear una pausa entre las imágenes en las que no se muestra nada.

Por lo tanto, logo1 encendido durante 15 segundos ocultar imágenes durante 30 segundos logo2 encendido durante 15 segundos y así sucesivamente

Esto es lo que tengo hasta ahora.

Idealmente, la piel ocultaría ambos DIVS

 <html> <head> <style> .box1 { background-color: rgba(0,0,0,0); color: #fff; opacity: 1; align-content: safe; } .brandlogo { background-color: rgba(0,0,0,0); position: absolute; top: 500; left: 1100; } .box2 { background-color: rgba(0,0,0,0); color: #545454; position: absolute; top: 400; left: 1000; } </style> </head> <body> <div class="wrapper"> <div class="box box1" id="art"> <img class="brandlogo" id="image" src="logo1.png" width="100"> </div> <div class="box box2" id="frameart"> <img class="brandframe" id="frame" src="adframe2.png" width="300">. </div> </div> <script type="text/javascript"> var image = document.getElementById("image"); var currentPos = 0; var images = ["logo1.png", "logo2.png", "logo3.png"] function timercount() { if (++currentPos >= images.length) currentPos = 0; image.src = images[currentPos]; } setInterval(timercount, 3000); $("#art").show(); setTimeout(function() { $("#art").hide(); }, 500); </script> </body> </html>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Déjame saber como va :)

 <script type = "text/javascript"> var image = document.getElementById("image"); var currentPos = 0; var images = ["logo1.png", "logo2.png", "logo3.png"] // jquery api on hide // https://api.jquery.com/hide/ function hideArt() { $("#art").hide(30000, changeLogo); } function changeLogo() { if (++currentPos >= images.length) { currentPos = 0; } image.src = images[currentPos]; // restart loop loop(); } function loop() { // setTimeout api // https://developer.mozilla.org/en-US/docs/Web/API/setTimeout setTimeout(hideArt, 15000); } // start loop loop(); </script>
about 4 years ago · Juan Pablo Isaza Report
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!