雖然做左都無乜用, (因為大陸 block 左 blogspot)
不過都順手post 出來la...
1. 去 http://open.weibo.com/sharebutton 選你既 "新浪微博分享按钮" 樣
2. copy 段 code
<script type="text/javascript" charset="utf-8">3. 去 http://www.eblogtemplates.com/blogger-ad-code-converter/ 轉 code 比 blogspot用
(function(){
var _w = 55 , _h = 66;
var param = {
url:location.href,
type:'1',
count:'1', /**是否显示分享数,1显示(可选)*/
appkey:'', /**您申请的应用appkey,显示分享来源(可选)*/
title:'', /**分享的文字内容(可选,默认为所在页面的title)*/
pic:'', /**分享图片的路径(可选)*/
ralateUid:'1720080511', /**关联用户的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>
4. 打開 edit template 個 page
5. search <data:post.body/>
6. 係 <data:post.body/> 上面 貼個段 code
ref link:
新浪微博分享按钮
http://open.weibo.com/sharebutton
Google +1 Button
http://www.google.com/intl/zh-TW/webmasters/+1/button/index.html
Facebook Like Button
https://developers.facebook.com/docs/reference/plugins/like/
Comments: