Email:sunwindy@gmail.com
本站原创文章版权属原创作者所有,未经同意,请勿转载
在模版b_article_comment.html增加 <li class="msgname"><a onclick="InsertQuote(this.parentNode.parentNode.getElementsByTagName('a')[2].innerHTML,this.parentNode.parentNode.getElementsByTagName('li')[2].innerHTML);return false;" href=""><img src="<#ZC_BLOG_HOST#>image/common/quote.gif" height="9" width="9" alt="quote" title="quote" /></a> <a name="cmt<#article/comment/id#>"><#article/comment/count#></a>.<a href="mailto:<#article/comment/email#>" onclick="this.href=(this.href).replace(/\[AT\]/,String.fromCharCode(64));"><#article/comment/name#></a></li>
",false);common.js增加函数
//*********************************************************
// 目的: InsertQuote To txaArticle
// 输入: 无
// 返回: 无
//*********************************************************
function InsertQuote(strName,strText)
{
objActive="txaArticle";
var re;
re=new RegExp("<br/?>","ig");
strText=strText.replace(re, "\n");
re=new RegExp("<[^>]*>","ig");
strText=strText.replace(re, "");
InsertText(objActive,"[QUOTE=",false);
InsertText(objActive,strName,false);
InsertText(objActive,"]",false);
InsertText(objActive,strText,false);
InsertText(objActive,"
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。