Click to return to the DHTML, HTML     
onerror Event     Behaviors Library    
Web Workshop  |  DHTML, HTML & CSS

rowover Behavior


Enables alternate row shading and row highlighting for TABLE elements.

Syntax

XMLN/A
HTML<TABLE STYLE="behavior:url('rowover.htc')" ID=sID>
ScriptingoTable.style.behavior = "url('rowover.htc')"
oTable.addBehavior ("rowover.htc")

Possible Values

sID String that uniquely identifies the object.

Members

Styles

Remarks

The behavior-defined members listed in the preceding table are not accessible through script until the window.onload event fires. Waiting for this event to fire ensures that the page is completely loaded, that all behaviors have been applied to corresponding elements on the page, and, consequently, that all the behavior's properties, methods, and events are available for scripting. Attempting to use any of the behavior-defined members will result in a scripting error indicating that the object does not support that particular member.

The rowover.htc file can be downloaded from the rowover sample page.

In addition to the members and styles previously listed, the rowover behavior supports:

Example

This sample demonstrates the implementation and adjustments of the rowover behavior.

<style>
.rowover{behavior: url(rowover.htc)}
</style>

<TABLE CLASS = "rowover">
<TR><TD>Some Text</TD></TR>
<TR><TD>Some Text</TD></TR>
<TR><TD>Some Text</TD></TR>
</TABLE>
This feature requires Internet Explorer 5 or later. Click the icon below to install the latest version. Then reload this page to view the sample.
Microsoft Internet Explorer

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
TABLE

See Also

DHTML Behaviors, Using DHTML Behaviors



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.