Forum Moderators: open
I suppose hpops could be talking about some other type of javascript button that i'm not familiar with, but I assumed we were talking about an image/button, that serves as a link, that has an alternate image/button that is displayed via javascript "onmousover".
here's an example of what I assume WOULD be spidered. Can anyone confirm or deny my prior assumption?
<a href="index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image1','','frames-shad-bw.jpg',1)"><img src="frames-shad.jpg" name="Image1" width="215" height="215" border="0" id="Image1" /></a>
It's best to pretend there's no relation between Java and JavaScript at all. I'll never understand why they renamed LiveScript as JavaScript. I suspect it was bandwagon jumping.
Why don't search engines follow JavaScript functions? They could easily end up in loops. They might start submitting data to websites too and that would be awful. Googlebot, Yahoo! Slurp and even Henry are supposed to read websites - not interact with them. You wouldn't want spiders interacting with forms for the very same reason.
Yes.
<comment>Most of the concern about general dhtml comes from a) usability (where some studies show that dhtml navigation is less user-friendly - I believe tedster wrote some posts on this) and b) pure javascript menus where the links are encoded in the script, which traditionally have led to problems (although see some threads here where some people believe that search engines are also identifying URLs in javascript). A link such as the one that dan supplied and that hpops is concerned about proves no barrier to spiders since it is only using javascript to style effects on a plain html link.</comment>
So NO - a java menu will not get you indexed. You should put up a sitemap link somewhere at the top of your code so that it will crawl through those means instead of relying on basic html randomness.
S