volume Property

Sets or returns a Variant that represents the volume for a background sound for a Web page. Corresponds to the volume attribute for a BGSOUND element.

expression.volume

*expression   * Required. An expression that returns one of the objects in the Applies To list.

Example

The following example sets the properties for the background sound for the active document.

Dim objHead As IHTMLElement
Dim objSound As FPHTMLBGsound

Set objSound = ActiveDocument.all.tags("bgsound").Item(0)

With objSound
    .src = "sounds/applause.wav"
    .balance = 0
    .loop = 1
    .volume = 0
End With

Applies to | FPHTMLBGsound Object | IHTMLBGsound Object