hasMedia参数属性 | DHTML中文手册 |
Retrieves a Boolean value that indicates whether the element is an introduction to html+time media element.
dhtml语法
html n/a scripting [ bmedia = ] object.hasmedia
dhtml可能的值
bMedia Boolean that receives one of the following values.
true The element is an Introduction to HTML+TIME media element. false The element is not an Introduction to HTML+TIME media element. The property is read-only. The property has no default value.
DHTML代码范例
The following brief code sample uses an alert message to show the value of the hasMedia property.
<HTML XMLNS:t="urn:schemas-microsoft-com:time"> <HEAD> <TITLE>hasMedia Property</TITLE> <?IMPORT namespace="t" implementation="#default#time2"> <STYLE> .time{ behavior: url(#default#time2);} </STYLE> <SCRIPT> function doFunction(){ alert('hasMedia: ' + m1.hasMedia); } </SCRIPT> </HEAD> <BODY TOPMARGIN=0 LEFTMARGIN=0 BGPROPERTIES="FIXED" BGCOLOR="#FFFFFF" LINK="#000000" VLINK="#808080" ALINK="#000000"> <t:media id="m1" begin="0" src="../../common/samples/author/behaviors/media/shuttle3.wmv" onmediacomplete="doFunction();" fill="remove"/> </BODY> </HTML>
是否符合公共标准
This property is a Microsoft extension to Synchronized Multimedia Integration Language (SMIL) .
Applies To
A, ACRONYM, ADDRESS, t:ANIMATE, t:ANIMATECOLOR, t:ANIMATEMOTION, t:ANIMATION, AREA, t:AUDIO, B, BIG, BLOCKQUOTE, BUTTON, CAPTION, CENTER, CITE, CODE, DD, DEL, DIR, DIV, DL, DT, EM, FIELDSET, FONT, FORM, hn, HR, I, IFRAME, IMG, t:IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, KBD, LEGEND, LI, LISTING, MARQUEE, t:MEDIA, MENU, OL, OPTION, P, PLAINTEXT, playItem, PRE, Q, t:REF, S, SAMP, t:SEQ, t:SET, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, t:SWITCH, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, time2, TR, TT, U, UL, VAR, t:VIDEO, XMP
更多语法参考
Introduction to HTML+TIME