讓 Blogger 的意見回應可以有回覆&美食分享
紅色為新增部分,讓 Blogger 可以有回復,備份用途
<script type=’text/javascript’>
function authorReply(CID) {
var strBody = document.getElementById(CID).innerHTML.replace(/Re:s*.+s*&lt;(d+)&gt;s*<BR/?>/i,'');
var strOut = "<div style=’background-color: bisque; padding: 4px’><b>作者回覆</b>:<br/>"+strBody+'</div><p/>';
if(RegExp.$1)
document.getElementById('RID'+RegExp.$1).innerHTML = strOut;
else
document.write(strOut);
}
function replyEmbedComment(CN,CID) {
var url = document.getElementById('comment-editor-src').href.replace(/-iframe/,”);
url += "&postBody=Re:+"+escape(CN)+"+<"+CID+">%0D%0A";
location.href = url;
}
</script>
<dl id=’comments-block’>
<b:loop values=’data:post.comments’ var=’comment’>
<b:if cond=’data:comment.author == data:post.author’>
<div expr:id=’"CID" + data:comment.id’ style=’display:none’><data:comment.body/> <span style=’font: 7pt Arial; color:#8a8a8a’>(<data:comment.timestamp/>)</span>
<b:include data=’comment’ name=’commentDeleteIcon’/>
</div>
<script type=’text/javascript’>
authorReply("CID<data:comment.id/>");
</script>
<b:else/>
<dt expr:class=’"comment-author " + data:comment.authorClass’ expr:id=’data:comment.anchorName’>
<a expr:name=’data:comment.anchorName’/>
<b:if cond=’data:comment.authorUrl’>
<a expr:href=’data:comment.authorUrl’ rel=’nofollow’><data:comment.author/></a>
<b:else/>
<data:comment.author/>
</b:if>
<data:commentPostedByMsg/>
</dt>
<dd class=’comment-body’>
<b:if cond=’data:comment.isDeleted’>
<span class=’deleted-comment’><data:comment.body/></span>
<b:else/>
<p><data:comment.body/></p>
</b:if>
</dd>
<dd class=’comment-footer’>
<span class=’comment-timestamp’>
<a expr:href=’data:comment.url’ title=’comment permalink’>
<data:comment.timestamp/>
</a>
<b:include data=’comment’ name=’commentDeleteIcon’/>
<span expr:class=’"item-control " + data:comment.adminClass’>
<b:if cond=’data:post.embedCommentForm’>
<a href=’#comment-form’ expr:onclick=’"replyEmbedComment("" + data:comment.author + "","" + data:comment.id + "")"’ style=’font: 9pt Arial; color:#8a8a8a’>回</a>
<b:else/>
<b:if cond=’data:post.allowComments’>
<a expr:href=’data:post.addCommentUrl + "&postBody=Re%3A%20" + data:comment.author + "%20%3C" + data:comment.id + "%3E%0D%0A"’ expr:onclick=’data:post.addCommentOnclick’ style=’font: 9pt Arial; color:#8a8a8a’>回</a>
</b:if>
</b:if>
</span>
</span>
</dd>
<dd class=’comment-reply’>
<span expr:id=’"RID" + data:comment.id’/>
</dd>
</b:if>
</b:loop>
</dl>
這個不錯用,我會試試看,也會連到原作者處參考看看.
Re: TurtleChiu(小龜) <9067962119602361059>
剛創立沒多久的部落格=口=
小龜一起切磋切磋唄~~~好多功能還不會用阿(吶喊)
我也有一個同學叫小龜的說=.=
叫小龜好啊.
我是因為有養烏龜,而且收集了很多烏龜的公仔,所以叫小龜的.