Computer Information & Applications

Create / Publish / Manage / Your Web Site
A web workshop by F. Hayden Cochran

Menu for....
Adding Details

Up
Graphics
Scanning
Digital Photos
Mouse Over
GIF Animations
Web Forms
Counters
Adding Sounds

 

Adding Background Sounds

Front page uses the HTML tag called <bgsound> to insert a sound file onto a front page web.  This HTML tag is not supported by all web browsers.  Netscape browsers can not read this tag.

To solve this problem use the standard HTML tag <embed>

To cover both Netscape and Internet Explorer do this....


The EMBED HTML TAG Examples

To play a sound file when a web page loads.......
<embed src="sounds/clock.wav" hidden=true autostart=true loop=false></embed>

Note:  Replace "sounds/clock.wav" with the location and name of your sound file.
Note #2:  When using the embed tag, Front page will display the plug-in logo to indicate that your web page will require an added feature.  This is only shown in the editor, in preview mode the image will be hidden.

The Plug-in logo
embed.jpg (1273 bytes)
<bgsound="sounds/clock.wav">


To NOT autostart, and place controls to the sound file....
<embed src="sounds/clock.wav" controls="console" height=60 width=145 autostart=false></embed>

Note:  The size of the console can be changed by clicking on the plugin and resizing the display.  In front page, this will rewrite the HTML and change the plugin size.  This is what the plugin will look like resized.

<?> Note:
Front Page places this symbol to notify the web designer that you are writing your own HTML and that front page will not check this code for correctness!


COVER BOTH BROWSERS like this....

Since IE uses the tag bgsound, and Netscape uses the tag embed, you can cover both web browsers with a combination of these two html tags as follows.

<embed src="sounds/clock.wav" hidden=true autostart=true loop=false></embed>
<noembed><bgsound="sounds/clock.wav"></noembed>


^ Return to Top

TeamCIAhome.gif (1161 bytes)

"What do YOU want to learn today?"

 

Last Updated on 07/24/99
Conceptual framework copyright F. Hayden Designs, Inc. 1994. TeamCIA is a Registered trademark and "What do you want to learn today?"

"Computer Information and Applications", and "Framework 14" are trademarks of F. Hayden Designs, Inc. All rights reserved.
All material Copyright 1999 F. Hayden Designs, Inc.