Autoplay mp3 on page load

Posted by bambinou, 11-16-2012, 07:12 AM
Hello, I have a 5 second greeting mp3 I would like to start on page load. With the below code it works on firefox, chorome and safari but not IE(Latest). Any idea why please? Thank you, Ben

Posted by dcdan, 11-16-2012, 11:00 AM
Please please do not do that.

Posted by Herasil, 11-16-2012, 11:11 AM
Check out: http://www.w3schools.com/html/html_sounds.asp Some of the problems that it lists are "Different browsers support different audio formats" and "If a browser does not support the file format, the audio will not play without a plug-in" It provides a solution using HTML5 and an HTML fallback that might work for you. But dpdp is right, autoplaying sounds can be really annoying for visitors.

Posted by bambinou, 11-17-2012, 04:19 AM
Hi, In understand what you mean but when your boss asks you something and tell you to do it, you have to.........I am not in a position to decide what I want unfortunately as my boss will not let me explain what we should do or not do. I must do what "he" wants without questioning. Thank you, Ben

Byla tato odpověď nápomocná?

 Tisknout tento článek

Také čtěte

Question on array sorting in php

Posted by computerwiz3491, 01-17-2008, 05:10 PMI have the following array that I printed using...

Any PHP library to create .ico? Or just to convert a PNG to ICO?

Posted by yangyang2036, 09-21-2008, 09:17 PMSearched google with nothing relevant. Posted by...

changing register_globals from .htaccess will cause 500 Error when php run as CGI

Posted by mshannaq, 05-07-2007, 01:44 PMHello, Today I have a customer want to swich the...

WordPress sitemap plugin problem or no ?

Posted by SimonDevise, 11-06-2012, 05:25 AMI have use WordPress sitemap plugin 2-3 month, but I...

Hosting With support for MS SBS 4.5?

Posted by SimonC, 09-29-2001, 09:26 AMDoes anyone know of a reseller package with support for...