tuanphan Posted November 27 Posted November 27 Description Click button (button block) will play an audio After 1 second, will open new page #1. First, use this code to Code Injection > Footer (or Page Header Injection) <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> <script> $(document).on('click', 'div.button-block a', function (e) { e.preventDefault(); let audio = new Audio('https://www.w3schools.com/tags/horse.ogg'); audio.play(); setTimeout(() => { window.location.href = $(this).attr('href'); }, 1000); }); </script> #2. Replace sample audio with new audio url. You can use mp3 file You can change 1 second here (1000 = 1 second) Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
tuanphan Posted November 27 Author Posted November 27 @jblpropel I see you had this problem 3 months ago, if you still need it, you can follow above guide. Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment