怎么樣給自己的博客加上新浪微博“加關注”按鈕呢?下面米粒在線分享給大家。
效果請看我的quanzhouzhan.com泉州站人才網。(看下圖也可以)
其實很簡單,在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>
下面是含粉絲數的樣式
<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?
登陸你的新浪微博,進入微博之后地址中的一串數字就是了。
對于設置了個性域名的童鞋,URL是看不到你的UID的,這時候只需點擊你的粉絲數,URL中就會出現一串數字,就是它了。
如果你的瀏覽器已經登陸了你的微博賬號,那么按鈕會顯示成“你自己”。
感謝支持米粒在線。轉載請注明出處:http://www.bjmhhq.com/1631.html
評論