I would like to know if anyone has already or know how to add a sound to be played, when a popup appears ?
it would be a nice attention grabber for the popup ?
like a catPurring, meowing, hissing, fighting, and more ?
![]()
I would like to know if anyone has already or know how to add a sound to be played, when a popup appears ?
it would be a nice attention grabber for the popup ?
like a catPurring, meowing, hissing, fighting, and more ?
![]()
Hi,
I think you can found something interesting with html5, take a look :
http://html5doctor.com/native-audio-in-the-browser/
http://dev.w3.org/html5/spec/single-...-audio-element
https://gist.github.com/253174
how to add sound?
I was sure to have written an article about how to add a sound to a wpsubscribers popup , but I can't find it.
in short, in the
Custom jQuery tab of the popup I have added this code :
jQuery('#sound_element').html(
"<embed src='http://www.testutilisateur.fr/catmeow2.mp3' hidden=true autostart=true loop=false>");
where you just link to the sound ( in mp3 format ) you want to play. it won't work on all browser, but not fail if it can't.
please let me know if you can integrate it, from this line of code or I will write again a tutorial, an also, I would like to know the effect you have chosen to use in your own popup![]()
I forget to put the link, where you could try the popup with this sound :
http://www.testutilisateur.fr
Bookmarks