tags:

views:

28

answers:

3

How can I add sound to a web site . I don't want to show .swf player in the page .music should play in the background

A: 

You can use the <audio> tag, but check if that is supported in all browsers you are interested in. If not, you can use an invisible swf.

But I'd recommend you not to putting background sound into the site, it tends to be really annoying.

alcuadrado
A: 

Hide the div element inside which you put the swf object, in the page. Set the display state to none instead of block. Something Like :

<div style="display:none;">

<Your swf object>

</div>
loxxy
A: 

It's old but it works.

9 Versions to play a sound on a web page

I've used version 8 "Using a Java Applet called from JavaScript" for firefox and IE8.

Francisco Campos