1

If I add random keywords alt attrb to the images using jQuery document.ready (thinking that the page is already loaded), how does it affect search engines?

Will the search engines get the alt attrb that I added with any JavaScript at all? If not how come it can understand Ajax calls sent via JavaScript?

I want to add the alt attrb to images that don't have any in my client's site, in case they forget to put an alt text. jQuery will replace the empty ones with keywords. Is this possible?

4

3 回答 3

0

直到现在,Google 和其他搜索引擎仍然无法读取从 javascript 创建的脚本,您可能需要使用其他脚本,例如 php

于 2013-05-04T08:30:24.070 回答
0

搜索机器人无法读取它,如果您使用 JavaScript,则需要使用服务器端语言将关键字添加到 img alt

于 2012-06-09T19:35:23.390 回答
0

这是一些证据表明搜索引擎执行一些 javascript,但假设它们不执行。

Google 或其他搜索引擎是否执行 JavaScript?

搜索引擎是否处理 Javascript?

http://searchengineland.com/google-io-new-advances-in-the-searchability-of-javascript-and-flash-but-is-it-enough-19881

于 2012-06-09T19:38:56.690 回答