最新国产好看的视频,伊人天堂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
澄江县| 三台县| 济宁市| 潢川县| 娄烦县| 如皋市| 盐源县| 尼勒克县| 南江县| 临江市| 遂川县| 金堂县| 塘沽区| 阜新市| 拜城县| 施秉县| 策勒县| 田阳县| 陕西省| 永德县| 隆安县| 平湖市| 闻喜县| 农安县| 萨嘎县| 铜川市| 阳江市| 绥芬河市| 疏勒县| 祁阳县| 尚志市| 德保县| 司法| 福海县| 德清县| 富宁县| 蒙自县| 靖边县| 繁峙县| 邢台市| 通州市|