Tag BGSOUND

Description
Tag <BGSOUND> defines the musical file, which will be played on the web page at its opening. The volume, length of music sounding and the other characteristics are defined by tag parameters, and also can be commanded via scripts. This tag must be located only in the package <HEAD>.
Tag <BGSOUND> is not referred to HTML specification and while using it, the code will not pass validation.
 
Parameters
Balance controls the sound balance between left and right speaker.
Loop defines how many times the musical file should be played.
Src the way to the musical file.
Volume defines the volume of the sound.
Closing tag
Is not optional.
The Description of Tag <BGSOUND> Parameters
BALANCE Parameter
Description
Controls the sound balance between left and right speaker. This project can’t be changed dynamically with the help of scripts.
 
Arguments
The integer from -10000 to 10000. The meaning 0 serves for volume balance. Negative numbers turn the volume up in the left speaker, and the positive numbers – in the right speaker.
Default value
0
LOOP Parameter
Description
Defines how many times the musical file should be played. In case the argument is absent, the music is played for only one time.
 
Arguments
The value 0 plays the file for one time, -1 plays the music until the active web page is opened. Any positive integer enforces the browser to play a musical file certain number of times.
Default value
-1
SRC Parameter
Description
The way to the musical file, which will be played on the web page. The list of acceptable types of files depends on the browser and its options, but the popular formats, like MIDI, are supported by the browser without downloading any additional plugins.
 
Arguments
The full or relative way to the file is accepted as a value.
Default value
No
Volume Parameter
Description
Defines the volume of the sound on the web page. The maximal sound level is defined by default and depends on the active options and operating system. That is why the volume can be only diminished by assigning the negative value to the volume parameter. The more this number is, the quietly the music on the page is played.
 
Arguments
The integer from -10000 to 0. The value 0 defines maximal volume of sound.
Default value
0
Application form
Form processor
File upload form
Form software