ID Attribute | Internet Development Index |
Provides a unique identifier for an element. Read/write String.
Applies To
All VML elements.Shape-->
Tag Syntax
<v:elementname id="idname">
Script Syntax
elementname.id="idname"
expression=elementname.id
Remarks
Use ID to refer to a specific element. Once you have created a shape and given it an ID, you can use the ID name when you want to manipulate the element.
ID is required to use the ShapeType element.
When VML is generated by Microsoft Office, if an object model name is assigned to the shape, then ID is set to this name. If the object model name is not set, then the name is generated using the Spid (internal shape ID) plus a prefix (S for shape, M for master shape, T for shapetype).
VML Standard Attribute.
Example
To change the attributes of a shape, you must first give the shape an ID; for example, "myrect".
<v:rect id=myrect fillcolor="red" style="position:relative;top:1;left:1;width:20;height:20"> </v:rect>Then you can use the following VBScript code to change the size and color of the shape.
myrect.style.width = 80 myrect.style.height = 80 myrect.fillColor = "green"
ID Attribute Example. (Requires Microsoft Internet Explorer 5 or greater.)
治县。| 南郑县| 兴和县| 深水埗区| 秭归县| 桦甸市| 涟水县| 凉城县| 尉犁县| 鄂伦春自治旗| 安福县| 滕州市| 来凤县| 伊川县| 江陵县| 吴桥县| 平利县| 神木县| 滕州市| 华池县| 广宁县| 林州市| 山东省| 高碑店市| 高清| 环江| 台中县| 定边县| 营口市| 忻城县| 库尔勒市| 麻江县| 孟州市| 武邑县| 福清市| 桃园市| 牡丹江市| 正定县| 淅川县| 北海市| 万全县|