Linking A Cell

  • Hacker007
  • Proficient
  • Proficient
  • User avatar
  • Joined: Apr 07, 2004
  • Posts: 371
  • Loc: Riverside, CA
  • Status: Offline

Post May 29th, 2004, 1:24 pm

Linking A Cell, Ya, i forgot how to do that lol. Its loacation= or somthing like that I have done it before, but need a refreshers couse if anyone can help. The code im using is:

Code: [ Select ]
<table BORDER=1 BORDERCOLOR="black" CELLPADDING=0 CELLSPACING=0>
 <tr>
  <td bgcolor="black" background="pip.gif" width=115 height=18><strong><font color="yellow" size="2">&raquo; Zero Gravity</font></strong></td>
 </tr>
 <tr bgcolor=steelblue>
   <td onmouseover="style.backgroundColor='navy';" onmouseout="style.backgroundColor='steelblue';">Home</td>
 </tr>
 <tr bgcolor=steelblue>
   <td onmouseover="style.backgroundColor='navy';" onmouseout="style.backgroundColor='steelblue';">Home</td>
 </tr>
 <tr bgcolor=steelblue>
   <td onmouseover="style.backgroundColor='navy';" onmouseout="style.backgroundColor='steelblue';">Home</td>
 </tr>
 <tr bgcolor=steelblue>
   <td onmouseover="style.backgroundColor='navy';" onmouseout="style.backgroundColor='steelblue';">Home</td>
 </tr>
</table>
  1. <table BORDER=1 BORDERCOLOR="black" CELLPADDING=0 CELLSPACING=0>
  2.  <tr>
  3.   <td bgcolor="black" background="pip.gif" width=115 height=18><strong><font color="yellow" size="2">&raquo; Zero Gravity</font></strong></td>
  4.  </tr>
  5.  <tr bgcolor=steelblue>
  6.    <td onmouseover="style.backgroundColor='navy';" onmouseout="style.backgroundColor='steelblue';">Home</td>
  7.  </tr>
  8.  <tr bgcolor=steelblue>
  9.    <td onmouseover="style.backgroundColor='navy';" onmouseout="style.backgroundColor='steelblue';">Home</td>
  10.  </tr>
  11.  <tr bgcolor=steelblue>
  12.    <td onmouseover="style.backgroundColor='navy';" onmouseout="style.backgroundColor='steelblue';">Home</td>
  13.  </tr>
  14.  <tr bgcolor=steelblue>
  15.    <td onmouseover="style.backgroundColor='navy';" onmouseout="style.backgroundColor='steelblue';">Home</td>
  16.  </tr>
  17. </table>


Any help would be great thank you :wink:
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 29th, 2004, 1:24 pm

  • RichB
  • Guru
  • Guru
  • User avatar
  • Joined: May 17, 2003
  • Posts: 1121
  • Loc: Boston
  • Status: Offline

Post May 29th, 2004, 1:29 pm

You could add an onclick handler to the td:

Code: [ Select ]
onclick='location.href="http://www.yahoo.com"'


but it would still be a good idea to wrap an ordinary link around the text inside the cell for people who have disabled javascript.

Personally I prefer using CSS Rollover menus to generate this effect:

http://www.ssi-developer.net/css/menu-r ... fect.shtml
Free Programming Resources
  • Hacker007
  • Proficient
  • Proficient
  • User avatar
  • Joined: Apr 07, 2004
  • Posts: 371
  • Loc: Riverside, CA
  • Status: Offline

Post May 29th, 2004, 1:31 pm

Thank you for the help rich. And I'll take your advice ;)

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 136 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.