hasMedia Property | Internet Development Index |
Retrieves a Boolean value that indicates whether the element is an Introduction to HTML+TIME media element.
Syntax
HTML N/A Scripting [ bMedia = ] object.hasMedia
Possible Values
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.
Example
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>
Standards Information
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
See Also
Introduction to HTML+TIME