dongqian7545 2011-05-13 14:07
浏览 60
已采纳

如果用Javascript打印,Google会将我的shtml页面的内容编入索引吗?

I have SHTML files which I'd like to implement the following:

  • Step 1: Let's say I have a SHTML page which displays "You must have Javascript turned on to view this content" by default / in a <noscript> tag.

The exact implementation of the next step doesn't really matter.

  • Step 2: Then on page load, the JS requests a PHP script returns either:

    • 1 / 0 (in plain text) and depending on the result the JS either prints the intended content or a captcha form.
      OR
    • the intended content or a captcha form, and the JS prints it.

The main thing to take from this is that the content is printed by JavaScript. Will Google still index the pages just as before (including the content)? Will I need to add anymore code/directives? Will Google index just as often, etc.?

NOTE: Content will always be printed for Google. (No Captcha)

  • 写回答

1条回答 默认 最新

  • dongyi0210 2011-05-13 14:11
    关注

    No. The Google bot does not support Javascript.

    See http://www.google.com/support/webmasters/bin/answer.py?answer=35769#2 :

    Use a text browser such as Lynx to examine your site, because most search engine spiders see your site much as Lynx would. If fancy features such as JavaScript, cookies, session IDs, frames, DHTML, or Flash keep you from seeing all of your site in a text browser, then search engine spiders may have trouble crawling your site.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 各位请问平行检验趋势图这样要怎么调整?说标准差差异太大了
  • ¥15 delphi webbrowser组件网页下拉菜单自动选择问题
  • ¥15 wpf界面一直接收PLC给过来的信号,导致UI界面操作起来会卡顿
  • ¥15 init i2c:2 freq:100000[MAIXPY]: find ov2640[MAIXPY]: find ov sensor是main文件哪里有问题吗
  • ¥15 运动想象脑电信号数据集.vhdr
  • ¥15 三因素重复测量数据R语句编写,不存在交互作用
  • ¥15 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab