Changing font color with onmouseover |
Changing font color with onmouseover |
jazz vb |
Apr 14 2013, 01:15 PM
Post
#1
|
Novice Group: Members Posts: 24 Joined: 14-April 13 Member No.: 19,010 |
Hello,
There are many sites who explain the principle of onmouseover, but still I cannot get it to work on my site. Can anybody tell me what I'm doing wrong? The idea is to change the word in the box to black when you move the mouse hand over it. Changing the background color works fine. <table bgcolor="black" width="50%" border="1" rules="all" cellpadding="60" align="center"> <tr align="center" > <td onclick="window.location='who.html'" style="cursor:pointer;" onMouseover="this.bgColor='#FFFF6F',this.fontcolor='black';" onMouseout="this.bgColor='black'"><width="25%"><font color="white"><font size="20"> Who? </font size></font></td> In the css file I have: td onclick a { display: block; width: 100%; height: 100%; } Jazz |
Lo-Fi Version | Time is now: 19th April 2024 - 10:27 PM |