为了配合百度,对百度搜索更友好,根据自已理解,给网站新增以下内容:
一、侧边栏:新增百度搜索和百度新闻代码。
百度搜索代码:
<SCRIPT language=javascript>
function g(formname) {
var url = "http://www.baidu.com/baidu";
if (formname.s[1].checked) {
formname.ct.value = "2097152";
}
else {
formname.ct.value = "0";
}
formname.action = url;
return true;
}
</SCRIPT><form name="f1" onsubmit="return g(this)"><table bgcolor="#FFFFFF" style="font-size:9pt;"><tr height="60"><td align="center" valign="middle"><img src="http://img.baidu.com/img/logo-137px.gif" border="0" alt="baidu" height="27" width="68"><br><input name=word size="30" maxlength="100"><input type="submit" value="百度搜索"><br><input name=tn type=hidden value="bds"><input name=cl type=hidden value="3"><input name=ct type=hidden> <input name=ie type=hidden value=utf-8><input name=si type=hidden value="ihb65.com"><input name=s type=radio> 互联网<input name=s type=radio checked> ihb65.com</td></tr></table></form>
百度新闻代码:
<script language="JavaScript" type="text/JavaScript" src="http://news.baidu.com/ns?word=title%3A%BB%B7%B1%A3&tn=newsfcu&from=news&cl=2&rn=3&ct=0"></script>
二、网站底部:
新增百度统计、百度站长代码
三、优化结果分析:
站长工具里优化建议分析为三星。估计是JS引用多了。
发表评论