Microsoft KB Archive/221214

= How to Create DHTML Buttons Using Table Cells and Style Sheets =

Article ID: 221214

Article Last Modified on 8/8/2007

-

APPLIES TO


 * Microsoft Internet Explorer Administration Kit 4.0
 * Microsoft Internet Explorer Administration Kit 4.01
 * Microsoft Internet Explorer Administration Kit 4.01a
 * Microsoft Internet Explorer Administration Kit 5.0

-



This article was previously published under Q221214



SUMMARY
Internet Explorer versions 4.0 and later provide a rich set of programming features for Web authors through Dynamic HTML (DHTML) scripting. One of the more useful features allows you to dynamically change text attributes. This article describes how to use this functionality to create button-style behavior using DHTML and style sheets.



MORE INFORMATION
The following example code demonstrates how to create buttons using style sheets for color definitions and Dynamic HTML to provide color change functionality, while still preserving HTML links for older browsers. DHTML Buttons A {   COLOR: white; TEXT-DECORATION: none } .normal {   BACKGROUND-COLOR: black; COLOR: white } .hover {   BACKGROUND-COLOR: blue; COLOR: white }

For more information on Microsoft scripting technologies, see the following Web site:

http://msdn2.microsoft.com/en-us/library/ms950396.aspx

Additional query words: stylesheet

Keywords: kbhowto KB221214

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.