Hi all Setting up a site and looking to use js for header and content text rotation. The js will cause a new header in htm to open on the page. Will google spider read this and how will it effect SEO? Cheers
Well, Google is actually one of the few who can, if not the only one. As long as it;s simple enough javascript (no encrypted stuff, eval's etc.) it should be OK but you are making it more complex than probably necessary. Why not use shtml ssi includes or PHP includes instead? With js you are probably giving yourself troubles in the smaller engines who aren;t as advanced as Google is.
i've done a test on this before and yes, if the javascript contains a simple url, the url is spidered by google... e.g. you put a url in the javascript to a php file that logs all the ip addresses of all visitors to a text file or a mysql database, you'll find google spiders' addresses in there.
yes it sure can. it can even crawl URL texts with out any links. the crawler is not a silly 50 line code. what ever the web can think of google people think it before us. they have the best engineers with them, skilled and acaedemically better than even the microsoft engineers.
Well, in my experience google is not indexing .js files even if it may seem so. However, is your webserver are serving the files with wrong content-type it gets indexed. Serving .js files as HTML files will get them indexed as an example.