JavaScript Reference/Javascript Properties/classid
Версия от 18:30, 25 мая 2010; (обсуждение)
"classid" Example
<html>
<body>
<script>
function activate() {
document.all.myO.classid = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";
}
</script>
<object id="myO"
codebase="http://download.macromedia.ru/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
width="250"
height="230">
<param name=movie value="yourflashmovie.swf">
<param name=quality value=high>
</object>
<br>
<button onclick="activate();">Activate</button>
</body>
</html>
"classid" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<object> |
+----------------+--------------------------------------------------------------+
"classid" Syntax and Note
Note:
Read and write property.
Specifies the class identifier.
Value:
A string with the following format: "clsid:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX".
Syntax:
document.all.objectID.classid = value