HTC Special Elements Attach: The event from the components container is bound to the component
Component: Used in the HTC file to define it as a component
Event: Used by HTC to display the container to it
Method: A common process of components, it is displayed to the component of the component
Property: Public properties of components
Note: In addition to the attach element, (Attach Elements No Name Attributes) Each element has a Name property and ID attribute. Contains documentation Use the Name property to reference the corresponding elements, ID attributes are used to reference the corresponding elements in the HTML component itself.
Each element usage:
Tattach
Property Description:
Event: Specify the name of a DHTML event or assign the name of any event to an HTC (
Required attribute)
For: Identify the source of the event. The value is as follows: Document refers to the document object for the HTML document; ELEMENT means an element attached to an act (
Default); Windows refers to the window object of the browser
Onevent: When triggering an event or processing an in-built script, specify the name of the function called
ID: Specify a unique identifier for the additional element of the component
2.compent
Property description
Name: Specifies the name of the behavior used to include the documentation
ID: Specify a unique identifier for component elements in the component
URN: Specifies the Uniform Resource Name, URN for the uniform identity component
Note: The Component element on the MSDN is more than these attributes, especially IE6.0, which can be observed.
3. DEFAUTLS (Support after IE5.5)
You can use the Defaults element to set the default attribute value of the HTC, which is optional.
ContenTEditable = "true / false" canhavehtml = "true / false" ViewinheritStyle = "true / false" ViewMastertab = "true / false" ViewLinkContent = "True / False"> Property description TabStop: Specifies whether you can press the TAB button in the parent container page to locate the component. The default value is false STYLE: Statout string for specifying the style of the HTC definition tag ContentEdITable: Set whether the user can edit content. By default, HTC will inherit this property from its parent container based on its parent container to edit content. No matter how the ability of his parent container page, you can This property is set to false to disable the editing function. Set this value to TURE to enable content editing, but will still be restricted by its parent capacity CanhaveHtml: Specifies whether the content of the HTC tag can contain HTML tags ViewinHeritStyle: Specifies whether the content of the HTC tag can contain HTML tags ViewMastertab: Specifies whether the main element of the HTC is part of the Tab key order of the primary document. ViewLinkContent: Specifies whether to use the HTC tag as ViewLink. The default value is false 4.Event Property description Name: Specifies the name of the event containing the document display. (Must attribute) ID: Specify a unique identifier for event elements in the component 5.method Property description Name: Specifies the name containing the document to call the method, if the internal name is not specified, then when the method is called, this is the name called the function ( Must be attribute) ID: Specify a unique identifier for event elements in the component INTERNALNAME: When the method is called, specify an optional name of the function that will be called inside the component. 5.Property Property description Name: Specifies the name of the attribute that contains the document display. Must be attribute) ID: Specify a unique identifier for attribute elements in the component INTERNALNAME: Specifies the name used by reference attributes in the component GET: Specifies the functions that are called when you retrieve attribute values PUT: Specifies the function called when setting the attribute value PERSIST: Specify whether to keep attributes as part of the page Value: Specify the default value of the property Note: If the element is only a get function, then the property is read-only in the public interface. In vice, it is only written in the public interface if only the PUT function is only written. HTC method CreateEventObject () Description: Create a DHTML event object, when calling the Fire method, you can use this object to pass event information to the included document. Eventid.fire ([EVENTOBJECT]) Description: Trim an event to the container, which can only trigger the event specified in the HTC event OnContentReady: Triggers when the browser resolves the element to which the behavior belongs OnContentSave: Triggered before copying or saving the element content of the Identity behavior OnDetach: Triggered before deleting behavior from the elements belonging to the behavior OnDocumentReady: Triggered after containing the page. This event will trigger the script, image, microsoft ActiveX control, and other elements downloaded on the page. This event will trigger the Window.OnLoad event. There are also 3 HTC objects. DEFAULTS: Used to set the default behavior on ELEMENT behavior through the program, all attributes with the DEFAULTS element in front Document: This object provides program access to basic tags in Element behavior, which is the same as members of the DHTML DOM document object. ELEMENT: This object provides program access to basic elements bonded to behavior NOTE: Defaults and Document objects are only suitable for IE5.5 Note: Information from Windows Web Script Development Guide PS: I don't know when it is copied, and I turned it, I hope to use it. : D