Facebook (官方小工具)

<!--Facebook分享按鈕(純HTML語法)-->
<a target="_blank" href="http://www.facebook.com/share.php?u=分享網址">
<img title="分享到臉書!" src="圖片網址" border="0" width="20" /></a>
 
<!--Facebook分享按鈕(JavaScript語法)-->
<a href="javascript: void(window.open('http://www.facebook.com/share.php?u='.concat(encodeURIComponent(location.href)) ));">
<img title="分享到臉書!" src="圖片網址" border="0" width="20" /></a>
 
<!--Facebook分享按鈕(WordPress參考語法)-->
<a target="_blank" href="http://www.facebook.com/share.php?u=<?php the_permalink(); ?>">
<img title="分享到臉書!" src="圖片網址" border="0" width="20" /></a>

關連文章:在網誌中加入facebook的"讚"按鈕

 


Plurk

<!--Plurk分享按鈕(純HTML語法)-->
<a target="_blank" href="http://plurk.com/?qualifier=shares&status=[分享] 分享網址 (網址標題)">
<img title="分享到噗浪!" src="圖片網址" border="0" width="20" /></a>
 
<!--Plurk分享按鈕(JavaScript語法)-->
<a href="javascript: void(window.open('http://www.plurk.com/?qualifier=shares&status=' .concat(encodeURIComponent(location.href)) .concat(' ') .concat('&#40;') .concat(encodeURIComponent(document.title)) .concat('&#41;')));">
<img title="分享到噗浪!" src="圖片網址" border="0" width="20" /></a>
 
<!--Plurk分享按鈕(WordPress參考語法)-->
<a target="_blank" href="http://plurk.com/?qualifier=shares&status=[分享] <?php the_permalink(); ?> (<?php the_title(); ?>)">
<img title="分享到噗浪!" src="圖片網址" border="0" width="20" /></a>

 


Twitter (官方小工具)

<!--Twitter分享按鈕(純HTML語法)-->
<a target="_blank" href="http://twitter.com/home/?status=網址標題 分享網址">
<img title="分享到推特!" src="圖片網址" border="0" width="20" /></a>
 
<!--Twitter分享按鈕(JavaScript語法)-->
<a href="javascript: void(window.open('http://twitter.com/home/?status='.concat(encodeURIComponent(document.title)) .concat(' ') .concat(encodeURIComponent(location.href))));">
<img title="分享到推特!" src="圖片網址" border="0" width="20" /></a>
 
<!--Twitter分享按鈕(WordPress參考語法)-->
<a target="_blank" href="http://twitter.com/home/?status=<?php the_title(); ?> <?php the_permalink(); ?>">
<img title="分享到推特!" src="圖片網址" border="0" width="20" /></a>

 


新浪微博 (官方小工具)

<!--微博分享按鈕(純HTML語法)-->
<a target="_blank" href="http://v.t.sina.com.cn/share/share.php?title=網址標題&url=分享網址">
<img title="分享到微博!" src="圖片網址" border="0" width="20" /></a>
 
<!--微博分享按鈕(JavaScript語法)-->
<a href="javascript:(function(){window.open('http://v.t.sina.com.cn/share/share.php?title='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(location.href)+'&source=bookmark','_blank','width=450,height=400');})()">
<img title="分享到微博!" src="圖片網址" border="0" width="20" /></a>
 
<!--微博分享按鈕(WordPress參考語法)-->
<a target="_blank" href="http://v.t.sina.com.cn/share/share.php?title=<?php the_title(); ?>&url=<?php the_permalink(); ?>">
<img title="分享到微博!" src="圖片網址" border="0" width="20" /></a>

 


Google+ (官方小工具) (2012.04.29 更新)

Google+的社群按鈕有分成+1(推文)和分享。+1的意思是"推薦"這篇文章,類似facebook按"讚"的意思,會顯示在推文者個人資料裡面,但是不一定會被分享到訊息列(塗鴉牆)上。而分享就是直接發佈到訊息列上,讓朋友們可以互相交流。兩者據說都會被google列入搜尋排名的考量因素中,所以二個按鈕最好都要使用。

+1的按鈕可以從官方工具選擇樣式後,直接貼上語法即可。如果要指定網頁(例如首頁),讓 +1 的按鈕不會隨網址變動而改變的話(如本站選單上的 +1),可以選擇「進階選項」輸入「+1 的網址」即可。

<!--Google+分享按鈕(純HTML語法)-->
<a target="_blank" href="https://plus.google.com/share?url=分享網址">
<img title="分享到Google+!" src="https://www.gstatic.com/images/icons/gplus-32.png" border="0" width="20" /></a>
 
<!--Google+分享按鈕(JavaScript語法)-->
<a href="javascript: void(window.open('https://plus.google.com/share?url='.concat(encodeURIComponent(location.href)), '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600'));">
<img title="分享到Google+!" src="https://www.gstatic.com/images/icons/gplus-32.png" border="0" width="20" /></a>
 
<!--Google+分享按鈕(WordPress參考語法)-->
<a target="_blank" href="https://plus.google.com/share?url=<?php the_permalink(); ?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;">
<img title="分享到Google+!" alt="Share on Google+" src="https://www.gstatic.com/images/icons/gplus-32.png" border="0" width="20" /></a>


arrow
arrow

    GL.Yang 發表在 痞客邦 留言(3) 人氣()