B BGSOUND object (Object/HTML) IE myBGSOUND = myDocument.all.anElementID IE myBGSOUND = myDocument.all.tags(”BGSOUND”) [anIndex] IE myBGSOUND = myDocument.all[aName] -myBGSOUND = myDocument.getElementById (anElementID) -myBGSOUND = myDocument.getElementsByName (aName)[anIndex] JavaScript syntax: -myBGSOUND = myDocument.getElementsByTagName (”BGSOUND”)[anIndex] HTML syntax: anIndex A valid reference to an item in the collection aName The name attribute of an element Argument list: anElementID The ID attribute of an element Object properties: balance,loop,src,volume Event handlers: onClick, onDblClick, onHelp, onKeyDown, onKeyPress, onKeyUp, onMouseDown, onMouseMove, onMouseOut, onMouseOver, onMouseUp This object is instantiated by the HTML tag and represents a sound effect that is to be played in the background. As the BGSOUND object is created during document loading and requires that a sound file be downloaded, there may some noticeable delay before the sound starts to play. See also: Element object Property JavaScript JScript N IE Opera DOM HTML Notes balance 3.0 + 4.0 + - ReadOnly loop 3.0 + 4.0 + - src 3.0 + 4.0 + - volume 3.0 + 4.0 + - ReadOnly Event name JavaScript JScript N IE Opera DOM HTML Notes onClick -3.0 + -4.0 + -4.0 + Warning onDblClick -3.0 + -4.0 + -4.0 + Warning onHelp 3.0 + 4.0 + Warning onKeyDown -3.0 + -4.0 + -4.0 + Warning onKeyPress -3.0 + -4.0 + -4.0 + Warning onKeyUp -3.0 + -4.0 + -4.0 + Warning onMouseDown -3.0 + -4.0 + -4.0 + Warning onMouseMove -3.0 + -4.0 + 4.0 + Warning onMouseOut -3.0 + -4.0 + -4.0 + Warning onMouseOver -3.0 + -4.0 + -4.0 + Warning onMouseUp -3.0 + -4.0 + -4.0 + Warning
This entry was posted
on Monday, September 17th, 2007 at 7:19 pm and is filed under Coldfusion.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.