Monday, 16 January 2012

Changing Table Background Colors on Mouse-over


If you're looking for a great way to spice up your HTML tables, this HTML mouseover code may be just what you're looking for. You can also change background color in this code.

<!-- This Script is Coded by: Umais Bin Sajjad-->
<TABLE BORDER="2" CELLPADDING="2" WIDTH="100%">
<TR onMouseover="this.bgColor='#EEEEEE'"onMouseout="this.bgColor='#FFFFFF'">
<TD>Your Table Data</TD>
</TR>
<TR onMouseover="this.bgColor='#EEEEEE'"onMouseout="this.bgColor='#FFFFFF'">
<TD>Your Table Data</TD>
</TR>
<TR onMouseover="this.bgColor='#EEEEEE'"onMouseout="this.bgColor='#FFFFFF'">
<TD>Your Table Data</TD>
</TR>
</TABLE> 


Demo
Your Table Data
Your Table Data
Your Table Data

No comments:

Post a Comment