This interface provides the methods for controlling background sound elements. These methods include the src, volume, balance, and loop properties for the sound element.
IHTMLBGsound Methods
get_balance Retrieves the balance value of the background sound. The value specifies how the sound is divided between left and right speakers. get_loop Retrieves the number of times the sound will loop when activated. get_src Retrieves the URL of the sound to be played. get_volume Retrieves the volume setting for the sound. The higher the setting, the louder the sound. put_balance Sets the balance value of the background sound. The value specifies how the sound is divided between left and right speakers. put_loop Sets the number of times the sound will loop when activated. put_src Sets the URL of a sound to be played. put_volume Sets the volume setting for the sound. The higher the setting, the louder the sound.
Interface Information
Implementation System (Mshtml.dll) Inherits from IDispatch Header and IDL files Mshtml.h, Mshtml.idl Minimum availability Internet Explorer 4.0 Minimum operating systems Windows 95, Windows NT 4.0
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0
Remarks
The BGSOUND element enables you to create pages with background sounds or soundtracks.