[ acky.net logo ]




HTML

How to Insert Sound:

Background Sound | Small Console Sound | Large Console Sound

 


Background Sound:  > Back > Top

This Background tag can only work within I.E. and must be placed within the <HEAD>..</HEAD> tags. There are a number of attributes that can go with this. The sound files that you can play on the internet include Midi Sequencer (.mid), Wav Sound (.wav), Real Media (.ram,.ra), AIFF Sound (.aif, .aifc, .aiff), AU Sound (.au, .snd). The loop="-1" means that the sound will play infinite.

ex:

<HTML>
<HEAD>
<bgsound src="/midi5.mid" loop="-1">
<TITLE>Ack</TITLE></HEAD>
<BODY>
</BODY>
</HTML>

preview:

Click For Preview


Small Console Sound:  > Back > Top

The small console can be embedded anywhere in the html document. This type allows it to be visible and allows you to stop and pause the sound that is playing and also fwd to the middle of the sound. Gives an option to have the sound play when right when the page is loaded or after the user click on the play button.

This only works with i.e. 4 and most versions of Netscape.
The controls attribute only works with Netscape.

ex:

<HTML>
<HEAD>
<embed src="/midi1.mid" align="baseline" border="0"
width="140" height="15" autostart="false" controls="smallconsole"
loop="true" mastersound repeat="true" volume="high">

<TITLE>Ack</TITLE></HEAD>
<BODY>
</BODY>
</HTML>

preview:


Large Console Sound:  > Back > Top

This large console gives netscape users the options to Stop, Play, Pause and volume controls. Can be placed anywhere in html document that you want the console to appear.

This only works with i.e. 4 and most versions of Netscape.
The controls attribute only works with Netscape.

ex:

<HTML>
<HEAD><TITLE>Ack</TITLE></HEAD>
<BODY><embed src="/midi1.mid" align="baseline" border="0"
width="140" height="60" autostart="false" controls=""
loop="true" mastersound repeat="true" volume="high">

</BODY>
</HTML>

preview: