微博分享各类规格代码

VARIABLES:
$weibo_var_width
$weibo_var_height
$weibo_buttontype 1-3 (icon), 4-6 (button)

142\" height=\"66
"90" height="70


weibo_sharebutton_button_settings
Old value:
Array
(
    [icontype] => 3
    [count] => 0
    [size] => 1
    [css] => margin: 0 1em 1em 1em;float:right
)


Size: 
Large = 1
Medium = 2
Small = 3
Icon = 0
Button = +3

Button Sizes with count
  var _w = 142 , _h = 66;
  var _w = 106 , _h = 58;
  var _w = 86 , _h = 50;

Icon with count
  var _w = 55 , _h = 66;
  var _w = 90 , _h = 24;
  var _w = 72 , _h = 16;


  var _w = 32 , _h = 32;
  var _w = 24 , _h = 24;
  var _w = 16 , _h = 16;

  var _w = 142 , _h = 32;
  var _w = 106 , _h = 24;
  var _w = 86 ,  _h = 16;



= 142 , _h = 32;
w = 106 , _h = 24;
 _w = 86 , _h = 16;
  var _w = 32 , _h = 32;
86 , _h = 16;

$weibo_count

CODE:
<script type="text/javascript" charset="utf-8">
(function(){
  var _w = $weibo_var_width , _h = $weibo_var_height;
  var param = {
    url:location.href,
    type:'$weibo_buttontype',
    count:'$weibo_count', /**是否显示分享数,1显示(可选)*/
    appkey:'', /**您申请的应用appkey,显示分享来源(可选)*/
    title:'', /**分享的文字内容(可选,默认为所在页面的title)*/
    pic:'', /**分享图片的路径(可选)*/
    ralateUid:'', /**关联用户的UID,分享微博会@该用户(可选)*/
    rnd:new Date().valueOf()
  }
  var temp = [];
  for( var p in param ){
    temp.push(p + '=' + encodeURIComponent( param[p] || '' ) )
  }
  document.write('<iframe allowTransparency="true" frameborder="0" scrolling="no" src="http://hits.sinajs.cn/A1/weiboshare.html?' + temp.join('&') + '" width="'+ _w+'" height="'+_h+'"></iframe>')
})()
</script>



=======================
Button = Yes
Size = Big
Count = No
================
<script type="text/javascript" charset="utf-8">
(function(){
  var _w = 142 , _h = 32;
  var param = {
    url:location.href,
    type:'4',
    count:'', /**是否显示分享数,1显示(可选)*/
    appkey:'', /**您申请的应用appkey,显示分享来源(可选)*/
    title:'', /**分享的文字内容(可选,默认为所在页面的title)*/
    pic:'', /**分享图片的路径(可选)*/
    ralateUid:'', /**关联用户的UID,分享微博会@该用户(可选)*/
    rnd:new Date().valueOf()
  }
  var temp = [];
  for( var p in param ){
    temp.push(p + '=' + encodeURIComponent( param[p] || '' ) )
  }
  document.write('<iframe allowTransparency="true" frameborder="0" scrolling="no" src="http://hits.sinajs.cn/A1/weiboshare.html?' + temp.join('&') + '" width="'+ _w+'" height="'+_h+'"></iframe>')
})()
</script>


================
Button = Yes
Size = Medium
Count = No
================
<script type="text/javascript" charset="utf-8">
(function(){
  var _w = 106 , _h = 24;
  var param = {
    url:location.href,
    type:'5',
    count:'', /**是否显示分享数,1显示(可选)*/
    appkey:'', /**您申请的应用appkey,显示分享来源(可选)*/
    title:'', /**分享的文字内容(可选,默认为所在页面的title)*/
    pic:'', /**分享图片的路径(可选)*/
    ralateUid:'', /**关联用户的UID,分享微博会@该用户(可选)*/
    rnd:new Date().valueOf()
  }
  var temp = [];
  for( var p in param ){
    temp.push(p + '=' + encodeURIComponent( param[p] || '' ) )
  }
  document.write('<iframe allowTransparency="true" frameborder="0" scrolling="no" src="http://hits.sinajs.cn/A1/weiboshare.html?' + temp.join('&') + '" width="'+ _w+'" height="'+_h+'"></iframe>')
})()
</script>


