Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Linking Cells

  • 21-04-2002 12:05AM
    #1
    Registered Users, Registered Users 2 Posts: 2,651 ✭✭✭


    I am just messing around with a new page and was doing a simple nav using cell's I have a mouse over effect on them that highlights it in Explorer but i wanted to make the whole cell clickable so i put the link tags out side the cell tags just messing around. It works with only the first cell and then not at all with the others. Any ideas?

    Below is the code for the table. Ya only really need to see the first two cells in it, the rest are the same as those.


    <table width="97%" cellspacing="0" cellpadding="0" align="center" border="1"
    bordercolor="165A76" bgcolor="#2090BE" onMouseover="changeto(event, '#00376F')" onMouseout="changeback(event, '')">
    <tr>
    <td align="left" valign="middle" height="30" bgcolor="1F86B1">
    <a href="#News"><div align="left"><font color="#FFFFFF" face="Geneva, Arial, Helvetica, san-serif" size="3"><b>
    + News</b></font></div></a>
    </td>
    </tr>
    <tr>
    <td align="left" valign="middle" height="30">
    <a href="http:/www.test.com"><div align="left"><font color="#FFFFFF" face="Geneva, Arial, Helvetica, san-serif" size="3"><b>
    + E-Mail</b></font></div></a>
    </td>
    </tr>
    </tr>
    </table>

    <edit> just took out bits of table so it fits into this post better, it was streching it all over the place</edit>

    Thx,
    Gid.


Comments

  • Banned (with Prison Access) Posts: 16,659 ✭✭✭✭dahamsta


    Not sure if I'm following you, but I reckon you want to put an onClick event handler in the TD's.
    onClick="location.href='#News'"
    
    adam


  • Registered Users, Registered Users 2 Posts: 2,651 ✭✭✭Spunog UIE


    yup that was it alrighty, cheers.
    <table width="97%" cellspacing="0" cellpadding="0" align="center" border="1" bordercolor="165A76" bgcolor="#2090BE" onMouseover="changeto(event, '#00376F')" onMouseout="changeback(event, '')">
    <tr>
    <td align="left" valign="middle" height="30" bgcolor="1F86B1" onClick="location.href='#News'" onMouseOver="this.style.cursor='hand'">
    <a href="#News"><div align="left"><font color="#FFFFFF" face="Geneva, Arial, Helvetica, san-serif" size="3"><b>
    + News</b></font></div></a>
    </td>
    </tr>
    <tr>
    <td align="left" valign="middle" height="30" onClick="location.href='#News'" onMouseOver="this.style.cursor='hand'">
    <a href="http:/www.test.com"><div align="left"><font color="#FFFFFF" face="Geneva, Arial, Helvetica, san-serif" size="3"><b>
    + E-Mail</b></font></div></a>
    </td>
    </tr>
    </table>

    Thats a bit of it^ all done but not on net yet.

    Thanks,
    Gid.


Advertisement