<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> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d4684235500622716427\x26blogName\x3dCaiwangqin\x27s+blog\x26publishMode\x3dPUBLISH_MODE_HOSTED\x26navbarType\x3dBLUE\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttp://blog.caiwangqin.com/search\x26blogLocale\x3dzh_CN\x26v\x3d2\x26homepageUrl\x3dhttp://blog.caiwangqin.com/\x26vt\x3d3393395200455623441', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

Caiwangqin's blog

Focus on Life, Cloud Service, Smart Hardware, Architecture, 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 Caiwangqin, 09:26

0 Comments:

发表评论

订阅 博文评论 [Atom]

<< 主页