Quote:
Originally Posted by Ibanez
Im not a genius with Js yet
|
Neither am I.
Quote:
Originally Posted by Ibanez
I guess I tend to rely on what other tell me and that was to avoid JS because spiders dislike it...
|
It all depends on how you use it. You can generate HTML with JavaScript that would be there but not actually visible in the output source code. If you create a document completely with this method then of course search engine spiders won’t like it because they see nothing they can interpret (they read HTML and are for the most part not able to parse JavaScript – and HTML generated through JS for that matter).
The trick is to make use of progressive enhancement. That is, have plain, semantic HTML as base (which spiders will read) and then you can remove/alter the HTML with JS to enhance the document for human visitors – as long as you don’t generate crucial parts with JS (as described above).
And sIFR
does make use of progressive enhancement. It takes plain text that was marked up the usual way earlier and changes it to apply the Flash object through JavaScript. Your original source code is still the same and that’s what search engine spiders read.
Disclaimer: In the meantime as technology is advancing there might actually be spiders that are more intelligent so always consult other sources to be 100% sure. I’m not the omniscient godfather of SEO.