zoukankan      html  css  js  c++  java
  • 分享到人人网/开心网/QQ/百度/Google书签/新浪收藏等JS代码

    目前网络流行社会化分享、收藏,相信很多网站主也都在自己的站点或者博客上添加了各种社会化网页分享/收藏按钮,以方便访客们收藏分享。现在77250免费资源网就把自己的一些“分享到人人网/开心网/QQ/百度/Google书签/新浪收藏”等JS代码分享给需要的站长朋友,希望大家喜欢!

    具体JS代码如下:
    <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','');void(0)><img src=http://www.free9.net/site/sucai/2010-02-06/"更换成自己的图片地址/images/qq.gif" alt="QQ书签" border="0" height="16" width="16"></a>

    <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"><img src=http://www.free9.net/site/sucai/2010-02-06/"更换成自己的图片地址/images/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"></a>

    <a href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src=http://www.free9.net/site/sucai/2010-02-06/"更换成自己的图片地址/images/google.gif" alt="Google书签" border="0" height="16" width="16"></a>

    <a target=_self 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=77250.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();" target="_blank"><img src=http://www.free9.net/site/sucai/2010-02-06/"更换成自己的图片地址/images/vivi.gif" alt="新浪ViVi" border="0" height="16" width="16"></a>

    <a href="#" 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=550,left=80,top=80,status=yes,resizable=yes');"><img src=http://www.free9.net/site/sucai/2010-02-06/"更换成自己的图片地址/images/yahoo.gif" alt="雅虎收藏" border="0" height="16" width="16"></a>

    <a href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){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%20a();})(screen,document,encodeURIComponent));"><img src=http://www.free9.net/site/sucai/2010-02-06/"更换成自己的图片地址/images/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"></a>

    <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();"><img src=http://www.free9.net/site/sucai/2010-02-06/"更换成自己的图片地址/images/kaixin001.gif" alt="转贴到开心网" border="0" height="16" width="16"></a>


     本文属【麒麟门户网 http://www.77250.com/】版权所有 转载请注明
     原文标题:分享到人人网/开心网/QQ/百度/Google书签/新浪收藏等JS代码 - 麒麟门户网
     原文地址:http://www.77250.com/article/6523.html

    作者:罗敏贵
    邮箱:minguiluo@163.com
    QQ群:34178394 建群 主要是寻找志同道合的人士一起学习和讨论自己的所学所思
    出处:http://luomingui.cnblogs.com/
    说明:专注于微软平台项目架构、熟悉设计模式、架构设计、敏捷个人和项目管理。现主要从事WinForm、ASP.NET、等方面的项目开发、架构、管理工作。文章为作者平时里的思考和练习,可能有不当之处,请博客园的园友们多提宝贵意见。
    知识共享许可协议本作品采用知识共享署名-非商业性使用-相同方式共享 2.5 中国大陆许可协议进行许可。

  • 相关阅读:
    定义扩展点,实现发布订阅机制
    JS阻止事件冒泡
    Virtualbox安装黑苹果
    外部Tomcat使用Java热部署利器JRebel
    在Windows server 2016上使用docker
    Tomcat加载web.xml文件的顺序详解
    IDEA反编译整个jar包
    java集合类的继承结构
    利用BodyTagSupport创建带标签体的自定义标签
    jquery实现简单弹出框
  • 原文地址:https://www.cnblogs.com/luomingui/p/2003181.html
Copyright © 2011-2022 走看看