最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

element Object

Internet Development Index

Returns a reference to the tag in the primary document to which the behavior is attached.

Members Table

MethodDescription
createEventObject Creates an event object that can be used when passing event context information to the PUBLIC:EVENT element's fire method.

Remarks

All properties, methods, and events of the element to which the behavior is attached are accessible to HTML Component (HTC) using this object. The element object is the default object of properties, methods, or event names specified in the HTC. Therefore, they can be specified directly, without using the element keyword.

Example

This example uses a behavior to implement a table of contents that expands and collapses when the user clicks it. The HTC attaches to the element's onmouseover event and sets the color property of the element to red. The color of the element can be toggled through the style object directly, instead of referring to it as element.style. The HTC also sets the cursor property to "hand" to signal the user that the element can be clicked to toggle visibility of its children.

<PUBLIC:ATTACH EVENT="onmouseover" ONEVENT="Hilite" />
<SCRIPT LANGUAGE="JScript">
var prevColor;
function Hilite()
{
prevColor = style.color;
element.style.color  = "red";
element.style.cursor = "hand";
}
</SCRIPT>
This feature requires Microsoft® Internet Explorer 5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

See Also

Introduction to DHTML Behaviors, Implementing DHTML Behaviors in Script
炉霍县| 乡城县| 洪洞县| 宁化县| 泗洪县| 五莲县| 郸城县| 巴南区| 临颍县| 罗田县| 五莲县| 通山县| 武穴市| 雅安市| 留坝县| 南汇区| 咸阳市| 江阴市| 大同市| 浠水县| 开封县| 尼木县| 天峻县| 襄垣县| 武平县| 嵩明县| 石台县| 民乐县| 双鸭山市| 宕昌县| 密云县| 利辛县| 彭阳县| 翼城县| 宁都县| 图木舒克市| 平遥县| 陕西省| 白水县| 阿克苏市| 临沧市|