Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
Samples
|
Internet Explorer 5 DemosFootnote DHTML Behavior |
||||
Download sample | Demo | |||
Description
DHTML Behaviors are a new Internet Explorer 5.0 feature that enable developers to create reusable functionality that can use and extend the object model, and can easily be leveraged by page authors. DHTML Behaviors can be used to modify or extend the behavior of existing HTML tags, or to create tags with new functionality.
More Details
In the sample above, notice that the script that implements the footnote (or actually, endnote) functionality is encapsulated in a separate file. Also notice that the footnote behavior extends the object model, exposing two new properties, reformatas and textformat. To use footnotes on a Web page, the page author simply inserts
These new features of Dynamic HTML are supported in Microsoft Internet Explorer 5.0 Beta for Windows 95 and Windows NT.
UsageUse the proposed new CSS behavior attribute to associate a behavior with a CSS class.