View Full Version : How do I play a sound clip at a specific level?

07-14-2006, 07:42 PM
I have added sound to my web pages before but, now I would like to add it with the volume set at a low level. I would like the music in the background.
I would also like to give more control over the music: on, off, up, down, ...

In the past I have used this:
if (navigator.userAgent.indexOf('MSIE') != -1 || navigator.userAgent.indexOf('Opera') != -1)
document.writeln('<bgsound src="sounds/tender.mid">');
document.writeln('<embed src="sounds/tender.mid" autostart=true width=0 height=0>');

Thank you in advance.