Sets or retrieves the content type of the resource designated by the value attribute.
dhtml语法
HTML | <PARAM TYPE
= p... >
|
---|
Scripting | PARAM.type(v) [ = p ] |
---|
DHTML可能的值
p | String that
specifies or receives the content type of the resource designated by the value attribute only in the case where valuetype is set to ref. this attribute thus specifies for the user agent the type of values that will be found at the Uniform Resource Identifier (URI) designated by value. |
The property is read/write.
The property has no default value.
Remarks
The content type specifies the nature of a linked resource. Examples of content types include "text/html", "image/png", "image/gif", "video/mpeg", "audio/basic", "text/tcl", "text/javascript", and "text/vbscript". For the current list of registered content types, see media types .
DHTML代码范例
The following example shows how to use the param element to specify a run-time parameter for the object specified by the object element. a uri is specified for the microsoft windows media® player control.
<object classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95">
<PARAM NAME="FileName"
VALUE="/hbcms/php/r.php?url=http%3A%2F%2Fmsdn.microsoft.com/workshop/samples/author/behaviors/media/28movie.asf"
VALUETYPE="ref" TYPE="video/*"/>
</OBJECT>
是否符合公共标准
This property is defined in
World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To
更多语法参考
binding html elements to data, Introduction to Data Binding