Web Analytics Made Easy -
StatCounter How to play a background sound in all web browser? - CodingForum

Announcement

Collapse
No announcement yet.

How to play a background sound in all web browser?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to play a background sound in all web browser?

    I am having a problem getting a background sound to play in all the web browsers.

    My application is designed in flash. and there is a button to open a html file. So when the html page is loaded, the background should play automatically without clicking on media player. What I have done was I have used <embed> and <noembed><BGSOUND></noembed> tag but this only worked fine in IE, not for other web browsers. So is there anyway to automatically play a background that that are work fine for all the web browser?

    Hope someone could give me some idea.

    Thanks in advance.

    These are the coding:

    Action script:
    Code:
    on (release) {
    getURL('testing.html');
    }
    HTML code:
    Code:
    <html>
    <head>
    <title>testing</title>
    </head>
    <body>
    <embed src="Testing.mp3" autostart=true hidden=true>
    <noembed><bgsound src="Testing.mp3"></noembed>
    </body>
    </html>
    Attached Files
    Last edited by apple; Aug 1, 2005, 04:32 AM.
Working...
X