Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2002
    Location
    Australia
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 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
    Regular Coder
    Join Date
    Jan 2004
    Location
    Maryland
    Posts
    468
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #3
    New Coder
    Join Date
    Jun 2002
    Location
    Australia
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Yeah - sorry

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

    Thanks


  •  

    Posting Permissions

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