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

225
Views
Abra la ventana emergente con la carga de la página y cierre después de unos segundos con el temporizador

Quiero intentar corregir este código, pero no me funciona.

 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.js" type="text/javascript"></script> <link href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/themes/blitzer/jquery-ui.css" rel="stylesheet" type="text/css" /> <script type="text/javascript"> $(function () { $("#btnShow").click(function () { $("#dialog").dialog({ modal: true, title: "jQuery Dialog", width: 300, height: 150, open: function (event, ui) { setTimeout(function () { $("#dialog").dialog("close"); }, 10000); } }); }); }); </script> <input type="button" id="btnShow" value="Show Popup" /> <div id="dialog" style="display: none"> <p>This dialog will automatically close in <span id="countdowntimer">10 </span> Seconds</p> </div> <script type="text/javascript"> var timeleft = 10; var downloadTimer = setInterval(function(){ timeleft--; document.getElementById("countdowntimer").textContent = timeleft; if(timeleft <= 0) clearInterval(downloadTimer); },1000); </script>

Corrija esto

Quiero...

Carga de página Abrir ventana emergente después de 5 segundos.

Ventana emergente de cierre automático mientras finaliza el temporizador.

Necesita el texto "Omitir" para cerrar antes la ventana emergente.

Mostrar una vez por usuario.

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!