mimeType Property | DHTML中文手册 |
Retrieves the MIME content-type of the object.
dhtml语法
HTML N/A Scripting [ sMimeType = ] object.mimeType
DHTML可能的值
sMimeType String that receives the MIME content-type of the object. The property is read-only. The property has no default value.
Remarks
MIME is an abbreviation for Multipurpose Internet Mail Extension.
DHTML代码范例
This example uses the mimeType property to retrieve the MIME content-type of the media object.
<HTML XMLNS:t="urn:schemas-microsoft-com:time"> <HEAD> <TITLE>mimeType Property</TITLE> <?IMPORT namespace="t" implementation="#default#time2"> <STYLE> .time{ behavior: url(#default#time2);} </STYLE> </HEAD> <BODY> <t:video id="m1" src="../../common/samples/author/behaviors/media/movie.avi" /> <BR><BR> <B>mimeType:</B> <SPAN id="mimeType1" class="time" dur="1" repeatCount="indefinite" onrepeat="mimeType1.innerText=m1.mimeType;"></SPAN> </BODY> </HTML>
applies to
t:ANIMATION, t:AUDIO, t:IMG, t:MEDIA, t:REF, t:VIDEO
更多语法参考
Introduction to HTML+TIME