新浪微博“加關注”按鈕|給博客加上新浪微博“加關注”按鈕

網站建設 SEO相關評論2,194閱讀模式

怎么樣給自己的博客加上新浪微博“加關注”按鈕呢?下面米粒在線分享給大家。

效果請看我的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&amp;height=22&amp;uid=3090234405&amp;style=5&amp;btn=red&amp;dpc=1"?

style="width: 64px; height: 22px;"?width="200"></iframe>
下面是含粉絲數的樣式

<iframe?src="http://widget.weibo.com/relationship/followbutton.php?

language=zh_cn&amp;width=136&amp;height=24&amp;uid=3090234405&amp;

style=2&amp;btn=red&amp;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

 
  • 本文由 米粒在線 發表于 2012年11月27日21:56:49
  • 轉載請務必保留本文鏈接:http://www.bjmhhq.com/1631.html

發表評論

匿名網友
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:
確定

拖動滑塊以完成驗證