isMuted参数属性 | DHTML中文手册 |
Retrieves a value indicating whether the element's audio is currently muted.
dhtml语法
[ bMuted = ] currTimeState.isMuted
DHTML可能的值
bMuted Boolean that receives one of the following values.
true Element's audio is currently muted. false Default. Element's audio is not muted. The property is read-only. The property has a default value of false.
DHTML代码范例
This example demonstrates the use of the isMuted property. The isMuted property returns true if the element's audio is muted or false if the element's audio is not muted.
<HTML XMLNS:t="urn:schemas-microsoft-com:time"> <HEAD> <TITLE>isMuted Property</TITLE> <?IMPORT namespace="t" implementation="#default#time2"> <STYLE> .time{ behavior: url(#default#time2);} </STYLE> <SCRIPT> function checkIsMuted(){ if(m1.currTimeState.isActive) isMuted1.innerText='isMuted: ' + m1.currTimeState.isMuted; else isMuted1.innerText='isMuted: No active object'; } </SCRIPT> </HEAD> <BODY TOPMARGIN=0 LEFTMARGIN=0 BGPROPERTIES="FIXED" BGCOLOR="#FFFFFF" LINK="#000000" VLINK="#808080" ALINK="#000000"> <t:media id="m1" begin="indefinite;" src="../../common/samples/author/behaviors/media/shuttle3.wmv" fill="remove"/> <BR><BR> <SPAN id="isMuted1">isMuted: No active object</SPAN> <BR><BR> <BUTTON id="b0" onclick="m1.beginElement();checkIsMuted();">Start</BUTTON> <BUTTON id="b3" onclick="m1.endElement();checkIsMuted();">Stop</BUTTON> <BR><BR> <B>Volume control:</B> <input type="radio" name="i1" onpropertychange="m1.mute='true';checkIsMuted();">Mute <input type="radio" name="i1" onpropertychange="m1.mute='false';m1.volume=100;checkIsMuted();" checked>100% Volume </BODY> </HTML>
是否符合公共标准
This property is a Microsoft extension to Synchronized Multimedia Integration Language (SMIL) .
Applies To
currTimeState
更多语法参考
introduction to html+time, mute