The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Changing font color with onmouseover
jazz vb
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 10:27 PM