HTML Component (HTML COMPONENTS) is IE5. 0 One of the major expansion, its also the most revolutionary, Microsoft's intention is to replace HTML ACTIVEX control components, and as ACTIVE controls, HTML component is from the continued closure of the object can be an arbitrary use of the development, use HTML components has many advantages, this article will reveal some of you are!
HTML components into a lot of new terms, ideas, objects, methods, and properties, I will give you a calendar application to accept these, the application displays the current month of the calendar date, week and highlight the current date.
==== HTML behavior and conduct === HTC
HTML component encapsulates HTML content, and can be inserted into another HTML document. Before the appearance of the HTML component in the HMTL document using a custom control the only way is to use Microsoft ACTIVEX controls, ACTIVEX controls One of the drawbacks is the use of a client before installing HTML controls, on the other hand will be downloaded to the main page clients, is the author of HTML for the DHTML control is more attractive because they can use their familiar language to develop their own controls and components, HTC provides a simple mechanism to implement DHTML behaviors in script. A HTC file and HTML files without any difference, and to ". Htc" for the suffix, which includes a series of HTC custom scripts and explain elements, these elements define the HTML component properties, methods, events, etc., all of HTC elements by the object ID attribute as an object used in the script, all the methods and properties can be dynamic action in the script.
You can use the HTC achieve the following acts:
* Set the properties and methods. Through the "PROPERTY" and "METHOD" element of the definition of
* Set a custom event. Through the "EVENT" element to achieve, with the element of "fire ()" method of release events,
By "createEventObject ()" method to set the event environment.
* Included in the visit of the HTML page HTC DHTML object model, using HTC's "element" object to return
An additional element of behavior, the use of the object, HTC can visit include the text block and its object model (properties, methods, events).
* Receipt of notice, using "ATTACH" element to achieve, the browser will not only inform the HTC standard DHTML events, and links
HTC to know two special events: oncontentready events and ondocumentready event.
HTC encapsulates the behavior of the definition of the concept of behavior the first time in IE5. 0 in, HTC's advanced behavioral elements package that behavior can not and marked separation in IE5. 0, in the script behavior can be separated from the elements , while in IE5. 5, the element can not separate their original behavior.
Recommended links:
Europe And The United States Will Not Be Outsourced As "mirage"?
CCTV denied billion purchase broadcast rights for English Premier League: or 25 million U.S. dollars
MPEG4 To MPEG
3GPP To WMV
VC Environment Created In The Symbian Build EXE Project Questions
Rising Harm The User Did Not Apologize For Doing Odd Tiger, Said To Be Practical
MII further notice irregularities SP will be ORDERED to stop
Knowledge Of Equality Before The
citic development trust and Investment corporation
C + + Motto: As Long As Possible On The Use Of Const
Ad Blockers Storage
MPG to DivX
Wizard Chat And Instant Messaging
Adventure AND Roleplay reviews