你的位置:HBcms宏博内容管理系统 建站经验 正文
内容搜索
热门内容
  1. 网站logo在线设计,免..
  2. 域名解析文件hosts文件..
  3. 教你如何做网线接头:..
  4. qq怎么截图?如何在qq..
  5. 雅虎yahoo邮箱smtp和p..
  6. 新注册126邮箱或163邮..
  7. 幻灯片式的网页图片滚..
  8. 做网站怎么赚钱?什么..
  9. com域名和cn域名net域..
  10. Google支付系统(Googl..
推荐内容
  1. 做一个商业网站要多少..
  2. 国外服务器租用(国外..
  3. 深圳做网站的公司!=深..
  4. 网络原创投稿,转载精..
  5. 美国服务器租赁Window..
  6. 699元的美国服务器出租..
  7. 添加友情链接,速度别..
  8. “原始人”卷款潜逃事..
  9. 设置Godaddy支持zend ..
  10. 网页设计中常用的CSS命..
网站网摘代码,网摘源码,网摘插件代码
  •  添加时间:2007-08-01 发表时间:2007-08-01 人气:1887
  • 网站网摘代码,收藏到网摘这样应该是最为理想的:点击收藏链接在新窗口打开网摘窗口,能自动填写网摘标题及来源地址,如果能自动截取摘要则更好。本页面里收集了几个常见的网摘源码(网摘插件代码)希望能给大家带来方便

    首先来一段javascript网摘代码,你可以将它保存到一个js文件中,然后在网站任何地方调用即可。

    效果图片:

    document.writeln("<a href=\"javascript:location.href=\'http:\/\/myweb.cn.yahoo.com\/popadd.html?url=\'+encodeURIComponent(location.href)+\'&title=\'+encodeURIComponent(document.title)\"><img alt=雅虎收藏夹 src=\"http://img.knowsky.com/img/wangzhai/yahoomyweb-cn.png\" border=0><\/a>")

    document.writeln("<a href=\"javascript:u=location.href;t=document.title;c = %22%22 + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text);var url=%22http:\/\/cang.baidu.com\/do\/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,%22_blank%22,%22scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes%22); void 0\" title=\"百度收藏\"><img alt=百度收藏 src=\"http://img.knowsky.com/img/wangzhai/baidu.gif\" border=0><\/a>" );

    document.writeln("                <a href=\"javascript:location.href=\'http:\/\/www.google.com\/bookmarks\/mark?op=add&amp;bkmk=\'+encodeURIComponent(location.href)+\'&amp;title=\'+encodeURIComponent(document.title)\"><img alt=Google书签 src=\"http://img.knowsky.com/img/wangzhai/google.gif\" border=0><\/a> ");

    document.writeln("                <a href=\"javascript:location.href=\'http:\/\/myweb2.search.yahoo.com\/myresults\/bookmarklet?u=\'+encodeURIComponent(location.href)+\'&amp;t=\'+encodeURIComponent(document.title)\"><img alt=Yahoo书签 src=\"http://img.knowsky.com/img/wangzhai/yahoo.gif\" border=0><\/a> ");

    document.writeln("                <a 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&amp;title=\'+escape(d.title)+\'&amp;url=\'+escape(d.location.href)+\'&amp;desc=\'+escape(t),\'vivi\',\'scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes\'));vivi.focus();\"><img alt=新浪ViVi src=\"http://img.knowsky.com/img/wangzhai/vivi.gif\" border=0><\/a> ");

    document.writeln("                <a 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)+\'&amp;u=\'+escape(d.location.href)+\'&amp;c=\'+escape(t),\'keyit\',\'scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes\'));keyit.focus();\"><img alt=搜狐网摘 src=\"http://img.knowsky.com/img/wangzhai/sohuz.gif\" border=0><\/a> ");

    document.writeln("                <a 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)+\'&amp;u=\'+escape(d.location.href)+\'&amp;c=\'+escape(t),\'keyit\',\'scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes\'));keyit.focus();\"><img alt=365Key网摘 src=\"http://img.knowsky.com/img/wangzhai/365key.gif\" border=0><\/a> ");

    document.writeln("                <a 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)+\'&amp;u=\'+escape(d.location.href)+\'&amp;c=\'+escape(t)+\'&amp;st=2\',\'yesky\',\'scrollbars=no,width=400,height=480,left=75,top=20,status=no,resizable=yes\'));yesky.focus();\"><img alt=天极网摘 src=\"http://img.knowsky.com/img/wangzhai/yesky.gif\" border=0><\/a> ");

    document.writeln("<a href=\"javascript:location.href=\'http:\/\/www.diglog.com\/submit?url=\'+encodeURIComponent(location.href)+\'&title=\'+encodeURIComponent(document.title)\"><img alt=diglog src=\"http://img.knowsky.com/img/wangzhai/diglog.png\" border=0><\/a>")

    document.writeln("                <a 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)+\'&amp;url=\'+escape(u)+\'&amp;excerpt=\'+escape(e),\'HexunBookmark\',\'scrollbars=no,width=600,height=450,left=80,top=80,status=no,resizable=yes\'));\"><img alt=和讯网摘 src=\"http://img.knowsky.com/img/wangzhai/hexun.gif\" border=0><\/a> ");

    document.writeln("                <a 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)+\'&amp;u=\'+escape(d.location.href)+\'&amp;c=\'+escape(t)+\'&amp;img=http:\/\/www.h-strong.com\/blog\/logo.gif\',\'keyit\',\'scrollbars=no,width=475,height=575,status=no,resizable=yes\'));keyit.focus();\"><img alt=POCO网摘 src=\"http://img.knowsky.com/img/wangzhai/poco.gif\" border=0><\/a> ");

    document.writeln("                <a href=\"javascript:u=location.href;t=document.title;void(open(\'http:\/\/www.YouNote.com\/NoteIt.aspx?u=\'+escape(u)+\'&amp;t=\'+escape(t)+\'&amp;c=\'+escape(document.selection.createRange().text),\'网络书签\', \'toolbar=no,width=475,height=575,left=75,top=20,status=no,resizable=yes\'));\"><img alt=YouNote网摘 src=\"http://img.knowsky.com/img/wangzhai/younote.gif\" border=0><\/a> ");

    document.writeln("                <a 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)+\'&amp;newspath=\'+escape(d.location.href)+\'&amp;subtitle=\'+escape(t),\'bolaa\',\'width=400px,height=400px\'));blog.focus();\"><img alt=博拉网 src=\"http://img.knowsky.com/img/wangzhai/bolaa.gif\" border=0><\/a> ");

    document.writeln("                <a 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)+\'&amp;u=\'+escape(d.location.href)+\'&amp;c=\'+escape(t),\'keyit\',\'scrollbars=no,width=490,height=450,left=120,top=50,status=no,resizable=yes\'));keyit.focus();\"><img alt=天下图摘 src=\"http://img.knowsky.com/img/wangzhai/cn3.gif\" border=0><\/a> ");

    document.writeln("                <a href=\"javascript:location.href=\'http:\/\/del.icio.us\/post?&amp;url=\'+encodeURIComponent(location.href)+\'&amp;title=\'+encodeURIComponent(document.title)\"><img alt=Del.icio.us src=\"http://img.knowsky.com/img/wangzhai/delicious.gif\" border=0><\/a>")

    document.writeln("<a href=\"javascript:location.href=\'http:\/\/digg.com\/submit?phase=2&url=\'+encodeURIComponent(location.href)+\'&title=\'+encodeURIComponent(document.title)\"><img alt=digg src=\"http://img.knowsky.com/img/wangzhai/digg.png\" border=0><\/a>")

    document.writeln("<a href=\"javascript:location.href=\'http:\/\/reddit.com\/submit?url=\'+encodeURIComponent(location.href)+\'&title=\'+encodeURIComponent(document.title)\"><img alt=reddit src=\"http://img.knowsky.com/img/wangzhai/reddit.png\" border=0><\/a>")

    document.writeln("<a href=\"javascript:location.href=\'http:\/\/www.spurl.net\/spurl.php?v=3&title=\'+encodeURIComponent(document.title)+\'&url=\'+encodeURIComponent(location.href)\"><img alt=spurl src=\"http://img.knowsky.com/img/wangzhai/spurl.png\" border=0><\/a>")

    document.writeln("<a href=\"javascript:location.href=\'http:\/\/www.blinklist.com\/index.php?Action=Blink\/addblink.php&Description=\'+encodeURIComponent(document.title)+\'&Url=\'+encodeURIComponent(location.href)+\'&Title=\'+encodeURIComponent(document.title)\"><img alt=BlinkList src=\"http://img.knowsky.com/img/wangzhai/blinklist.gif\" border=0><\/a>")

    document.writeln("<a href=\"javascript:location.href=\'http:\/\/blogmarks.net\/my\/new.php?mini=1&simple=1&url=\'+encodeURIComponent(location.href)+\'&title=\'+encodeURIComponent(document.title)\"><img alt=blogmarks src=\"http://img.knowsky.com/img/wangzhai/blogmarks.png\" border=0><\/a>")

     

    下面是一个非js的网摘源码,可以直接张贴在网页源代码里面:

    <table><tr>
    <td align="left" colspan="2">加入网摘:<a 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();" title="功能强大的网络收藏夹,一秒钟操作就可以轻松实现保存带来的价值、分享带来的快乐"><font color=DarkOrchid>365K<font color="#57c200">e</font>y</font></a>
     <a 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=http://www.jobui.com&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();" title="收藏的网页将被永久地保存到新浪ViVi收藏夹http://vivi.sina.com.cn"><font color=#FF6600>新浪ViVi</font></a>
     <a 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();">搜狐狐摘</a>
     <a 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'));">和讯网摘</a>
     <a 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();" title="天极网摘:文摘|图摘|闪摘|乐摘 http://hot.yesky.com">天极网摘</a>
     <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://my.poco.cn/fav/storeIt.php?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'_blank','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));" title="收藏到POCO 网摘http://share.poco.cn"><font color="#4cb509">POCO网摘</font></a>
     <a 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'));">igooi-it网摘</a>
     <a 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'));">亿友响享</a>
     <a href="javascript:q=location.href;p=document.title;void(open('http://del.icio.us/shunz?v=2&noui=yes&jump=close&url='+encodeURIComponent(q)+'&title='+encodeURIComponent(p),'delicious', 'toolbar=no,width=700,height=250'));" title="Add this page to del.icio.us">delicious</a>
     <a 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.blogchina.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();" title="将此文加入博客中国博采">博采</a>
     <a href="javascript:(function(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');var furlit=window.open('http://www.furl.net/storeIt.jsp?t='+encodeURIComponent(d.title)+'&u='+escape(d.location.href)+'&r='+escape(d.referrer)+'&c='+encodeURIComponent(t),'furlit','width=475,height=575,left=75,top=20,resizable=yes');furlit.focus();})();" title="Add this page to Furl">Furl</a></td>
    </tr></table>

     

  • 点这里复制本页地址发送给您QQ/MSN上的好友
  • 相关文章
  • 相关评论
    • 2008-12-23评论人:bluestone
    • 文件附件那里,要是有文件下载计数功能就好了
    • 2008-12-17评论人:222.218.222.151
    • 不错,我用了。www.hao148.net.
  • 本文章所属分类:首页 建站经验