论坛首页 同龄圈 育儿你造吗 好好ci 流行时尚 女人心情 败家妈妈 孕期话题 准备怀孕 幸福母乳站 幼儿护理
查看:5k|回复:13

[图]如何制作个性友情链接

回帖 发帖
发表于 12-29 15:17| 只看楼主| 倒序看帖| 发送站内信

近期,博客上的恶意链接比较猖狂,有的博客一点击就进入了六合彩之类的网页,可能还会传播病毒,给网友造成了很多不便,为了解决这一问题,技术人员做了一些修改,所以把所有的弹出式JS过滤了。但是同时给一些网友造成了困扰,有的网友自己搞的链接,比如“我的好友们”,现在也无法使用。技术人员为了解决这个问题,自己编写了一些代码,供大家使用,如果大家想自定义链接,可以尝试下:说明:

复制以下的代码,放在博客设置的首页公告里,替换掉里面的相应链接与标题即可
 
 

<style type="text/css">

 <!--

.my_title{ position:relative; height:18px; cursor:pointer; text-align:center; border-top:#2F8BDF 1px solid; border-bottom:#2F8BDF 1px solid; }

#my_friends2{ position:absolute; z-index:999; width:240px; padding:8px; left:16px; top:0px; background:#FFFFFF; border:#88AD16 1px solid; display:none; background:#fff url(http://static.ci123.com/uploadfiles/081229/s4nF8X431vM5dHv7.gif) no-repeat right bottom;}

#my_friends2 .url{ float:left; width:30%; height:22px; text-align:center; }

-->

</style>
<script>

 function show_friend(t){

if(t==1){

document.getElementById("my_friends2").style.display='block';

}else{

document.getElementById("my_friends2").style.display='none';

}

}

<!--author:h1984-->

</script>

<div class="my_title" onmouseover="show_friend(1);" onmouseout="show_friend(0);">我的常用网站

<div id="my_friends2">

<div class="url"><a target="_blank" href="http://www.163.com">网易</a></div>

<div class="url"><a target="_blank" href="http://www.sina.com.cn">新浪</a></div>

<div class="url"><a target="_blank" href="http://www.sohu.com">搜狐</a></div>

<div class="url"><a target="_blank" href="http://www.g.cn">GOOGLE</a></div>

<div class="url"><a target="_blank" href="http://www.baidu.com">百度</a></div>

<div class="url"><a target="_blank" href="http://www.youdao.com">有道搜索</a></div>

<div class="url"><a target="_blank" href="http://www.taobao.com">淘宝网</a></div>

<div class="url"><a target="_blank" href="http://www.dangdang.com">当当网</a></div>

<div class="url"><a target="_blank" href="http://www.joyo.com">卓越网</a></div>

<div class="url"><a target="_blank" href="http://www.yesky.com">天极网</a></div>

<div class="url"><a target="_blank" href="http://www.msn.com.cn">MSN中国</a></div>

<div class="url"><a target="_blank" href="http://www.cctv.com">CCTV</a></div>

<div class="url"><a target="_blank" href="http://www.youku.com">优酷视频</a></div>

<div class="url"><a target="_blank" href="http://www.56.com">我乐网</a></div>

</div> </div>

 
 
 
关于效果,大家可以预览一下:http://blog.ci123.com/h1984
 

 

我们添加的会显示在这里:


如果有什么问题可以发站内信给我哦。

2#
发表于 12-29 15:29| 只看楼主| 倒序看帖| 发送站内信

 去试试看喽~

谢谢李家熙熙!!!!

回复
3#
发表于 12-29 15:43| 只看楼主| 倒序看帖| 发送站内信

 谢谢熙熙啦!

回复
4#
发表于 12-29 15:58| 只看楼主| 倒序看帖| 发送站内信

 我说我的代码怎么没用了,原来是这样啊,我也试一下,谢谢

回复
5#
发表于 12-29 16:00| 只看楼主| 倒序看帖| 发送站内信

 很不错哦~刚刚试了,比原来的连接更好用呢,谢谢育网了。

回复
6#
发表于 12-29 16:13| 只看楼主| 倒序看帖| 发送站内信

 我也去试一试!

回复
7#
发表于 12-30 15:56| 只看楼主| 倒序看帖| 发送站内信

 好帖得多顶

回复
8#
发表于 12-30 21:05| 只看楼主| 倒序看帖| 发送站内信

 我来看看了

回复
9#
发表于 12-30 22:41| 只看楼主| 倒序看帖| 发送站内信

 先收藏了

回复
10#
发表于 12-31 14:50| 只看楼主| 倒序看帖| 发送站内信

 路过留名

回复
11#
发表于 01-04 10:27| 只看楼主| 倒序看帖| 发送站内信
以下是引用 第11楼 tanggogo 的话:
谢谢哦,是个好东西!...


 

回复
12#
发表于 05-26 16:24| 只看楼主| 倒序看帖| 发送站内信

 我們來看看,謝謝!

回复
13#
发表于 05-27 16:17| 只看楼主| 倒序看帖| 发送站内信

 谢谢!熙妈!

我去试试!

回复
14#
发表于 05-27 16:24| 只看楼主| 倒序看帖| 发送站内信

 我加了这个,可是“玟妈的博客好友”那个就不显示了

怎么办啊?

回复
社区导航
同龄宝宝