One of the HTML components (HTML components)

Source: Internet
Author: User
Tags date object contains html page implement object model client

The HTML component (HTML components) is IE5. One of the major extensions of 0, and the most revolutionary, Microsoft's intention is to use HTML components to replace ActiveX controls, as with active controls, HTML components are self-contained closed objects, can be used to develop arbitrary use, the use of HTML components have many advantages, this article will show you some of them!
The HTML component brings in a lot of new terminology, ideas, objects, methods, and properties that I will accept through a calendar application that displays the date of the current month, week, and highlights the current date.

====html behavior and htc behavior = = =

The HTML component encapsulates the HTML content and can be inserted into other HTML documents. Prior to the appearance of the HTML component, the only way to use custom control in a HMTL document is to use the Microsoft ActiveX control, one of the drawbacks of ActiveX controls is that you must install the HTML control before using the client, and then download the main page to the client. HTML controls are more appealing to DHTML authors because they can develop their own controls and components in the language they are familiar with, and HTC provides a simple mechanism to implement DHTML behavior in scripts. There is no difference between an HTC file and an HTML file, and it includes a script and a series of HTC custom description elements that define attributes, methods, events, and so on for the HTML component, and all HTC elements are used as objects in the script using the object's ID attribute. All methods and properties can be dynamically manipulated in scripts.
You can use HTC to implement the following behaviors:
* Set properties and methods. Defined by "Property" and "method" elements
* Set custom events. The event element is implemented with the "Fire ()" method of the element to release the events.
Set up the event environment through the Createeventobject () method.
* Visit the DHTML Object model that contains the HTC's HTML page, and use the HTC "element" object to return
An element of an additional behavior in which HTC can access the object model (properties, methods, events) that contains the document and its objects.
* Receive notifications, using the "ATTACH" element implementation, the browser not only notifies HTC standard DHTML events, but also through
Knowledge of HTC Two special events: Oncontentready events and Ondocumentready events.
HTC encapsulates the definition of behavior, and the concept of behavior first appears in IE5. In 0, HTC's advanced behavior encapsulation is that behavior cannot be separated from element tags in IE5. In 0, the behavior in the script can be separated from the element, while in the IE5. In 5, an element cannot be separated from its original behavior.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.