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

176
Views
cómo detener la reproducción del botón cuando se hace clic para reproducir otro botón en elementor

estoy usando wordpress con elementor creé varios botones que cuando se hace clic reproducen un efecto de sonido, pero mi problema es cuando se hace clic en 1 botón y al mismo tiempo cuando se reproduce el botón 1 si hago clic en el botón 2 también se reproducirá junto con el botón 1 cómo hacer andy botón para detener la reproducción cuando se hace clic en otro? *Estoy usando el siguiente código para reproducir el botón

 <script> $(document).ready(function() { //Audio 1 Starts var audio1 = new Audio('Sound-Effect-URL') $(".button-class").mousedown(function() { audio1.load(); audio1.play(); }); //Audio 1 Ends }); </script>```
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Si tiene el código de ambos botones en el mismo script, puede probar esto:

 <script> $(document).ready(function() { //Audio 1 Starts var audio1 = new Audio('Sound-Effect-URL') var audio2 = new Audio('Sound-Effect-URL2') $(".button-class").mousedown(function() { audio2.pause(); audio2.currentTime = 0; audio1.load(); audio1.play(); }); //Audio 1 Ends $(".button-class2").mousedown(function() { audio1.pause(); audio1.currentTime = 0; audio2.load(); audio2.play(); }); }); </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!