黑链代码
作者:蛛蛛虎 日期:2009-11-04
也许等自己的Pr提上来也会这样吧,毕竟游戏的规则如此。
大家都知道黑链可以提高Pr,但请大家慎用。
下面说下如何添加黑链吧:
方法主要有两种:利于JAVAScript代码隐藏 & Css 定义属性隐藏
利于JAVAScript代码隐藏
代码1、
在主页最下方插入代码
复制内容到剪贴板
程序代码
程序代码<!--#include file="foot.html" -->
然后新建一文件foot.html
在里面写入代码:
复制内容到剪贴板
程序代码
程序代码<script language="javascript" type="text/javascript">
document.write("<marquee direction='up' scrollamount='0' height='1' onmouseover=this.start() onmouseout=this.stop()>");
</script>
友情链接:
<a href="http://www.spiger.cn" title="蛛蛛虎`s Blog">蛛蛛虎`s Blog</a>
</marquee>
document.write("<marquee direction='up' scrollamount='0' height='1' onmouseover=this.start() onmouseout=this.stop()>");
</script>
友情链接:
<a href="http://www.spiger.cn" title="蛛蛛虎`s Blog">蛛蛛虎`s Blog</a>
</marquee>
代码2、(和代码1相近,略改几个属性)
复制内容到剪贴板
程序代码
程序代码<script language="javascript" type="text/javascript">document.write("<div style='display:none;'>");</script></p><div><h1><a href=""http://www.spiger.cn/"">蛛蛛虎`s Blog</a></h1></div><script language="javascript" type="text/javascript">document.write("</div>");
代码3、
复制内容到剪贴板
程序代码
程序代码<div id="linkshiD"><a href="http://www.spiger.cn">蛛蛛虎`s Blog</a></div><script>document.getElementById("linkshiD").style.display="none"</script><p>
利于CSS代码隐藏
1、利用CSS,设置大小为1像素的
Line-hight:1px,font-size:0,color=bgcolor
点评下,这种做法的危险系数非常高。呵呵,理论上讲这种效果是能实现的。
2、利用CSS,设置偏离显示的(推荐使用)
left:expression(1-900);top:expression(3-999)
例如:
复制内容到剪贴板
程序代码
程序代码<div style="position:absolute;left:expression(1-900);top:expression(3-999);"><a href="http://www.spiger.cn/">蛛蛛虎`s Blog</a> </div>
3、文字漂浮移动的
用法:Text-index:负值
这是CSS布局的时常常会用到的属性,通常是对用背景图片来做栏目名称时候的一种补充写法。举个简单的例子,比如为了美观,我是想用一张设计好了的图片来显示
<h2>标签,那么这个时候在CSS里我就会这样给H2写样式:{background::url(*.gif);text- index:-9999;}。所以从这个例子的角度来说,合理的应用这种方法一种正常的网页布局行为,不会受到搜索引擎的惩罚。注意是合理!
评论: 0 | 引用: 0 | 查看次数: -
发表评论


上一篇:
下一篇:
文章来自:
Tags:
相关日志: