Forum Moderators: open

Message Too Old, No Replies

onClick links and search engines

         

styler99

4:19 pm on Dec 2, 2004 (gmt 0)



hi guys

i'm still learning about this web design stuff, so please bear with me!

the nav elements in my site are coded similar to this example:-

<td width="90" valign="top" bgcolour="#CCCCCC class="mainnav"
onClick="location.href='galleries.html';"
onMouseOver="this.style.backgroundColour='#FFFF00';
this.style.cursor='hand';"
onMOuseOut="this.style.backgroundColour='#CCCCCC;">print info</td>

dreamweaver doesn't see the links, but i didn't really think to check whether search engines will see them. they probably won't, will they?

if not, would it be easier to change them all to a simpler link, or change all the links in the above code to absolute urls? if i do the latter, won't it be trickier to test in dreamweaver?

hope that all makes sense! it doesn't really to me, which is probably what the problem is!

thanks
simon

CaseyRyan

9:42 pm on Dec 3, 2004 (gmt 0)

10+ Year Member



I think you could just use your existing code and wrap the displayed text portion in a link going to the same place. Then search engines and dreamweaver should be able to see it.

Code would look like this:


<td width="90" valign="top" bgcolour="#CCCCCC class="mainnav"
onClick="location.href='galleries.html';"
onMouseOver="this.style.backgroundColour='#FFFF00';
this.style.cursor='hand';"
onMOuseOut="this.style.backgroundColour='#CCCCCC;"><a href="galleries.html">print info</a></td>

You'll probably want to augment the style of the link so that it matches that of your mouseovers in the td.

-=casey=-