...

View Full Version : Easy Q - change other words colour!



Aiden
02-09-2004, 01:41 AM
Hi,

This is a easy question (I'm sure) but it's got me! I have this table with two columns - when you hover over a word ("Link 1") in the second column I want to change the colour of the word ("GO") in the first column....

e.g.

<TABLE>
<TR>
<TD BGCOLOR="#FF0000">
<font id="arRow1" style="color:#FF0000;">GO</FONT>
</TD>
<TD bgcolor="#FFFFFF">
<A HREF="#" onMouseOver="document.getElementById('arRow1').style.color='#FFFFFF';" onMouseOut="document.getElementById('arRow1').style.color='FF0000';">Link 1</A>
</TD>
</TR>
</TABLE>

--------------------

I'm sure it's easy - I tried referencing "document.getElementById('arRow1').style.fontColor" etc. Nothing worked for me!

Thanks in advance! Aiden

squirellplaying
02-09-2004, 01:51 AM
I'm not sure what the problem is, but I copied that code and it worked fine for me.... The "go" turned white. Then back to red when it wasn't over the link.

Aiden
02-09-2004, 02:16 AM
Looks fine - think it was something else conflicting in my page - good.... false alarm....

Thanks



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum