I have a popup mp3 player and want it to play automatically when someone enters the site. I can get it to play f someone clicks on it and but not automatically.
Be wary of using JS (though elf_red's suggestion is good) lots of people have pop up blockers, would it be easier to use some CSS driven divs to 'fake' a pop up instead? Just a thought there :)
Cheers, MRb
mack
8:43 pm on Dec 16, 2010 (gmt 0)
Matthew1980 makes a good suggestion. A high percentage of users now run pop up blockers, in many cases they are built into the browser. If you have a div where the player will appear, then have a hide button I think this could make a nice effect.
Mack.
webfoo
10:12 pm on Dec 16, 2010 (gmt 0)
I would caution against using starting music automatically. That can be annoying to the user. I would recomend leaving the user in control of when the music plays or doesn't play.
Silver007A
10:10 am on Dec 17, 2010 (gmt 0)
Thanks for your replies. The person I am creating this for has asked for automatic music from the beginning. I've also mentioned people and companies blocking aspects of a site and they don't mind this being an issue.
So, it makes it easier :-)
I didn't know you could get around it using CSS, I'd love to know how, but in this instance I already have an extension I wish to use and just want a bit of code to get it popping up and playing automatically.
I tried to work with <body onload="window.open('http://www.virt... ? elf_red, but haven't had any luck, can you explain a bit more please?
Thanks
elf_red
11:07 pm on Dec 17, 2010 (gmt 0)
As Matthew said, it's a reason not to use popups. Alternate way: <Iframe Src="http://www.virt..."></IFrame> =)
Silver007A
11:51 pm on Dec 17, 2010 (gmt 0)
Hi elf_red,
I understand what you are both saying and thank you for highlighting it.
Would you be so good as to explain where I should add the <Iframe Src="http://www.virt..."></IFrame> =)
Will that make the pop-up automatically and play automatically?
Thanks
elf_red
3:53 pm on Dec 18, 2010 (gmt 0)
Silver007A, it'll not popup, just play and could be placed anywhere with zero width and height styling