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 2 of 2
  1. #1
    Regular Coder
    Join Date
    Sep 2004
    Posts
    713
    Thanks
    6
    Thanked 2 Times in 2 Posts

    how to make this effect

    Code:
    <table>
    <tr>
    <!--cell1-->
    <td bgcolor="blue" height="5"></td>
    <!--end cell1-->
    </tR>
    <tr>
    <td>
    <a href="love.html"><img src="love.gif"></a></td>
    </tr>
    </table>
    how to do this effect when i mouse over the love.gif, the color of cell1 change from blue to orange?
    flying dagger

  • #2
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,695
    Thanks
    0
    Thanked 232 Times in 227 Posts
    Hi there xiaodao,

    like this?...
    Code:
    <table>
    <tr>
    <td id="cell1" style="background-color:blue;height:5px;"></td>
    </tr><tr>
    <td><a href="love.html"><img src="love.gif" onmouseover="document.getElementById('cell1').style.backgroundColor='orange'"></a></td>
    </tr>
    </table>
    coothead


  •  

    Posting Permissions

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