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

PUBLIC:METHOD Element

Internet Development Index

Defines a method of the HTML Component (HTC) to be exposed to the containing document.

Syntax

<PUBLIC:METHOD
    ID = "sID"
    INTERNALNAME = "sInternalName"
    NAME = "sName"
/>

Attributes

ID
Optional. String that uniquely identifies the PUBLIC:METHOD element within the component. This attribute is analogous to the ID attribute in Dynamic HTML (DHTML).
INTERNALNAME
Optional. String that specifies the name by which the method is referred to within the component. If no value is specified, the NAME attribute is used by default.
NAME
Required. String that specifies the name by which the method is referred to in the containing document. By default, the NAME specified is also used to refer to the method within the component, unless an INTERNALNAME attribute is specified.

Element Information

Parent elementsPUBLIC:COMPONENT
Child elements None
Minimum availabilityInternet Explorer 5
Minimum operating systems Windows 95, Windows NT 4.0

Remarks

By specifying a NAME attribute similar to a standard method name already defined for the element, a behavior can override the element's default behavior.

Examples

This example uses the PUBLIC:METHOD tag to expose the startFlying method from the HTC to the containing document.

<PUBLIC:COMPONENT NAME="toFly">
<PUBLIC:METHOD NAME="startFlying" />
<SCRIPT LANGUAGE="JScript" >
function startFlying()
{
// Insert flying code here
}
</SCRIPT>
</PUBLIC:COMPONENT>

This example of a containing document demonstrates one way to call the method.

<HTML>
<HEAD>
<STYLE>
.FLY   {behavior:url(fly.htc)}
</STYLE>
</HEAD>
<BODY ID="flyingHigh" class="FLY">
<DIV onclick="flyingHigh.startFlying()">
<!-- Insert stuff to fly -->
</DIV>
</BODY>
</HTML>

See Also

Introduction to DHTML Behaviors, Using HTML Components to Implement DHTML Behaviors in Script, PUBLIC:EVENT, PUBLIC:PROPERTY
淄博市| 朝阳区| 盐源县| 建水县| 炎陵县| 托克逊县| 福安市| 左权县| 明光市| 兴义市| 会泽县| 应城市| 汝城县| 托克逊县| 建德市| 青岛市| 新和县| 驻马店市| 通辽市| 合水县| 驻马店市| 龙南县| 安龙县| 佛山市| 无极县| 洪洞县| 象山县| 小金县| 临汾市| 闽侯县| 东莞市| 哈巴河县| 疏勒县| 鲜城| 屯昌县| 上栗县| 永新县| 罗甸县| 林周县| 仁怀市| 临桂县|