Forum Moderators: open
1. Does anyone know if scripts keep Google from spidering the page?
2. If html text is only contained in a script, will that text not be spidered then?
Thanks!
You can make creative use of stylesheets to aid with this from a user perspective, the spider won't read them either.
Try reading up on "Progressive Enhancement" and using Semantic Markup. Keep in mind that your content is the most important part of a page and should be accessible whether JavaScript is available or not. JavaScript should be treated as an enhancement only.
As Dabrowski mentioned, you could do something like this:
<ul id="portfolio">
<li id="customer1">... Image and text go here ...</li>
<li id="customer2">... Image and text go here ...</li>
<li id="customer3">... Image and text go here ...</li>
</ul>
Since it sounds like the content is really a list of images and text, mark them up as such. Then use JavaScript to parse this list and format it for whatever your "pageflipper" script does.
uses Javascript to flip the portfolio image and text without reloading the page.
This sounds like the content is all loaded in one html document, with javascript being used simply to show/hide the divs involved by changing the visibility rules. In that case, all the content WILL be indexed as one page.
The problem such a page would face is visitors from search engines whose search terms are not visible in the default configuration of the page.
Also note that while javascript may not be executed by search engines, it is downloaded as text and examined to a degree, mostly to see if it contains urls that may not have been discovered through other crawling avenues. These "links" are not scored as true backlinks in the ranking algorithms, but they can trigger the spidering of the url involved.
If for some reason they absolutely cannot be separated, you could use [whisper]doorway pages[/whisper]. You could simply duplicate the content into their own pages, add a link in these pages back to the actual page, and stick them in your robots.txt.
That way the spiders should see them, but your users won't.
No hate mail please, I know doorways are evil.