<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <iframe src="http://www.blogger.com/navbar.g?targetBlogID=4684235500622716427&amp;blogName=Caiwangqin&#39;s+blog&amp;publishMode=PUBLISH_MODE_HOSTED&amp;navbarType=BLUE&amp;layoutType=CLASSIC&amp;searchRoot=http://blog.caiwangqin.com/search&amp;blogLocale=zh_CN&amp;v=1&amp;homepageUrl=http://blog.caiwangqin.com/&amp;vt=3393395200455623441" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" height="30px" width="100%" id="navbar-iframe" allowtransparency="true" title="Blogger 导航和搜索"></iframe> <div></div>

Caiwangqin's blog

Focus on Web2.0, Business, Architecture, Agile, Technic and beyond…

Build SEO-friendly AJAX Website

2006年9月11日 星期一

AJAX能够为Web Application增加良好的User-friendy, 由于今天的search engine robots不能阅读Javascript内容,所以搜索引擎不可收录AJAX的Website, 可以从以下方面做些许改进来建设友好的搜索引擎优化的Website.


一、使用<noscript>标签,要注意在每页的<noscript>标签中书写不同的内容,否则可能被认为是SEO作弊手段中的第三条而被认为是Spam:


<head>

<title>Entry Page to your new Website</title>

<meta http-equiv=”Content-Type” content=”text/html; charset=ISO-8859-1″/>

<meta name=”Keywords” content=”Keyword for your Website”/>

<meta name=”Description” content=”Excellent convincing sales copy for your website”/>

</head>

<body>

The content of your Websites body begins here. This is where you will call your AJAX information, including the Javascript.

<script type=”text/javascript”>

<!–document.write(”This is just the Beginning!”)//–>

</script>

<noscript>

<p>Begin the information to be covered when the script can not be used. </p>

<p>Your browser does not support JavaScript! This page covers the following information relater to ours product and services. </p>

</noscript>





</body>

<html>


二、好的AJAX程序应该允许用户在完全禁止Javascript的时候也能够正常工作,为第一个AJAX页面准备一个独特的URL, 使用Google Web Toolkit来开发,Google Web Toolkit考虑了AJAX SEO的问题。



参考资料:


Implementing AJAX? SEO and Accessibility Considerations


SEO Considerations for AJAX Development




标签:

posted by Jesse Cai, 上午9:26

0 Comments:

发表评论

订阅 帖子评论 [Atom]

<< 主页