Adding Sounds to Your Pages |
|||
|
some sound files sources: some tutorials on adding sound: adding sounds according to dave Your assignment: |
Internet
Explorer only:
To call a sound file only with IE you would insert the following tag into the <body>.....</body> of the web page. <bgsound src="musicfile.mid" loop="0"> where musicfile.mid would be replaced with any musical file you want. With this format the file would have to be in the same directory as the web page. If, on the other hand, the file was in a directory called audio or sound or whatever, the syntax would be <bgsound src="../sound/musicfile.mid" loop="0"> The loop="0" would cause the file not to play when the page is first loaded. If the number 1, 2 or 3 were placed here, the sound file would self initialize and play that number of times and stop. If the number -1 was placed in the loop= attribute, the file would play continually. The two main drawbacks to using this method are; it only works with IE and there is no control panel available to the web site visitor. The sound simply does what is defined in the command and the visitor has no control over stopping it or playing it again (unless they hit their browser's stop or reload buttons). They are at the mercy of the web page designer. It's a good idea to give the web site visitor the option of controlling the sound. |
Internet
Explorer and Netscape
And of course, there's always a text link
|
|