how to add a sound when my popup appears ?

Best Wordpress plugin to engage your users and collect their email. You can use header alerts, popups, or exit pages, and it works with any popular emailing service such as Mailchimp or AWeber
User avatar
Fabrice
ObviousIdea
Posts: 531
Joined: Wed Dec 29, 2010 6:42 pm
Location: Toulouse, France
Contact:

how to add a sound when my popup appears ?

Post by Fabrice »

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 cat Purring, meowing, hissing, fighting, and more ? :confused:
nico_pn
Posts: 71
Joined: Tue Feb 28, 2012 10:37 am

Post by nico_pn »

vwjenina
Junior Member
Posts: 2
Joined: Fri Aug 10, 2012 1:35 am

Post by vwjenina »

how to add sound?
User avatar
Fabrice
ObviousIdea
Posts: 531
Joined: Wed Dec 29, 2010 6:42 pm
Location: Toulouse, France
Contact:

Post by Fabrice »

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 ;)
User avatar
Fabrice
ObviousIdea
Posts: 531
Joined: Wed Dec 29, 2010 6:42 pm
Location: Toulouse, France
Contact:

Post by Fabrice »

I forget to put the link, where you could try the popup with this sound :

http://www.testutilisateur.fr
Post Reply