看到自己博客的友情链接一长串的,会将页面拉得很长,感觉很不舒服。就想到以前做网页用的折合菜单,如果可以用折合菜单那友情链接会简洁很多,就试了试,原来是可以的。不如将友情链接源码拷下拉,供有需要的网友参考,简单替换就行了:
<DIV id=main1 onclick="document.all.child1.style.display=(document.all.child1.style.display =='none')?'':'none'"><A href="javascript:function()">::::::杂烩链接::::::</SPAN></A></DIV></TD></TR><TR><TD borderColor="#ffffff" bgColor="#ffffff">
<DIV id=child1 style="DISPLAY: none"> <A href="http://www.mov8.com/movie/review.asp" target=_blank>影评库</A> <BR> <A href="http://www.cat898.com/lib/" target=_blank>凯迪文库</A> <BR> <A href="user1/roseluqiu/index.html" target=_blank>吕丘露微</A> <BR> <A href="user1/xieyafang/index.html" target=_blank>谢亚芳</A> <BR> <A href="user1/peterq/index.html" target=_blank>邱震海</A> <BR> <A href="http://zhivago.blogchina.com/" target=_blank>王怡</A></DIV>
<DIV id=main2 onclick="document.all.child2.style.display=(document.all.child2.style.display =='none')?'':'none'"><A href="javascript:function()">::::::网友博客::::::</SPAN></A></DIV></TD></TR><TR><TD borderColor="#ffffff" bgColor="#ffffff">
<DIV id=child2 style="DISPLAY: none"> <A href="user1/tansier/" target=_blank>思绪飞扬</A> <BR> <A href="user1/eaphone01/" target=_blank>孤独探戈</A> <BR> <A href="http://yupingdanyiqixisu.tianyablog.com/" target=_blank>与平淡一起栖宿</A> <BR> <A href="user2/langzigui/index.html" target=_blank>雨落清晨</A> <BR> <A href="user2/ccphistory/index.html" target=_blank>ccphistory</A> <BR> <A href="user1/niwotazi/index.html" target=_blank>与风握手</A> </DIV>
其实友情链接应该还可以用隐藏层的,懒得试了,有上面的应该足够了。
Re:友情链接其实可以简单些
补充一点关于主模板的修改:
要想鼠标悬停在链接文字时有下划线,可以在body部分加入:
a:hover {text-decoration: underline;}
要想点击文章标题在新窗口打开文章,可以在“日志主体部分”部分加入:
.storytitle a:active {text:expression(target="_blank");}
具体在那里加入,可以在“修改主模板”的“源码”里找找呵呵
Re:友情链接其实可以简单些
很高兴和你作个连接!
欢迎光临寒舍: