Results 1 to 15 of 15

Thread: Change font color on mouse over

Threaded View

  1. #1
    Join Date
    Feb 2004

    Change font color on mouse over

    Hey everyone --

    In my page I have the cell backgorund color change when the cell is moused over. I would also like the font color to change to white (#FFFFFF) when the cell is moused over as well, but I don't know how. I know how to make the text change when the text is hovered, but I want the text to change when the entire cell is hovered, if possible. Here is the code for a sample cell:

    PHP Code:

    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#008080" width="100%" height="34" bgcolor="#95BED4">
    td onMouseOver="this.style.backgroundColor='#2172A1'; this.style.cursor='hand';" onMouseOut=this.style.backgroundColor="#95BED4" width="20%">
    p align="center"><b><font face="Verdana" color="#2172A1" size="2">Home</font></b></td>
    Thanks for all your help!
    Last edited by jeffy777; 08-22-2005 at 01:16 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center