﻿<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Timothy&#039;s Space &#187; Comment</title>
	<atom:link href="http://www.xiaozhou.net/tag/comment/feed" rel="self" type="application/rss+xml" />
	<link>http://www.xiaozhou.net</link>
	<description>君看一叶舟，出没风波里</description>
	<lastBuildDate>Fri, 03 Feb 2012 17:24:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Blog评论效果小改</title>
		<link>http://www.xiaozhou.net/aboutsite/wordpress/blog_comment_effect_modification-2010-11-23.htm</link>
		<comments>http://www.xiaozhou.net/aboutsite/wordpress/blog_comment_effect_modification-2010-11-23.htm#comments</comments>
		<pubDate>Tue, 23 Nov 2010 15:09:00 +0000</pubDate>
		<dc:creator>Timothy</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[Comment]]></category>
		<category><![CDATA[modification]]></category>
		<category><![CDATA[字数]]></category>
		<category><![CDATA[统计]]></category>
		<category><![CDATA[表情]]></category>
		<category><![CDATA[评论]]></category>

		<guid isPermaLink="false">http://www.xiaozhou.net/aboutsite/wordpress/blog%e8%af%84%e8%ae%ba%e6%95%88%e6%9e%9c%e5%b0%8f%e6%94%b9-2010-11-23.htm</guid>
		<description><![CDATA[工作上的事总算告一段落，于是又开始折腾自己的blog。这次在评论功能中加入了表情效果，和一个动态的字数统计效果。 表情以及字数统计的具体实现，参考了万戈的blog上的方法。有兴趣的同学请移步过去看看。 修改表情传送门： http://www.xiaozhou.net/go/wange_smile 修改字数统计传送门：http://www.xiaozhou.net/go/wange_comment 声明: 此Blog中的文章和随笔仅代表作者在某一特定时间内的观点和结论，对其完全的正确不做任何担保或假设 本站文章均采用 知识共享署名-相同方式共享3.0 协议进行授权，除非注明，本站文章均为原创，转载请注明转自 Timothy&#039;s Space 并应以链接形式标明本文地址!]]></description>
			<content:encoded><![CDATA[<p>工作上的事总算告一段落，于是又开始折腾自己的blog。这次在评论功能中加入了表情效果，和一个动态的字数统计效果。</p>
<p><a href="http://www.xiaozhou.net/pics/Blog_143BB/comment.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border-width: 0px;" title="comment" src="http://www.xiaozhou.net/pics/Blog_143BB/comment_thumb.jpg" border="0" alt="comment" width="682" height="293" /></a></p>
<p>表情以及字数统计的具体实现，参考了万戈的blog上的方法。有兴趣的同学请移步过去看看。</p>
<p>修改表情传送门： <a title="http://www.xiaozhou.net/go/wange_smile" href="http://www.xiaozhou.net/go/wange_smile">http://www.xiaozhou.net/go/wange_smile</a><br />
修改字数统计传送门：<a title="http://www.xiaozhou.net/go/wange_comment" href="http://www.xiaozhou.net/go/wange_comment">http://www.xiaozhou.net/go/wange_comment</a></p>
<p class="announce"><span style="font-weight:bold;text-shadow:0 1px 0 #ddd;">声明:</span> 此Blog中的文章和随笔仅代表作者在某一特定时间内的观点和结论，对其完全的正确不做任何担保或假设 <br /> 本站文章均采用 <a rel="nofollow" href="http://creativecommons.org/licenses/by-nc-sa/3.0/" title="署名-非商业性使用-相同方式共享">知识共享署名-相同方式共享3.0</a> 协议进行授权，除非注明，本站文章均为原创，转载请注明转自  <a href="http://www.xiaozhou.net">Timothy&#039;s Space</a> 并应以链接形式标明本文地址!</p>]]></content:encoded>
			<wfw:commentRss>http://www.xiaozhou.net/aboutsite/wordpress/blog_comment_effect_modification-2010-11-23.htm/feed</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Blog评论功能再次改进</title>
		<link>http://www.xiaozhou.net/aboutsite/wordpress/modify_blog_comment_again-2010-02-04.htm</link>
		<comments>http://www.xiaozhou.net/aboutsite/wordpress/modify_blog_comment_again-2010-02-04.htm#comments</comments>
		<pubDate>Thu, 04 Feb 2010 14:11:00 +0000</pubDate>
		<dc:creator>Timothy</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[Comment]]></category>
		<category><![CDATA[ctrl]]></category>
		<category><![CDATA[Enter]]></category>
		<category><![CDATA[功能]]></category>
		<category><![CDATA[改进]]></category>
		<category><![CDATA[评论]]></category>

		<guid isPermaLink="false">http://www.xiaozhou.net/aboutsite/wordpress/blog%e8%af%84%e8%ae%ba%e5%8a%9f%e8%83%bd%e5%86%8d%e6%ac%a1%e6%94%b9%e8%bf%9b-2010-02-04.htm</guid>
		<description><![CDATA[自从实现了Ajax的评论后，俺还是对评论部分有点不太满意，于是又开始拿评论开刀了。 1.首先想到的，是评论没有分页显示的功能，如果评论数量太多，会把页面拖得很长，在google搜索了一下，原来WordPress原生已经支持评论分页的功能了，所以一不做二不休，继续改动。 其实改动很简单，打开模板的comments.php，在类似wp_list_comments();列出评论的代码后面，加入下面的代码即可: ?View Code PHP1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 &#60;?php // 如果用户在后台选择要显示评论分页 if &#40;get_option&#40;'page_comments'&#41;&#41; &#123; // 获取评论分页的 HTML $comment_pages = paginate_comments_links&#40;'echo=0'&#41;; // 如果评论分页的 HTML 不为空, 显示导航式分页 if &#40;$comment_pages&#41; &#123; ?&#62; &#160; &#60;div id=&#34;commentnavi&#34;&#62; &#60;?php echo $comment_pages; ?&#62;&#60;/div&#62; &#160; &#160; &#60;?php [...]]]></description>
			<content:encoded><![CDATA[<p>自从实现了Ajax的评论后，俺还是对评论部分有点不太满意，于是又开始拿评论开刀了。</p>
<p>1.首先想到的，是评论没有分页显示的功能，如果评论数量太多，会把页面拖得很长，在google搜索了一下，原来WordPress原生已经支持评论分页的功能了，所以一不做二不休，继续改动。<br />
其实改动很简单，打开模板的comments.php，在类似wp_list_comments();列出评论的代码后面，加入下面的代码即可:</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p525code5'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p5255"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td class="code" id="p525code5"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
	<span style="color: #666666; font-style: italic;">// 如果用户在后台选择要显示评论分页</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'page_comments'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">// 获取评论分页的 HTML</span>
		<span style="color: #000088;">$comment_pages</span> <span style="color: #339933;">=</span> paginate_comments_links<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'echo=0'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">// 如果评论分页的 HTML 不为空, 显示导航式分页</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment_pages</span><span style="color: #009900;">&#41;</span>
		<span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;commentnavi&quot;</span><span style="color: #339933;">&gt;</span>
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$comment_pages</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>2. 实现Enter+Ctrl快捷回复，这个比较简单，用jQuery实现，正好这两天也在学jQuery，就当练练手吧。为了增加代码可读性，方便以后维护，将这部分自定义的jQuery代码放在单独的js文件中：timothy.js</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p525code6'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p5256"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code" id="p525code6"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #006600; font-style: italic;">//Ctrl+Enter for fast submit</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#comment&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">keydown</span><span style="color: #009900;">&#40;</span>
    	<span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>event<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>event.<span style="color: #660066;">ctrlKey</span> <span style="color: #339933;">&amp;&amp;</span> event.<span style="color: #660066;">keyCode</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">13</span><span style="color: #009900;">&#41;</span>
        	<span style="color: #009900;">&#123;</span>
            		$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#submit&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        	<span style="color: #009900;">&#125;</span>
    	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>代码比较简单，检测评论框的keydown时间，并判断是否同时按下了Ctrl键和Enter键，如果条件成立，则直接出发提交按钮的点击事件。将此部分js代码上传，并在header.php引入此脚本文件，效果立马就有了。这下同学们可以通过Ctrl+Enter快捷提交评论了。不过后来发现一个问题，这种用Ctrl+Enter快捷提交的评论，不会触发Ajax评论的效果，后来仔细找了找原因，发现Ajax评论的jQuery脚本中，并没有绑定提交按钮的点击事件，而是绑定的整个Form的submit事件，所以把刚才的脚本小小修改一下即可：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p525code7'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p5257"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code" id="p525code7"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #006600; font-style: italic;">//Ctrl+Enter for fast submit</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#comment&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">keydown</span><span style="color: #009900;">&#40;</span>
    	<span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>event<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>event.<span style="color: #660066;">ctrlKey</span> <span style="color: #339933;">&amp;&amp;</span> event.<span style="color: #660066;">keyCode</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">13</span><span style="color: #009900;">&#41;</span>
        	<span style="color: #009900;">&#123;</span>
            		$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#commentform&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">submit</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        	<span style="color: #009900;">&#125;</span>
    	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>这下就搞定了，支持Ctrl+Enter提交的Ajax评论，呵呵。</p>
<p>3.这个修改源自<a href="http://zww.me" target="_blank">Zww</a>同学的提议，在每条评论中增加”回复”按钮，原以为我的皮肤不支持嵌套评论的，尝试着在WordPress的设置项中，把嵌套评论给Enable了，这样的话，每条评论就自动有了个回复按钮。接下来，想实现点击回复的时候，自动把评论的同学的名字填入到评论框中，也就是类似 @XXX: 的形式。大体思路是通过jQuery来实现，绑定这些回复按钮的click事件，获取评论的同学的名称，设置到评论框中。其实<a href="http://zww.me" target="_blank">Zww</a>同学早就实现了这样的功能(<a href="http://zww.me/archives/24817" target="_blank">前去围观</a>)，所以jQuery也可以偷师过来了：</p>

<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p525code8'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p5258"><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code" id="p525code8"><pre class="javascript" style="font-family:monospace;">    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.reply&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span>
	<span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #003366; font-weight: bold;">var</span> <span style="color: #000066;">name</span> <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">prevAll</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;cite:first&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">text</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#comment&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">text</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;@&quot;</span><span style="color: #339933;">+</span><span style="color: #000066;">name</span><span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;:&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #000066;">focus</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>同样，放在$(document).ready里面即可。这次改动，俺意外的发现，原来我的皮肤支持嵌套评论……或许是加入了Ajax评论组件的原因，嘿嘿。</p>
<p>此文很菜，没啥技术含量， 算是学习jQuery的一点心得吧，前路茫茫，吾将继续折腾下去……</p>
<p class="announce"><span style="font-weight:bold;text-shadow:0 1px 0 #ddd;">声明:</span> 此Blog中的文章和随笔仅代表作者在某一特定时间内的观点和结论，对其完全的正确不做任何担保或假设 <br /> 本站文章均采用 <a rel="nofollow" href="http://creativecommons.org/licenses/by-nc-sa/3.0/" title="署名-非商业性使用-相同方式共享">知识共享署名-相同方式共享3.0</a> 协议进行授权，除非注明，本站文章均为原创，转载请注明转自  <a href="http://www.xiaozhou.net">Timothy&#039;s Space</a> 并应以链接形式标明本文地址!</p>]]></content:encoded>
			<wfw:commentRss>http://www.xiaozhou.net/aboutsite/wordpress/modify_blog_comment_again-2010-02-04.htm/feed</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Blog再次改动–启用Ajax评论</title>
		<link>http://www.xiaozhou.net/aboutsite/wordpress/blog_modification_ajax_comment_enabled-2010-02-01.htm</link>
		<comments>http://www.xiaozhou.net/aboutsite/wordpress/blog_modification_ajax_comment_enabled-2010-02-01.htm#comments</comments>
		<pubDate>Mon, 01 Feb 2010 15:08:00 +0000</pubDate>
		<dc:creator>Timothy</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[Comment]]></category>
		<category><![CDATA[enabled]]></category>
		<category><![CDATA[启用]]></category>
		<category><![CDATA[改动]]></category>
		<category><![CDATA[评论]]></category>

		<guid isPermaLink="false">http://www.xiaozhou.net/aboutsite/wordpress/blog%e5%86%8d%e6%ac%a1%e6%94%b9%e5%8a%a8-%e5%90%af%e7%94%a8ajax%e8%af%84%e8%ae%ba-2010-02-01.htm</guid>
		<description><![CDATA[我用的这个皮肤有点旧，很多东西都不支持，但是又舍不得换掉，于是留下了折腾的余地，生命在于折腾嘛。看着Zww同学和久酷同学的Blog，都支持Ajax无页面刷新评论，心里也痒痒的。好像WordPress最新的版本，已经支持Ajax评论了，但是又不知道怎么搞。在Google网上一阵乱搜，找到个不错的解决办法，一个老外同学的一篇文章，照着一步一步改下来，还真实现了，除心里一阵狂喜之外，心里还小有成就感……其实网页也是我的弱项，接下来需要一边学jQuery，一边在现有的皮肤上动刀，再美化美化，呵呵。 最后，推荐下老外同学的添加Ajax评论的文章： http://zeo.unic.net.my/wordpress-ajax-commenting-revisited/ =========================威武的分割线===================== updated: 2010.02.03 上面的文章较老，后来发现添加Ajax后，有bug，于是按照Zww同学推荐的方法，找到另一篇指导文章，捣鼓了半天， 总算搞定了。脚本中由于需要访问一些元素，但是由于我的皮肤本身不支持嵌套评论，所以也把.js脚本小改了一下，屏蔽掉部分东西。这篇文章非常不错，强烈推荐下： http://willin.heliohost.org/?p=1271 声明: 此Blog中的文章和随笔仅代表作者在某一特定时间内的观点和结论，对其完全的正确不做任何担保或假设 本站文章均采用 知识共享署名-相同方式共享3.0 协议进行授权，除非注明，本站文章均为原创，转载请注明转自 Timothy&#039;s Space 并应以链接形式标明本文地址!]]></description>
			<content:encoded><![CDATA[<p>我用的这个皮肤有点旧，很多东西都不支持，但是又舍不得换掉，于是留下了折腾的余地，生命在于折腾嘛。看着<a href="http://zww.me" target="_blank">Zww</a>同学和<a href="http://www.jiucool.com" target="_blank">久酷</a>同学的Blog，都支持Ajax无页面刷新评论，心里也痒痒的。好像WordPress最新的版本，已经支持Ajax评论了，但是又不知道怎么搞。在Google网上一阵乱搜，找到个不错的解决办法，一个老外同学的一篇文章，照着一步一步改下来，还真实现了，除心里一阵狂喜之外，心里还小有成就感……其实网页也是我的弱项，接下来需要一边学jQuery，一边在现有的皮肤上动刀，再美化美化，呵呵。<br />
最后，推荐下老外同学的添加Ajax评论的文章：<br />
<a href="http://zeo.unic.net.my/wordpress-ajax-commenting-revisited/">http://zeo.unic.net.my/wordpress-ajax-commenting-revisited/</a></p>
<p>=========================威武的分割线=====================</p>
<p>updated: 2010.02.03</p>
<p>上面的文章较老，后来发现添加Ajax后，有bug，于是按照<a href="http://zww.me" target="_blank">Zww</a>同学推荐的方法，找到另一篇指导文章，捣鼓了半天， 总算搞定了。脚本中由于需要访问一些元素，但是由于我的皮肤本身不支持嵌套评论，所以也把.js脚本小改了一下，屏蔽掉部分东西。这篇文章非常不错，强烈推荐下：</p>
<p><a href="http://willin.heliohost.org/?p=1271" target="_blank">http://willin.heliohost.org/?p=1271</a></p>
<p class="announce"><span style="font-weight:bold;text-shadow:0 1px 0 #ddd;">声明:</span> 此Blog中的文章和随笔仅代表作者在某一特定时间内的观点和结论，对其完全的正确不做任何担保或假设 <br /> 本站文章均采用 <a rel="nofollow" href="http://creativecommons.org/licenses/by-nc-sa/3.0/" title="署名-非商业性使用-相同方式共享">知识共享署名-相同方式共享3.0</a> 协议进行授权，除非注明，本站文章均为原创，转载请注明转自  <a href="http://www.xiaozhou.net">Timothy&#039;s Space</a> 并应以链接形式标明本文地址!</p>]]></content:encoded>
			<wfw:commentRss>http://www.xiaozhou.net/aboutsite/wordpress/blog_modification_ajax_comment_enabled-2010-02-01.htm/feed</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>新增博客插件–Comment Info Detector</title>
		<link>http://www.xiaozhou.net/aboutsite/wordpress/new_blog_plugin_comment_info_detector-2009-12-29.htm</link>
		<comments>http://www.xiaozhou.net/aboutsite/wordpress/new_blog_plugin_comment_info_detector-2009-12-29.htm#comments</comments>
		<pubDate>Tue, 29 Dec 2009 14:24:00 +0000</pubDate>
		<dc:creator>Timothy</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Comment]]></category>
		<category><![CDATA[Detector]]></category>
		<category><![CDATA[Info]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://www.xiaozhou.net/aboutsite/wordpress/%e6%96%b0%e5%a2%9e%e5%8d%9a%e5%ae%a2%e6%8f%92%e4%bb%b6-comment-info-detector-2009-12-29.htm</guid>
		<description><![CDATA[一个很有趣的插件，能显示博客评论者的相关信息，并以图标的方式显示出来，包括评论者IP所在的国家、浏览器、操作系统，这种统计还是比较有意思，也相当直观，看图吧： 安装过程也很方便，后台直接启用，然后小小设置一下，就OK了。 插件官方地址：http://hieudt.info/wp-plugins/comment-info-detector/ 声明: 此Blog中的文章和随笔仅代表作者在某一特定时间内的观点和结论，对其完全的正确不做任何担保或假设 本站文章均采用 知识共享署名-相同方式共享3.0 协议进行授权，除非注明，本站文章均为原创，转载请注明转自 Timothy&#039;s Space 并应以链接形式标明本文地址!]]></description>
			<content:encoded><![CDATA[<p>一个很有趣的插件，能显示博客评论者的相关信息，并以图标的方式显示出来，包括评论者IP所在的国家、浏览器、操作系统，这种统计还是比较有意思，也相当直观，看图吧：</p>
<p><a href="http://www.xiaozhou.net/pics/CommentInfoDetector_13B38/CommentInfoDetector.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="CommentInfoDetector" border="0" alt="CommentInfoDetector" src="http://www.xiaozhou.net/pics/CommentInfoDetector_13B38/CommentInfoDetector_thumb.jpg" width="538" height="213" /></a> </p>
<p>安装过程也很方便，后台直接启用，然后小小设置一下，就OK了。</p>
<p>插件官方地址：<a title="http://hieudt.info/wp-plugins/comment-info-detector/" href="http://hieudt.info/wp-plugins/comment-info-detector/">http://hieudt.info/wp-plugins/comment-info-detector/</a></p>
<p class="announce"><span style="font-weight:bold;text-shadow:0 1px 0 #ddd;">声明:</span> 此Blog中的文章和随笔仅代表作者在某一特定时间内的观点和结论，对其完全的正确不做任何担保或假设 <br /> 本站文章均采用 <a rel="nofollow" href="http://creativecommons.org/licenses/by-nc-sa/3.0/" title="署名-非商业性使用-相同方式共享">知识共享署名-相同方式共享3.0</a> 协议进行授权，除非注明，本站文章均为原创，转载请注明转自  <a href="http://www.xiaozhou.net">Timothy&#039;s Space</a> 并应以链接形式标明本文地址!</p>]]></content:encoded>
			<wfw:commentRss>http://www.xiaozhou.net/aboutsite/wordpress/new_blog_plugin_comment_info_detector-2009-12-29.htm/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

