How to Play Background Sound in Netscape Navigator

ID: Q196138


The information in this article applies to:
  • Microsoft FrontPage 2000


SUMMARY

When you add a background sound to a Web page in Page view, FrontPage inserts the <bgsound> tag before the </head> tag. Netscape Navigator ignores the <bgsound> tag. To play a sound in Netscape Navigator, you can use the <embed> tag.

This article describes how to insert a background sound that plays when you load an HTML page in a Netscape browser.


MORE INFORMATION

Microsoft Technical Support will not resolve problems produced by editing the HTML that FrontPage generates. This HTML Code sample is provided as a convenience for authors seeking to extend the capabilities of FrontPage. For more information about writing HTML, please see the following Microsoft Web site:

http://www.microsoft.com/workshop/

At the Workshop page, click "DHTML, HTML, and CSS" in the list.

WARNING: ANY USE BY YOU OF THE HTML PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this HTML "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

To play a background sound in Netscape Navigator, follow these steps:
  1. Open your page in FrontPage.


  2. On the Insert menu, click Advanced, and then click HTML.


  3. In the HTML Markup dialog box, type the following HTML code:

    
          <embed src="soundfile.wav" hidden="true" align="baseline" border="0"
           width="128" height="128" autostart="true" autoplay="true"> 

    where soundfile.wav is the name of the background sound file you want to use. You can use a .wav, .mid. or .au file.


  4. Click OK.


  5. On the File menu, click Save.


HIDDEN, AUTOSTART, and LOOP Attributes

The HIDDEN, AUTOSTART and LOOP attributes of the EMBED tag are described as follows:


   HIDDEN="true|false"      Setting this attribute specifies whether
                            the plug-in is visible. Some plug-ins
                            (like the LiveAudio plug-in) can control the
                            embedded data type without being visible. The
                            default value is false, meaning that the
                            plug-in control will be displayed.

   AUTOSTART="true|false"   Setting this attribute specifies whether
                            the plug-in will start automatically.
                            Some plug-ins (like the LiveAudio plug-in)
                            can control the embedded data type without
                            user intervention. The default value is
                            false, meaning that the plug-in will not
                            function until the control is clicked.

   LOOP="true|false"        Setting this attribute specifies whether
                            the plug-in plays in a infinite loop. The
                            default value is false, meaning that the
                            plug-in will play once.
 


The third-party products discussed here are manufactured by vendors independent of Microsoft; we make no warranty, implied or otherwise, regarding these products' performance or reliability.

Additional query words: fp2k bgsound

Keywords : kbdta
Version : WINDOWS:
Platform : WINDOWS
Issue type : kbhowto


Last Reviewed: October 25, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.