theone3
02-15-2006, 04:44 AM
I have a table with some <td>'s which I'd like to make act like links. You can see them for yourself here: http://www.alirobe.com/kingfisher2/products.htm (old version of site!)
They work at the moment using this code:
<td class="hovtbl"
onmouseover="this.className='hovtblover'"
onmouseout="this.className='hovtbl'"
onclick="document.location = 'fullcatalogue.htm'"
style="cursor:pointer">
Inside the table, there is also a linked piece of text.
What I'd like to do is to call the link from that piece of text and use that instead of document.location. The main reason for this is automated link management (i.e. moving pages) and simplicity of maintainence. On the products.htm page, this is not that important, but I am trying to use this link on other pages throughout the site.
Is this possible? If so, how and using what methods? Any help would be much appreciated! (Yes, I'm a newbie, but I've subscribed, so I'll be back ;))
They work at the moment using this code:
<td class="hovtbl"
onmouseover="this.className='hovtblover'"
onmouseout="this.className='hovtbl'"
onclick="document.location = 'fullcatalogue.htm'"
style="cursor:pointer">
Inside the table, there is also a linked piece of text.
What I'd like to do is to call the link from that piece of text and use that instead of document.location. The main reason for this is automated link management (i.e. moving pages) and simplicity of maintainence. On the products.htm page, this is not that important, but I am trying to use this link on other pages throughout the site.
Is this possible? If so, how and using what methods? Any help would be much appreciated! (Yes, I'm a newbie, but I've subscribed, so I'll be back ;))