How do you create a background sound?

The Internet Explorer supports the BGSOUND element, which makes it easy to create a background sound :

Source
<BGSOUND src="sound.wav">

This element must be in the HEAD section of the document.

However, this element is not supported by Netscape Navigator. You have to use the EMBED element. This element used to use several Netscape technologies, and can also play sound using LiveAudio :

Source
<EMBED src="sound.wav"></EMBED>

This syntax is also supported by Internet Explorer, so it's the best solution if you need to support both IE and Navigator.

Back to the FAQ main page
Statistics

  Copyright © 1996 - 1999 Rob Schlüter,   schluter@knoware.nl   (last updated 1999/03/10)