Forum Moderators: open

Message Too Old, No Replies

Javascript linking from main page

         

didmaz

5:35 am on Mar 3, 2006 (gmt 0)

10+ Year Member



I read in a post recently that you should have html links & not javascript on main page to allow them to be accessed by the bots. All my links on my main page are in javascript and it would ruin the look/theme of it if I were to include standard links.
My question is, can I include the link and leave out the decription that is normally displayed and will the bots pick this up.

thanks

Wlauzon

7:19 am on Mar 3, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Some (most?) search engines can read the Java, but it is not foolproof.

What I do on JS menu pages is put some text links in small type (but not too small to read) at the bottom of each page. This also takes care (somewhat) of those people that have Java turned off.

jatar_k

7:25 am on Mar 3, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



welcome to WebmasterWorld didmaz,

I would suggest changing them to straight html links

if you are worried about look then maybe some css would do it

tedster

9:05 am on Mar 3, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



it would ruin the look/theme of it if I were to include standard links

That comment makes me think you might be using javascript to get a rollover effect on a linked image. Is that the case? If so, then javascript only needs to be involved in the attributes onmouseover and onmouseout, and not in the link itself.

As long as you have <a href="some-url"> then some javascript in the rest of the anchor element will not be a problem for the spiders. Although if you are using an image, then you lose the extra SEO "punch" of having keyword text in the link.

If you really need to use an onclick for some reason, you can still go with <a href="some-url" onclick="some-method();return false;"> User agents with javascript turned off (like a spider!) will still get a link they can follow.

didmaz

8:52 am on Mar 4, 2006 (gmt 0)

10+ Year Member



thanks for the replys,

I'll try adding the links and see how it looks. I reckon I'll get away with adding them at the bottom of the page, where you'd have to scroll to see them.

thanks again.