Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Linking Cells

  • 20-04-2002 11:05pm
    #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