bShare共有、複数の共有ボタン

8779 ワード

 、   3 js   :
 
  
<script type="text/javascript" language="javascript" src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")">script>
<script type="text/javascript" charset="utf-8" src="@Url.Content("~/Scripts/buttonLite.js#style=-1&uuid=&pophcol=2&lang=zh")">script>
<script type="text/javascript" charset="utf-8" src="@Url.Content("~/Scripts/bshareC0.js")">script> 
 、      :
<script type="text/javascript" language="javascript">
 function shareplatform(url, id, imgs) {
            var descript = $("#dp_" + id).html();
            //       ,                   
            var url = url;
            var str_title = "   " + $("#uname_" + id).html() + "      ";
            var str_info = descript;
            var img = imgs;
            //            ,      ,       
            bShare.entries = [];
            //           ,           ,bshare js            
            bShare.addEntry({
                title: str_title,
                url: url,
                summary: str_info,
                pic: img
            });
 
            //          ,     
            bShare.isReady = false;
            bShare.completed = false;
            bShare.start();
        }
    script>
 、html
 
  
 <div class="bshare-custom" style="floatrightwidth220px;">
                                <a class="item"><i class="ui-icon icon-share">i>a>
                                <a title="       " class="bshare-sinaminiblog" onclick="shareplatform('    url','  ID','    Url')" href="javascript:void(0);">
                                a>
                                <a title="   QQ  " class="bshare-qqim" onclick="shareplatform(
'    url','  ID','    Url'

)" 
href
=
"javascript:void(0);"
>                                
a
>                                
<

title
=
「QQ空間に分かち合う」
class
=
"bshare-qzone"  
onclick
=
"shareplatform(
'    url','  ID','    Url'

)" 
href
=
"javascript:void(0);"
>                                
a
>                                
<

title
=
「微信に分かち合う」
class
=
"bshare-weixin"
onclick
=
"shareplatform(
'    url','  ID','    Url'

)" 
href
=
"javascript:void(0);"
>                                
a
>                                 
<

title
=
「テンセント微博に分かち合う」
class
=
"bshare-qqmb" 
onclick
=
"shareplatform(
'    url','  ID','    Url'

)" 
href
=
"javascript:void(0);"
>                                
a
>                        
div
>