怎么樣給自己的博客加上新浪微博“加關(guān)注”按鈕呢?下面米粒在線分享給大家。
效果請(qǐng)看我的quanzhouzhan.com泉州站人才網(wǎng)。(看下圖也可以)
其實(shí)很簡(jiǎn)單,在HTML源代碼的<body>...</body>之間插入下面一段代碼即可,記得將代碼中的UID改成你的新浪微博UID喔。
<iframe?allowtransparency=""?border="0"?frameborder="0"?height="22"?marginheight="0"?
marginwidth="0"?scrolling="no"src="http://widget.weibo.com/relationship/followbutton.php?
width=200&height=22&uid=3090234405&style=5&btn=red&dpc=1"?
style="width: 64px; height: 22px;"?width="200"></iframe>
下面是含粉絲數(shù)的樣式
<iframe?src="http://widget.weibo.com/relationship/followbutton.php?
language=zh_cn&width=136&height=24&uid=3090234405&
style=2&btn=red&dpc=1"?frameborder="0"?marginwidth="0"?marginheight="0"
scrolling="no"?width="136"?height="24"></iframe>
什么是UID?
登陸你的新浪微博,進(jìn)入微博之后地址中的一串?dāng)?shù)字就是了。
對(duì)于設(shè)置了個(gè)性域名的童鞋,URL是看不到你的UID的,這時(shí)候只需點(diǎn)擊你的粉絲數(shù),URL中就會(huì)出現(xiàn)一串?dāng)?shù)字,就是它了。
如果你的瀏覽器已經(jīng)登陸了你的微博賬號(hào),那么按鈕會(huì)顯示成“你自己”。
感謝支持米粒在線。轉(zhuǎn)載請(qǐng)注明出處:http://m.bjmhhq.com/1631.html
評(píng)論