讓 Blogger 的意見回應可以有回覆&美食分享

紅色為新增部分,讓 Blogger 可以有回復,備份用途

<script type=’text/javascript’>
function authorReply(CID) {
var strBody = document.getElementById(CID).innerHTML.replace(/Re:s*.+s*&amp;lt;(d+)&amp;gt;s*&lt;BR/?&gt;/i,&#39;&#39;);
var strOut = &quot;<div style=’background-color: bisque; padding: 4px’><b>作者回覆</b>&#65306;<br/>&quot;+strBody+&#39;</div><p/>&#39;;
if(RegExp.$1)
document.getElementById(&#39;RID&#39;+RegExp.$1).innerHTML = strOut;
else
document.write(strOut);
}

function replyEmbedComment(CN,CID) {
var url = document.getElementById(&#39;comment-editor-src&#39;).href.replace(/-iframe/,”);
url += &quot;&amp;postBody=Re:+&quot;+escape(CN)+&quot;+&lt;&quot;+CID+&quot;&gt;%0D%0A&quot;;
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=’&quot;CID&quot; + 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(&quot;CID<data:comment.id/>&quot;);
</script>
<b:else/>
<dt expr:class=’&quot;comment-author &quot; + 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=’&quot;item-control &quot; + data:comment.adminClass’>
<b:if cond=’data:post.embedCommentForm’>
<a href=’#comment-form’ expr:onclick=’&quot;replyEmbedComment(&quot;&quot; + data:comment.author + &quot;&quot;,&quot;&quot; + data:comment.id + &quot;&quot;)&quot;’ style=’font: 9pt Arial; color:#8a8a8a’>回</a>
<b:else/>
<b:if cond=’data:post.allowComments’>
<a expr:href=’data:post.addCommentUrl + &quot;&amp;postBody=Re%3A%20&quot; + data:comment.author + &quot;%20%3C&quot; + data:comment.id + &quot;%3E%0D%0A&quot;’ 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=’&quot;RID&quot; + data:comment.id’/>
</dd>
</b:if>

</b:loop>
</dl>

相連文章

一般留言

  1. Re: TurtleChiu(小龜) <9067962119602361059>
    剛創立沒多久的部落格=口=
    小龜一起切磋切磋唄~~~好多功能還不會用阿(吶喊)
    我也有一個同學叫小龜的說=.=

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *