2008/02/18

トラックバック(haloscan)を追加する

STEP:1
<head>~</head>に下記のコードを追記する。

<script src="'http://www.haloscan.com/load/shakingidea'" type="'text/javascript'"></script>
</head>

STEP:2
下記コードを

<span class="'post-comment-link'">
<b:if cond="'data:blog.pageType">
<b:if cond="'data:post.allowComments'">
<a class="'comment-link'" href="'data:post.addCommentUrl'" onclick="'data:post.addCommentOnclick'">
<b:if cond="'data:post.numComments"> 1 <data:top.commentlabel/>
<b:else/>
<data:post.numcomments/>
<data:top.commentlabelplural/>
</b:if>
</a>
</b:if>
</b:if>
<span class='post-backlinks post-comment-link'>
<b:if cond='data:blog.pageType != "item"'>
<b:if cond='data:post.showBacklinks'>
<a class='comment-link' expr:href='data:post.url + "#links"'>
<data:top.backlinkLabel/>
</a>
</b:if>
</b:if>
</span>

を下記のように書き換える。

<span class="'post-comment-link'">
<b:if cond="'data:blog.pageType">
<b:if cond="'data:post.allowComments'">
<a class="'comment-link'" href="'data:post.addCommentUrl'" onclick="'data:post.addCommentOnclick'">
<b:if cond="'data:post.numComments"> 1 <data:top.commentlabel/>
<b:else/>
<data:post.numcomments/>
<data:top.commentlabelplural/>
</b:if>
</a>
</b:if>
</b:if>
</span>
<span class='post-backlinks post-comment-link'>
<b:if cond='data:blog.pageType != "item"'>
<b:if cond='data:post.showBacklinks'>
<a class='comment-link' expr:href='data:post.url + "#links"'>
<data:top.backlinkLabel/>
</a>
</b:if>
</b:if>
</span>
<span>
<a expr:href='"javascript:HaloScanTB(" + "\"" + data:post.id + "\"" + ");"' target="_self">
<script type="text/javascript">
postCountTB('<data:post.id/>');
</script>
</a>
</span>


0 coment: