HTML Code for embedding sound on your page ======================================================================================= 18 February 2018 Since the writting of this page (1999) some of this code has become obsolete! The "new" AUDIO tag replaces the BGSOUND tag! So here's what works now: [ Short version ] Hear it in action here: http://www.mermeliz.com/fun/index.htm ------------------------------------- [ full version ] FROM HTML.COM: https://html.com/tags/audio/ ------------------------------------- Read more: https://html.com/tags/bgsound/#ixzz56egiMqHQ ------------------------------------- Comment: Some browsers today are gagging on the WAV and MIDI format (I think it is a conspiracy) LOL What plays best is mp3 and ogg (or ogv). https://www.zamzar.com/convert/wav-to-ogg/ Prolly because of the 'hand helds' being used more and more these days! Just don't get caught with that 'hand held" in your hands while driving!!! ======================================================================================= The Below Material was written in 1999 when it all worked. Notably the BGSOUND tag has been eliminated in the new HTML5 environment! ======================================================================================= One may play either a wav or a midi sound on their page OR both! The example shown below will start and play only one time through both a midi and a wav at the same time, (if both codes are added to your page). The midi will also be accessable through a control panel so that the vistor can turn it off or restart it if they chose. --------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------- The wav player will not be seen. So the visitor has to stop it by clicking on the "Stop" function of their browser. Changing the "loop" control from a 0 to a 1 will make the sound play over and over again. This code may be placed anywhere on the page. An acceptable place is usually on the bottom if you are going to show the control console. But if your midi or wav is a large file, then it is suggested to place it near the top of your code and as an invisble player (See the wav example). This allows the sound file time to start downloading earlier while your page is loading. These code entries will work for either type of sound file! _______________________________________________________________________________________ Here's a bonus - - A Java script for sound embedding: ________________________________________________________________________________________ Because this is a text file you must use your "Back" button on your browser to return to the main "HTML BASICS" page. ~Mermaid_Elizabeth - 9 Sept 99 - mermeliz@yahoo.com