Web Analytics Made Easy -
StatCounter Easy Q - change other words colour! - CodingForum

Announcement

Collapse
No announcement yet.

Easy Q - change other words colour!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Easy Q - change other words colour!

    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

  • #2
    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.

    Comment


    • #3
      Yeah - sorry

      Looks fine - think it was something else conflicting in my page - good.... false alarm....

      Thanks

      Comment

      Working...
      X