Guide
1
Go to the page where you want to set to music.Open it and add the code to the container & lt; head & gt;the following line: & lt; bgsound balance = "loop =" src = "volume =" & gt ;.As the attributes are the parameters such as balance, loop, src, and volume.The first adjusts the volume of sound in the left and right speakers.It does not change dynamically using scripts.Attribute loop sets the amount of playing music files.In the absence of meaning, music is played only once.Scr attribute specifies the path to the music file.Extensions valid file depends on the browser.Popular formats such as MIDI, are supported without installing third-party plug-ins.The last attribute is responsible for the volume volume.Default and maximum volume depends on the settings
of the operating system and hardware.Therefore, the sound level can only be reduced, assigning a negative or positive attribute.
2
Set the attribute values ‚Äč‚Äčthat meet your requirements.It is not necessary to register all of the attributes, is enough to indicate the path to the file (src).In this case, settings are default settings.For example: & lt; head & gt; & lt; bgsound src = "music.mid" & gt;& lt; head / & gt; Or come up with something of my own: & lt; head & gt; & lt; bgsound src = "music.mid" loop = "3" balance = "- 6000" volume = "45" & gt;& lt; head / & gt;
3
alternative way that will make the music play any browser can be considered next.The downside of such a use of JavaScript. & Lt; script & gt; var MSIE = navigator.userAgent.indexOf ("MSIE"); var OPER = navigator.userAgent.indexOf ("Opera"); var NETS = navigator.userAgent.indexOf ("Netscape"); if ((MSIE & gt; -1) || (OPER & gt; -1)) {document.write ("");// file path} else {document.write ("");// Attribute values} & lt; / script & gt;