JavaScript Reference/Javascript Properties/valueType
Содержание
"valueType" Example
<html>
<body>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.ru/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
width="243"
height="194">
<param id="myP1" name="movie" value="yourfile.swf" valuetype="ref" type="video/*">
<param id="myP2" value="high" name="quality">
<script language="JavaScript">
document.getElementById("myP1").valueType = "ref";
</script>
</object>
</body>
</html>
"valueType" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<param> |
+----------------+--------------------------------------------------------------+
"valueType" Possible Values
Possible Values
data,
ref the value attribute is a URI
object the value attribute is the name of an object.
"valueType" Syntax and Note
Note:
Read and write property.
Sets the data type of attribute in the <param> element.
Syntax:
document.getElementById("paramID").valueType = value
document.all.paramID.valueType = value // IE only