Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[分享] 小小术:在资讯上添加各大网摘,增加流量和外链.

[复制链接]
wmbeta 发表于 2008-2-26 02:38:28 | 显示全部楼层 |阅读模式
这个大家已经很熟悉了,但是一直没有发现一套完整漂亮的.版主要求,分享出来.

找到模版文件:news_view.html.php

将附件中的图片放到images目录下

在合适的地方加:
  1. <!-- 添加网摘 -->
  2. <img style="MARGIN: 4px 2px -4px 0px" alt=""
  3. src="images/quote.gif" /><strong>收藏:</strong> <a
  4. href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();"><img
  5. alt=新浪ViVi src="images/vivi.gif" border=0 /></a> <a
  6. href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://z.sohu.com/storeit.do?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();"><img
  7. alt=搜狐网摘 src="images/sohuz.gif" border=0 /></a> <a
  8. href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();"><img
  9. alt=365Key网摘 src="images/365key.gif" border=0 /></a> <a
  10. href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(yesky=window.open('http://hot.yesky.com/dp.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t)+'&st=2','yesky','scrollbars=no,width=400,height=480,left=75,top=20,status=no,resizable=yes'));yesky.focus();"><img
  11. alt=天极网摘 src="images/yesky.gif" border=0 /></a> <a
  12. href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(wozhai=window.open('http://www.wozhai.com/wozhai/Cento.asp#t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'wozhai','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));wozhai.focus();"><img
  13. alt=我摘 src="images/wozhai.gif" border=0 /></a> <a
  14. href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://my.poco.cn/fav/storeIt.php?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t)+'&img=http://www.h-strong.com/blog/logo.gif','keyit','scrollbars=no,width=475,height=575,status=no,resizable=yes'));keyit.focus();"><img
  15. alt=POCO网摘 src="images/poco.gif" border=0 /></a> <a
  16. href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://blogmark.bokee.com/jsp/key/quickaddkey.jsp?k='+encodeURI(d.title)+'&u='+encodeURI(d.location.href)+'&c='+encodeURI(t),'keyit','scrollbars=no,width=500,height=430,status=no,resizable=yes'));keyit.focus();"><img
  17. alt=博采网摘 src="images/bokee.gif" border=0 /></a> <a
  18. href="javascript:u=location.href;t=document.title;void(open('http://www.YouNote.com/NoteIt.aspx?u='+escape(u)+'&t='+escape(t)+'&c='+escape(document.selection.createRange().text),'网络书签', 'toolbar=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));"><img
  19. alt=YouNote网摘 src="images/younote.gif" border=0 /></a> <a
  20. href="javascript:t=document.title;u=location.href;e=document.selection?(document.selection.type!='None'?document.selection.createRange().text:''):(document.getSelection?document.getSelection():'');void(open('http://bookmark.hexun.com/post.aspx?title='+escape(t)+'&url='+escape(u)+'&excerpt='+escape(e),'HexunBookmark','scrollbars=no,width=600,height=450,left=80,top=80,status=no,resizable=yes'));"><img
  21. alt=和讯网摘 src="images/hexun.gif" border=0 /></a> <a
  22. href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(blog=window.open('http://www.bolaa.com/CommendBlog/SmallLogin.aspx?title='+escape(d.title)+'&newspath='+escape(d.location.href)+'&subtitle='+escape(t),'bolaa','width=400px,height=400px'));blog.focus();"><img
  23. alt=博拉网 src="images/bolaa.gif" border=0 /></a> <a
  24. href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(websnip=window.open('http://x.yeeyoo.com/MouseAdd.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'yeeyoo','scrollbars=no,width=475,height=450,left=280,top=50,status=no,resizable=yes'));websnip.focus();;"><img
  25. alt=亿友响享 src="images/yeeyoo.gif" border=0 /></a> <a
  26. href="javascript:u=location.href;t=document.title;void(open('http://www.igooi.com/addnewitem.aspx?noui=yes&jump=close&url='+escape(u)+'&title='+escape(t)+'&sel='+escape(document.selection.createRange().text),'igooi', 'toolbar=no,width=400,height=480'));"><img
  27. alt=igooi网摘 src="images/igooi.gif" border=0 /></a> <a
  28. href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.i2key.com/StoreIt.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=475,left=75,top=20,status=no,resizable=yes'));keyit.focus();"><img
  29. alt=I2Key网摘 src="images/i2key.gif" border=0 /></a> <a
  30. href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.cn3.cn/user/addurl.asp?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=490,height=450,left=120,top=50,status=no,resizable=yes'));keyit.focus();"><img
  31. alt=天下图摘 src="images/cn3.gif" border=0 /></a> <a title=百特门
  32. href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vkey=window.open('http://www.bytemen.net/vkey/AddText.aspx?site=2005&t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'vkey','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));vkey.focus();"><img
  33. alt=百特门网摘 src="images/bytemen.gif" border=0 /></a> <a
  34. href="javascript:location.href='http://www.google.com/bookmarks/mark?op=add&bkmk='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img
  35. alt=Google书签 src="images/google.gif" border=0 /></a> <a
  36. href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(del = window.open('http://del.icio.us/login/?url=' + escape(d.location.href) + '&title=' + escape(d.title), 'del','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));del.focus();"><img
  37. alt=Del.icio.us src="images/delicious.gif" border=0 /></a> <a
  38. onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=780,height=455,left=80,top=80,status=yes,resizable=yes');"><img
  39. alt=Yahoo书签 src="images/yahoo.gif" border=0 /></a> <a
  40. onclick="var s=document.createElement('script');s.type='text/javascript';s.src='http://www.diigo.com/javascripts/webtoolbar/diigolet_b_h_b.js';document.body.appendChild(s);"><img
  41. style="BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none"
  42. alt="diigo it" src="images/ii_blue.gif" /></a> <a
  43. title=鼠标选中部分作为描述,提交到diglog.com
  44. onclick="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.diglog.com/submit.aspx?title='+escape(d.title)+'&url='+escape(d.location.href)+'&description='+escape(t),'keyit','scrollbars=yes,width=500,height=500,left=65,top=20,status=no,resizable=yes'));keyit.focus();"
  45. href="javascript://"><img alt="提交新发现,Dig it"
  46. src="images/digit.gif" border=0 /></a> <a
  47. href="javascript:window.open('http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title))()"><img
  48. alt="DIGG this story" src="images/digg.gif" border=0 /></a> <a
  49. href='javascript:u=location.href;t=document.title;c%20=%20""%20+%20(window.getSelection%20? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text);var url="http://cang.baidu.com/do/add?it="+encodeURIComponent(t)+"&iu="+encodeURIComponent(u)+"&dc="+encodeURIComponent(c)+"&fr=ien#nw=1";window.open(url,"_blank","scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes"); void 0'><img
  50. alt=添加到百度搜藏 src="images/baidu.gif" border=0 /></a> <a
  51. href='javascript:location.href="http://www.banerzhuan.com/submit.php?href="+encodeURIComponent(location.href)' target="_blank"><img
  52. alt=将本文在板儿砖上开砖场 src="images/banerzhuan.gif" border=0 /></a> <a
  53. href="javascript:window.open('http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title))()"><img
  54. alt="DIGG this story" src="images/digg.gif" border=0 /></a> <a href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img
  55. alt=添加到QQ书签 src="images/qq.gif" border=0 /></a>
  56. <!-- 添加网摘结束 -->
复制代码
我是加在这下面

<span class="smalltxt">发布: #date('Y-n-d H:i', $news["dateline"])#    作者: $news[newsauthor]    来源: <!--{if !empty($news[newsfromurl])}--><a href="$news[newsfromurl]" target="_blank" title="$news[newsfrom]">$news[newsfrom]</a><!--{else}-->$news[newsfrom]<!--{/if}-->    查看: $news[viewnum]次</span>


小小术:在资讯上添加复制地址,推荐给QQ/MSN上的好友按钮

https://discuz.dismall.com/viewthread.php?tid=847494

[ 本帖最后由 wmbeta 于 2008-2-26 02:46 编辑 ]

评分

2

查看全部评分

pcload 发表于 2008-2-26 09:14:14 | 显示全部楼层
感谢楼主分享~~~
回复

使用道具 举报

 楼主| wmbeta 发表于 2008-2-26 13:48:33 | 显示全部楼层
回复

使用道具 举报

eqmz 发表于 2008-2-26 13:50:18 | 显示全部楼层
回复

使用道具 举报

SSAY 发表于 2008-2-26 15:15:43 | 显示全部楼层
回复

使用道具 举报

winter2005 发表于 2008-2-26 15:25:07 | 显示全部楼层
收藏了

我很喜欢楼上网站的风格
回复

使用道具 举报

yf2519 发表于 2008-2-26 16:14:44 | 显示全部楼层
回复

使用道具 举报

linkinwon 发表于 2008-2-26 16:41:02 | 显示全部楼层
楼主,做你这样的一套模版要多少钱啊。
回复

使用道具 举报

 楼主| wmbeta 发表于 2008-2-26 21:01:52 | 显示全部楼层
原帖由 linkinwon 于 2008-2-26 16:41 发表
楼主,做你这样的一套模版要多少钱啊。

不用钱...用阿血儿的模版改的...
回复

使用道具 举报

easyker 发表于 2008-2-26 21:06:42 | 显示全部楼层
:) :) :)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-1-13 13:38 , Processed in 0.034654 second(s), 7 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表