test

test

2008年4月12日 星期六

在Blogger上置入FunP推推王按鈕

參考這兩篇:

http://skyvee.net/2007/05/blogger-funp.html
http://skyvee.net/2007/08/funp-push.html



以下為原文重點收錄:
I.首先 在 <head> </head> 之間, 加入這段程式碼.
<script language='JavaScript' src='http://bloggertips.googlecode.com/files/funp_button2.js'/>
II.以下三選一

如果要把推文按鈕加在文章標題列, 則在 <h3 class='post-title'> 後, 加入以下程式碼
<script>funp_genButton("<data:post.url/>");</script>

如果想放在文章左側, 則在<p><data:post.body/></p> 之前, 加入以下程式碼
<div style='float:left;margin-left:10px;'>
<script>funp_genButton("");</script>
</div>

如果是文章右側, 則在<p><data:post.body/></p> 之前, 加入以下程式碼
<div style='float:right;margin-right:10px;'>
<script>funp_genButton("<data:post.url/>");</script>
</div>

沒有留言: