为PJBlog添加 收藏到网摘 这个类插件的小代码在很早之前就有人发布在论坛上了,不过随着博客系统的升级以及部分网摘的链接实效了,这次我修整了其中的错误链接并添加了一些更加实用的网摘,比如饭否,校内,抓虾,鲜果,QQ书签,有道。这些网摘相对以前博友提供的很多外国的网摘效果应该会好一些,毕竟上我们网站的基本都是国人。

为PJBlog添加 收藏到网摘 这个类插件的小代码在很早之前就有人发布在论坛上了,不过随着博客系统的升级以及部分网摘的链接实效了,这次我修整了其中的错误链接并添加了一些更加实用的网摘,比如饭否,校内,抓虾,鲜果,QQ书签,有道。这些网摘相对以前博友提供的很多外国的网摘效果应该会好一些,毕竟上我们网站的基本都是国人。

我是在 PJBlog3 v3.0.6.170 半静态模式下调试的,其他版本类似。

好啦,上代码。

img src= images/icon_edit.gif 'http://www.google.com/bookmarks/mark?op=addhttp://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes'); img src= images/wangzhai/yahoo.gif0 /a ajavascript: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=28vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus(); img新浪ViVi src= images/wangzhai/vivi.gif0 /a ajavascript: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)+'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus(); img365Key网摘 src= images/wangzhai/365key.gif0 /a ajavascript: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)+'2','yesky','scrollbars=no,width=400,height=480,left=75,top=20,status=no,resizable=yes'));yesky.focus(); img天极网摘 src= images/wangzhai/yesky.gif0 /a ajavascript: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)+'HexunBookmark','scrollbars=no,width=600,height=450,left=80,top=80,status=no,resizable=yes')); img和讯网摘 src= images/wangzhai/hexun.gif0 /a a_blankhttp://www.zhuaxia.com/add_channel.php?sourceid=102http%3A%2F%2Fwww.weisay.com%2Fblog%2F img src= images/wangzhai/zhuaxia.gif0订阅到抓虾 / /a a_blank订阅到鲜果 RSS阅读器http://xianguo.com/subscribe?url=http%3A%2F%2Fwww.weisay.com%2Fblog%2F img src= images/wangzhai/xianguo.gif0鲜果阅读器订阅图标 / /a a_blankhttp://reader.youdao.com/b.do?keyfrom=bookmarklethttp%3A%2F%2Fwww.weisay.com%2Fblog%2F img src= images/wangzhai/youdao.gif0订阅到有道阅读 / /a ajavascript: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)+'http://www.h-strong.com/blog/logo.gif','keyit','scrollbars=no,width=475,height=575,status=no,resizable=yes'));keyit.focus(); imgPOCO网摘 src= images/wangzhai/poco.gif0 /a ajavascript:q=(document.location.href);void(open('http://www.digbuzz.com/submit.php?url='+encodeURIComponent(q),'','')); img src= images/wangzhai/wa.gif0添加到 Digbuzz 我挖网 / /a ajavascript:location.href='http://del.icio.us/post?http://digg.com/submit?phase=2http://reddit.com/submit?url='+encodeURIComponent(location.href)+'http://shuqian.qq.com/post?from=321','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0) img src= images/wangzhai/qq.gif添加到“QQ书签”0 /a ajavascript:location.href='http://www.blinklist.com/index.php?Action=Blink/addblink.phphttp://www.igooi.com/addnewitem.aspx?noui=yescloseigooi', 'toolbar=no,width=400,height=480')); img src= images/wangzhai/igooi.gif添加到“igooi网摘”0 /a ajavascript:vardocument,w=window,f='http://fanfou.com/share',l=d.location,e=encodeURIComponent,p='?u='+e(l.href)+'?t='+e(d.title)+'?d='+e(w.getSelection?w.getSelection().toString():d.getSelection?d.getSelection():d.selection.createRange().text)+'?s=bl';if(!w.open(f+'r'+p,'sharer','toolbar=0,status=0,width=600,height=400')){l.href=f+'.new'+p;}void(0) img0 src= images/wangzhai/fanfou.gif分享到饭否 / /a ajavascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var,u=d.location,l=d.title,p=[e(u),'');function a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else a();})(screen,document,encodeURIComponent)); img0 src= images/wangzhai/xiaonei.gif分享到校内 / /a br/ !--网摘结束--

请将上面这段代码加到 class 文件夹下 cls_article.asp 中

%=getTag.filterHTML(log_ViewArr(19,0))% br/

的后面。

还有就是加到 Template 文件夹下 Article.asp 中

$log_tag$ br/

的后面。

并把下面的图片文件夹放到 images 文件夹里面,然后进后台重新生成数据库就行了。

网盘下载:提取码: 8ghq DownLoad