CodeAve.com CodeAve.com - HTML - Miscellaneous
ASP
JavaScript
CSS
HTML
·Forms
·Hyperlinks
·Headers
·Images
·Tables
·Text Display
·Miscellaneous
·Contents
·What's New?
Maps
Links
Mail List
Search
Sitemap


 


Background Sound
There are a number of ways to incorporate sound into your html documents. One of the most popular ways is by placing a sound file location inside of a bgsound command. When the html page is loaded the targeted sound will play when the page is displayed (and after the sound file has downloaded to the local PC). Background sounds should be used sparingly as most sound files are much larger than anything else you will typically place in you html documents and will significantly impact the performance of your pages.
View the Output
Text View
Print View
Mail this Link
Download the Code

<html>
<head>
<title>
CodeAve.com(Background Sound)</title>
</head>
<body bgcolor=
"#FFFFFF">

<bgsound src="jv.wav" loop="1">

<!-- the source for this file is .wav
other formats like .mid (midi) may also be used

 

loop="1" will play the sound file once
any other numeric will replay the sound for
the specified number of times
loop="infinite" will pay the sound over and over

Note: background sound is browser dependent -->

<pre>

The sound clip is taken from
the Jimmie Vaughn song Just Like Putty
available on the album Strange Pleasure

</pre>

</body>
</html>

 

 

 



ASP: What's New? | Articles | Script Writers | Database Display | Read/Write
Server Variables | Response Objects | Random Events | Miscellaneous
HTML: Forms | Hyperlinks | Headers | Tables | Hyperlinks | Headers | Text Display
JavaScript: Document Info | Forms | Images | Navigation | Script Writers
CSS: Basics | Page Display | Text Display | Script Writers | Miscellaneous
Maps: Map Script Writers | Bing Maps | Google Maps
Privacy Statement

CodeAve.com is hosted by MyHosting.com
Donate Food Online with a Mouse Click at TheHungerSite.com
Donate Land Online with a Mouse Click at TheRainForestSite.com
© 1999 - 2014 CodeAve.com
All Rights Reserved