nofollow的链接方式
[
2008/08/23 16:02 | by wxxslt ]
2008/08/23 16:02 | by wxxslt ]
通常Nofollow的写法有以下两种:
1.在meta中定义,如果在meta中定义Nofollow的话,则搜索引擎不会跟踪该页面的所有链接。语法为
表示禁止抓取本页,同时禁止跟踪本页中的链接。
还有其他的写法:
a).index,follow:允许抓取本页,允许跟踪链接。
b).index,nofollow:允许抓取本页,但禁止跟踪链接。
c).noindex,follow:禁止抓取本页,但允许跟踪链接。
d).noindex,nofllow:禁止抓取本页,同时禁止跟踪本页中的链接。
2.在链接中定义nofollow,写法为:
如果这样写的话,搜索引擎遇到这个外链的时候,则不会往下跟踪下去。所以,对于nofollow的链接方式,google是不会传递PR的,对于nofollow的链接方式,对于站长来说没有任何意义,所以大家在交换友情链接的时候,一定要注意对方是否以nofollow的方式链接你的站。
1.在meta中定义,如果在meta中定义Nofollow的话,则搜索引擎不会跟踪该页面的所有链接。语法为
<meta name="robots" content="noindex,nofollow" />
表示禁止抓取本页,同时禁止跟踪本页中的链接。
还有其他的写法:
a).index,follow:允许抓取本页,允许跟踪链接。
b).index,nofollow:允许抓取本页,但禁止跟踪链接。
c).noindex,follow:禁止抓取本页,但允许跟踪链接。
d).noindex,nofllow:禁止抓取本页,同时禁止跟踪本页中的链接。
2.在链接中定义nofollow,写法为:
<a href="#" rel="nofollow">文学吧</a>
如果这样写的话,搜索引擎遇到这个外链的时候,则不会往下跟踪下去。所以,对于nofollow的链接方式,google是不会传递PR的,对于nofollow的链接方式,对于站长来说没有任何意义,所以大家在交换友情链接的时候,一定要注意对方是否以nofollow的方式链接你的站。
新做的,很好,很强大。
[
2008/08/23 10:07 | by wxxslt ]
2008/08/23 10:07 | by wxxslt ]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml...
<html xmlns="http://www.w3.org/1999/xht...
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>getElementsByTagName()</title>
<script language="javascript">
function searchDOM()
{
var oLi=document.getElementsByTagName("li");
alert(oLi.length+" "+oLi[0].tagName+" "+oLi[3].childNodes[0].nodeValue);
var oUI=document.getElementsByTagName("ul");
var oLi2=oUI[1].getElementsByTagName("li");
alert(oLi2.length+" "+oLi2[0].tagName+" "+oLi2[1].childNodes[0].nodeValue);
}
</script>
</head>
<body onload="searchDOM()">
<ul>
客户端语言
<li>HTML</li>
<li>JavaScript</li>
<li>CSS</li>
</ul>
<ul>
服务端语言
<li>ASP.NET</li>
<li>JSP</li>
<li>PHP</li>
</ul>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xht...
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>getElementsByTagName()</title>
<script language="javascript">
function searchDOM()
{
var oLi=document.getElementsByTagName("li");
alert(oLi.length+" "+oLi[0].tagName+" "+oLi[3].childNodes[0].nodeValue);
var oUI=document.getElementsByTagName("ul");
var oLi2=oUI[1].getElementsByTagName("li");
alert(oLi2.length+" "+oLi2[0].tagName+" "+oLi2[1].childNodes[0].nodeValue);
}
</script>
</head>
<body onload="searchDOM()">
<ul>
客户端语言
<li>HTML</li>
<li>JavaScript</li>
<li>CSS</li>
</ul>
<ul>
服务端语言
<li>ASP.NET</li>
<li>JSP</li>
<li>PHP</li>
</ul>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml...
<html xmlns="http://www.w3.org/1999/xht...
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>getElementById()</title>
<script language="javascript">
function searchDOM()
{
var oLi=document.getElementById("css");
alert(oLi.tagName+" "+oLi.childNodes[0].nodeValue);
}
</script>
</head>
<body onload="searchDOM()">
<ul>
客户端语言
<li>HTML</li>
<li id="css">JavaScript</li>
<li>CSS</li>
</ul>
<ul>
服务端语言
<li>ASP.NET</li>
<li>JSP</li>
<li>PHP</li>
</ul>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xht...
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>getElementById()</title>
<script language="javascript">
function searchDOM()
{
var oLi=document.getElementById("css");
alert(oLi.tagName+" "+oLi.childNodes[0].nodeValue);
}
</script>
</head>
<body onload="searchDOM()">
<ul>
客户端语言
<li>HTML</li>
<li id="css">JavaScript</li>
<li>CSS</li>
</ul>
<ul>
服务端语言
<li>ASP.NET</li>
<li>JSP</li>
<li>PHP</li>
</ul>
</body>
</html>
A、B、C三类IP地址分类
[
2008/08/14 17:12 | by wxxslt ]
2008/08/14 17:12 | by wxxslt ]
A类公网:1.0.0.0 至126.255.255.255 默认的子网掩码是:255.0.0.0
B类公网:128.0.0.0 至191.255.255.255 默认的子网掩码是:255.255.0.0
C类公网:192.0.0.0 至223.255.255.255 默认的子网掩码是:255.255.255.0
A类私网:10.0.0.0 至10.255.255.255 默认的子网掩码是:255.0.0.0
B类私网:172.16.0.0 至172.31.255.255 默认的子网掩码是:255.255.0.0
C类私网:192.168.0.0 至192.168.255.255 默认的子网掩码是:255.255.255.0
记录下,容易忘。
B类公网:128.0.0.0 至191.255.255.255 默认的子网掩码是:255.255.0.0
C类公网:192.0.0.0 至223.255.255.255 默认的子网掩码是:255.255.255.0
A类私网:10.0.0.0 至10.255.255.255 默认的子网掩码是:255.0.0.0
B类私网:172.16.0.0 至172.31.255.255 默认的子网掩码是:255.255.0.0
C类私网:192.168.0.0 至192.168.255.255 默认的子网掩码是:255.255.255.0
记录下,容易忘。