================
Button = Yes
Size = Small
Count = No
================
<script type="text/javascript" charset="utf-8">
(function(){
  var _w = 86 , _h = 16;
  var param = {
    url:location.href,
    type:'6',
    count:'', /**是否显示分享数,1显示(可选)*/
    appkey:'', /**您申请的应用appkey,显示分享来源(可选)*/
    title:'', /**分享的文字内容(可选,默认为所在页面的title)*/
    pic:'', /**分享图片的路径(可选)*/
    ralateUid:'', /**关联用户的UID,分享微博会@该用户(可选)*/
    rnd:new Date().valueOf()
  }
  var temp = [];
  for( var p in param ){
    temp.push(p + '=' + encodeURIComponent( param[p] || '' ) )
  }
  document.write('<iframe allowTransparency="true" frameborder="0" scrolling="no" src="http://hits.sinajs.cn/A1/weiboshare.html?' + temp.join('&') + '" width="'+ _w+'" height="'+_h+'"></iframe>')
})()
</script>



================
Button = Yes
Size = Big
Count = Yes
================
<script type="text/javascript" charset="utf-8">
(function(){
  var _w = 32 , _h = 32;
  var param = {
    url:location.href,
    type:'1',
    count:'', /**是否显示分享数,1显示(可选)*/
    appkey:'', /**您申请的应用appkey,显示分享来源(可选)*/
    title:'', /**分享的文字内容(可选,默认为所在页面的title)*/
    pic:'', /**分享图片的路径(可选)*/
    ralateUid:'', /**关联用户的UID,分享微博会@该用户(可选)*/
    rnd:new Date().valueOf()
  }
  var temp = [];
  for( var p in param ){
    temp.push(p + '=' + encodeURIComponent( param[p] || '' ) )
  }
  document.write('<iframe allowTransparency="true" frameborder="0" scrolling="no" src="http://hits.sinajs.cn/A1/weiboshare.html?' + temp.join('&') + '" width="'+ _w+'" height="'+_h+'"></iframe>')
})()
</script>


================
Button = Yes
Size = Medium
Count = Yes
================



================
Button = Yes
Size = Small
Count = Yes
================


================
Icon = Yes
Size = Big
Count = No
================
<script type="text/javascript" charset="utf-8">
(function(){
  var _w = 32 , _h = 32;
  var param = {
    url:location.href,
    type:'1',
    count:'', /**是否显示分享数,1显示(可选)*/
    appkey:'', /**您申请的应用appkey,显示分享来源(可选)*/
    title:'', /**分享的文字内容(可选,默认为所在页面的title)*/
    pic:'', /**分享图片的路径(可选)*/
    ralateUid:'', /**关联用户的UID,分享微博会@该用户(可选)*/
    rnd:new Date().valueOf()
  }
  var temp = [];
  for( var p in param ){
    temp.push(p + '=' + encodeURIComponent( param[p] || '' ) )
  }
  document.write('<iframe allowTransparency="true" frameborder="0" scrolling="no" src="http://hits.sinajs.cn/A1/weiboshare.html?' + temp.join('&') + '" width="'+ _w+'" height="'+_h+'"></iframe>')
})()
</script>

================
Icon = Yes
Size = Medium
Count = No
================


================
Icon = Yes
Size = Small
Count = No
================



================
Icon = Yes
Size = Big
Count = Yes
================
<script type="text/javascript" charset="utf-8">
(function(){
  var _w = 55 , _h = 66;
  var param = {
    url:location.href,
    type:'1',
    count:'1', /**是否显示分享数,1显示(可选)*/
    appkey:'', /**您申请的应用appkey,显示分享来源(可选)*/
    title:'', /**分享的文字内容(可选,默认为所在页面的title)*/
    pic:'', /**分享图片的路径(可选)*/
    ralateUid:'', /**关联用户的UID,分享微博会@该用户(可选)*/
    rnd:new Date().valueOf()
  }
  var temp = [];
  for( var p in param ){
    temp.push(p + '=' + encodeURIComponent( param[p] || '' ) )
  }
  document.write('<iframe allowTransparency="true" frameborder="0" scrolling="no" src="http://hits.sinajs.cn/A1/weiboshare.html?' + temp.join('&') + '" width="'+ _w+'" height="'+_h+'"></iframe>')
})()
</script>

================
Icon = Yes
Size = Medium
Count = Yes
================


================
Icon = Yes
Size = Small
Count = Yes
================


  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值