Microsoft KB Archive/156154

= PUB97: How to Add Background Sound to Your Web Page =

Article ID: 156154

Article Last Modified on 10/8/2003

-

APPLIES TO


 * Microsoft Publisher 97 Standard Edition, when used with:
 * Microsoft Windows NT 4.0

-



This article was previously published under Q156154





SUMMARY
If you want a sound (.wav) or MIDI (.mid) file to play automatically when you view your Web page, you can manually add a  tag to the HTML code created by Publisher.

WARNING: ANY USE OF THE HTML CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this HTML code "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.



MORE INFORMATION
The steps below illustrate one method of adding a background sound to your Web Page.

These directions assume that you have already used the Publish Web Site to Folder command on Publisher's File menu. They also assume that you have not used the Web Site Properties command (also on the File menu) to change the default Web Site naming convention.  Copy the .wav or .mid file you wish to use as a background sound to the same folder to which you published your Web Site. For this example, assume the file is named Bgsound.wav. Run Notepad. On the File menu, click Open. Change to your Web site folder. On the Open Files of Type list, click All Files . Click the file called Index.html and click Open.  Find the line near the beginning of the file that is similar to the following: <body bgcolor="#ffffff" link="#0000ff" vlink="#ff0000" text="#000000"> NOTE: The values for bgcolor, link, vlink, and text may be different for your Web Page. </li>  Insert a new line immediately below this line. This new line should contain the text: <BGSOUND SRC="bgsound.wav"> If you wish the sound to repeat several times, you can add a LOOP attribute to this command. For example: <BGSOUND SRC="bgsound.wav" LOOP=5> plays Bgsound.wav five times in a row. Similarly, <BGSOUND SRC="bgsound.wav" LOOP=INFINITE> plays Bgsound.wav over and over again until you go to a different Web Page. </li> On the File menu, click Save.</li></ol>

If you wish to make more drastic changes to your Web Site, you may wish to open your Web Site in an HTML authoring/editing program, such as Microsoft FrontPage.

Additional query words: 97 4.00 pub97 w_mspub mspub 4.0 pub4 wave continuous noise

Keywords: kbhowto kbinterop kbusage KB156154

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.