<?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>Just A Blog &#187; jQuery</title>
	<atom:link href="http://www.caxblog.com/tag/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.caxblog.com</link>
	<description>街尾牛杂档——Since 1983</description>
	<lastBuildDate>Thu, 20 Oct 2011 10:22:40 +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>使用jQuery增强主题评论功能</title>
		<link>http://www.caxblog.com/enhance-comment-system-with-jquery/</link>
		<comments>http://www.caxblog.com/enhance-comment-system-with-jquery/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 00:06:45 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[AJAX评论]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[评论系统]]></category>

		<guid isPermaLink="false">http://www.caxblog.com/?p=707</guid>
		<description><![CDATA[jQuery是一个伟大的东西，简单的几句代码就可以实现拉风的效果。自从自己搞了个Jat-Theme后，就经常往主题里面加入各种各样的jQuery效果，折腾到前两天自己也认为算是差不多了，可以说是一个阶段性的产物了。再折腾下去只会永无休止！可能以后还会整合一下所有的背景图片，做一个Logo（说了半年还没有做出来呢~~(╯﹏╰)），总之都会把自己认为好的东西加进去。 回正题，这次要说一下现在用的主题里面的jQuery效果： 1、AJAX评论 Ajax评论对大家来讲陌生的东西，这个功能的时候方法有很多，也有专门的插件来实现这个功能。想要自己动手做的朋友可以参考一下K2主题代码或者是笑傲人生的文章“使用 jQuery 实现 wordpress 的 Ajax 留言”。文章里对Comment.js文件都有详细的解释。功能的实现不是太复杂的，至于那些样式的定义就随个人喜欢了，看明白了comment.js文件就可以自己定义提交过程，和提交后的样式。 我这里是在提交过程中加入了一个GIF进度图片，网速快的时候这个效果就是一闪而过，但对于网速不好的朋友，搞这样一个山寨进度条还是OK的。 2、@评论预览 @评论预览是前两天才加上去的，年前看了PhilNa的两篇文章（上，下），但本地试验的时候做不出来。直到前两天MG12把用于nvoie主题的@评论预览代码放出来，修改了一下代码就可以在我的博客上实现这个功能。 如果你已经安装了Mail To Commenter插件，加上这个jQuery应该会很酷！！ 3、隐藏评论回复按钮 &#60;script&#62;     $(document).ready(function(){     $(".comm-reply").hide();     $("#commentlist li").hover(function() {     $(this).find(".comm-reply").show();     }, function() {     $(this).find(".comm-reply").hide();     });     }); &#60;/script&#62; Jat-Theme里面是当鼠标位于评论区域的时候才显示“回复”按钮。实现这个只需要加入一小段代码就OK了，这部分代码来自Jinwen老兄。 © Alex for Just A Blog, 2009. &#124; Permalink &#124; 28 comments &#124; Add to [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="利用jQuery特效收起评论栏目" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fstowing-ramp-comments-using-jquery%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fenhance-comment-system-with-jquery%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/06/29/463001.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">利用jQuery特效收起评论栏目</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="最近无法AJAX评论" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fajax-comment-problem%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fenhance-comment-system-with-jquery%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">最近无法AJAX评论</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="评论回复插件Mail To Commenter" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fwordpress-comment-plugin-mail-to-commenter%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fenhance-comment-system-with-jquery%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/07/04/462884.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">评论回复插件Mail To Commenter</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="整合IntenseDebate评论系统到WordPress" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fintegrate-intensedebate-to-wordpress%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fenhance-comment-system-with-jquery%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/07/14/462922.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">整合IntenseDebate评论系统到WordPress</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="五套WordPress评论表情下载" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fwordpress-comment-expression%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fenhance-comment-system-with-jquery%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">五套WordPress评论表情下载</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>jQuery是一个伟大的东西，简单的几句代码就可以实现拉风的效果。自从自己搞了个Jat-Theme后，就经常往主题里面加入各种各样的<a href="http://www.caxblog.com/tag/jquery/" target="_self">jQuery</a>效果，折腾到前两天自己也认为算是差不多了，可以说是一个阶段性的产物了。再折腾下去只会永无休止！可能以后还会整合一下所有的背景图片，做一个Logo（说了半年还没有做出来呢~~(╯﹏╰)），总之都会把自己认为好的东西加进去。</p>
<p>回正题，这次要说一下现在用的主题里面的jQuery效果：</p>
<h4>1、AJAX评论</h4>
<p>Ajax评论对大家来讲陌生的东西，这个功能的时候方法有很多，也有专门的插件来实现这个功能。想要自己动手做的朋友可以参考一下K2主题代码或者是笑傲人生的文章“<a href="http://www.xiaorsz.com/jquery-wordpress-ajax-comments/" target="_blank">使用 jQuery 实现 wordpress 的 Ajax 留言</a>”。文章里对Comment.js文件都有详细的解释。功能的实现不是太复杂的，至于那些样式的定义就随个人喜欢了，看明白了comment.js文件就可以自己定义提交过程，和提交后的样式。</p>
<p><span id="more-707"></span><img class="alignnone size-full wp-image-816" title="ajax-comment" src="http://www.caxblog.com/wp-content/uploads/2009/01/ajax-comment.jpg" alt="ajax-comment" width="310" height="87" /></p>
<p>我这里是在提交过程中加入了一个GIF进度图片，网速快的时候这个效果就是一闪而过，但对于网速不好的朋友，搞这样一个山寨进度条还是OK的。</p>
<h4>2、@评论预览</h4>
<p><img class="alignnone size-full wp-image-815" title="comment-show" src="http://www.caxblog.com/wp-content/uploads/2009/01/comment-show.jpg" alt="comment-show" width="532" height="223" /></p>
<p>@评论预览是前两天才加上去的，年前看了PhilNa的两篇文章（<a href="http://philna.com/2008/12/mouseover-to-show-comment-no1" target="_blank">上</a>，<a href="http://philna.com/2008/12/mouseover-to-show-comment-no" target="_blank">下</a>），但本地试验的时候做不出来。直到前两天MG12把用于nvoie主题的<a href="http://www.neoease.com/inove-mouseover-to-show-comment-no/" target="_blank">@评论预览</a>代码放出来，修改了一下代码就可以在我的博客上实现这个功能。</p>
<p>如果你已经安装了<a href="http://www.caxblog.com/wordpress-comment-plugin-mail-to-commenter/" target="_self">Mail To Commenter</a>插件，加上这个jQuery应该会很酷！！</p>
<h4>3、隐藏评论回复按钮</h4>
<pre>&lt;script&gt;
    $(document).ready(function(){
    $(".comm-reply").hide();
    $("#commentlist li").hover(function() {
    $(this).find(".comm-reply").show();
    }, function() {
    $(this).find(".comm-reply").hide();
    });
    });
&lt;/script&gt;</pre>
<p>Jat-Theme里面是当鼠标位于评论区域的时候才显示“回复”按钮。实现这个只需要加入一小段代码就OK了，这部分代码来自<a href="http://www.saywp.com/wordpress/active-the-reply-botton-with-jquery.html" target="_self">Jinwen</a>老兄。</p>
<hr />
<p>© Alex for <a href="http://www.caxblog.com">Just A Blog</a>, 2009. |
<a href="http://www.caxblog.com/enhance-comment-system-with-jquery/">Permalink</a> |
<a href="http://www.caxblog.com/enhance-comment-system-with-jquery/#comments">28 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.caxblog.com/enhance-comment-system-with-jquery/&title=使用jQuery增强主题评论功能">del.icio.us</a> | 
Follow me <a href="http://twitter.com/attacker_hu">@attacker_hu</a>
<br/>
Post tags: <a href="http://www.caxblog.com/tag/ajax-comment/" rel="tag">AJAX评论</a>, <a href="http://www.caxblog.com/tag/jquery/" rel="tag">jQuery</a>, <a href="http://www.caxblog.com/tag/%e8%af%84%e8%ae%ba%e7%b3%bb%e7%bb%9f/" rel="tag">评论系统</a><br/>
</p>

<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="利用jQuery特效收起评论栏目" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fstowing-ramp-comments-using-jquery%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fenhance-comment-system-with-jquery%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/06/29/463001.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">利用jQuery特效收起评论栏目</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="最近无法AJAX评论" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fajax-comment-problem%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fenhance-comment-system-with-jquery%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">最近无法AJAX评论</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="评论回复插件Mail To Commenter" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fwordpress-comment-plugin-mail-to-commenter%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fenhance-comment-system-with-jquery%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/07/04/462884.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">评论回复插件Mail To Commenter</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="整合IntenseDebate评论系统到WordPress" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fintegrate-intensedebate-to-wordpress%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fenhance-comment-system-with-jquery%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/07/14/462922.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">整合IntenseDebate评论系统到WordPress</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="五套WordPress评论表情下载" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fwordpress-comment-expression%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fenhance-comment-system-with-jquery%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">五套WordPress评论表情下载</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.caxblog.com/enhance-comment-system-with-jquery/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>近期对博客的几点修改</title>
		<link>http://www.caxblog.com/revising-of-just-a-blog/</link>
		<comments>http://www.caxblog.com/revising-of-just-a-blog/#comments</comments>
		<pubDate>Mon, 10 Nov 2008 14:53:34 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[电脑网络]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[优化]]></category>
		<category><![CDATA[分享和收藏]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[评论系统]]></category>

		<guid isPermaLink="false">http://www.caxblog.com/?p=597</guid>
		<description><![CDATA[1、评论输入框 不知道大家有没有发现，评论信息框有那么一点的变化了。在你发表了一次评论后就会记录你的输入信息，下次发表评论的时候只关心评论内容就OK了，可以简化那么一点的工作，不知道这点评论系统的改进算不算是“用户体验”的提高呢！ 这个并不是什么新鲜的功能了，感兴趣的朋友可以看看“适当隐藏输入框，提高WordPress访客评论时的用户体验”。在加入这个功能后，我反而对这个隐藏和显示评论输入框的代码感兴趣，这几句代码的切换的速度比用jQuery特效速度快。这个刚好是可以用在改进评论栏和显示相关文章上（评论和相关文章的收起请看“利用jQuery特效收起评论栏目”）。 目前来说使用这些代码来显示相关文章是没有问题了，因为文章右侧的相关文章是使用ID包起来的，和评论输入框道理一样。至于我的评论栏，全部都是Class包住的，而这个代码只能获取ID，不知道那位达人可以告知一下，让我在Class里面使用这个函数。 2、文章底部分享和收藏图标 由于近期博客流量严重不济，有往下发展的趋势，没有一点蒸蒸日上的兆头，所以就加了几个小图标在文章底部，希望各位老大看完了文章觉得好的就顶一下或者是收藏一下，O(∩_∩)O！ 其实我也不怎么清楚能不能通过这个途经来增加流量，试一下吧！我这几个收藏按钮的制作也就是通过那些收藏网站的API链接接口做的，想自己动手的朋友可以参考一下share this中文版插件的代码，里面列出很多网站的通用接口。自己懒得做可以直接安装一个分享和收藏插件，可以看一下《WordPress分享和收藏插件》。 随便推荐一个图标网站Fasticon，这是一个承接付费服务的设计网站，但里面也有很多Web 2.0风格的图标提供免费下载，我使用的这套也是从里面下载的。 3、关于博客内容 近期貌似遭遇博起的瓶颈，不知道写什么东西好，上一篇写了几个社会显示，发现越是关注这些内容越是郁闷，然后就会变得越来越愤青！！如果真的是要把那么多社会显示放上来，那么被和谐的机会就很大，而且还会搞得自己很郁闷！！看来还是莫谈国事比较好，要谈也是谈一下开心的，可以娱乐一下自己！！ © Alex for Just A Blog, 2008. &#124; Permalink &#124; 55 comments &#124; Add to del.icio.us &#124; Follow me @attacker_hu Post tags: jQuery, 优化, 分享和收藏, 博客, 评论系统<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="利用jQuery特效收起评论栏目" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fstowing-ramp-comments-using-jquery%2F&from=http%3A%2F%2Fwww.caxblog.com%2Frevising-of-just-a-blog%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/06/29/463001.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">利用jQuery特效收起评论栏目</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用jQuery增强主题评论功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fenhance-comment-system-with-jquery%2F&from=http%3A%2F%2Fwww.caxblog.com%2Frevising-of-just-a-blog%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/07/02/462817.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用jQuery增强主题评论功能</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="调整博客侧栏和Adsense单元" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Foptimize-sidebar-and-adsense%2F&from=http%3A%2F%2Fwww.caxblog.com%2Frevising-of-just-a-blog%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/06/29/462997.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">调整博客侧栏和Adsense单元</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="通过SEO优化增加博客访问量" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fwordpress-seo-skills%2F&from=http%3A%2F%2Fwww.caxblog.com%2Frevising-of-just-a-blog%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/29/462818.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">通过SEO优化增加博客访问量</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="关于国外的付费评论" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fmoney-blogging-paid-reviews%2F&from=http%3A%2F%2Fwww.caxblog.com%2Frevising-of-just-a-blog%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/06/30/462819.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">关于国外的付费评论</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>1、评论输入框</p>
<p>不知道大家有没有发现，评论信息框有那么一点的变化了。在你发表了一次评论后就会记录你的输入信息，下次发表评论的时候只关心评论内容就OK了，可以简化那么一点的工作，不知道这点评论系统的改进算不算是“用户体验”的提高呢！</p>
<p>这个并不是什么新鲜的功能了，感兴趣的朋友可以看看“<a href="http://www.xiaorsz.cn/2008/10/hide-input-box-improve-user-experience/" target="_blank">适当隐藏输入框，提高WordPress访客评论时的用户体验</a>”。在加入这个功能后，我反而对这个隐藏和显示评论输入框的代码感兴趣，这几句代码的切换的速度比用<a href="http://www.caxblog.com/tag/jquery/" target="_self">jQuery特效</a>速度快。这个刚好是可以用在改进评论栏和显示<a href="http://www.caxblog.com/related-post-plugins-for-wordpress/" target="_self">相关文章</a>上（评论和相关文章的收起请看“<a title="利用jQuery特效收起评论栏目" rel="bookmark" href="http://www.caxblog.com/stowing-ramp-comments-using-jquery/" target="_self">利用jQuery特效收起评论栏目</a>”）。</p>
<p><a href="http://www.caxblog.com/wp-content/uploads/2008/11/comment.jpg"><img class="alignnone size-full wp-image-611" title="comment" src="http://www.caxblog.com/wp-content/uploads/2008/11/comment.jpg" alt="" width="429" height="145" /></a></p>
<p>目前来说使用这些代码来显示相关文章是没有问题了，因为文章右侧的相关文章是使用ID包起来的，和评论输入框道理一样。至于我的评论栏，全部都是Class包住的，而这个代码只能获取ID，不知道那位达人可以告知一下，让我在Class里面使用这个函数。</p>
<p><span id="more-597"></span>2、文章底部<a href="http://www.caxblog.com/share-and-collection-plugin-in-wordpress/" target="_self">分享和收藏</a>图标</p>
<p><a href="http://www.caxblog.com/wp-content/uploads/2008/11/share.jpg"><img class="alignnone size-full wp-image-610" title="share" src="http://www.caxblog.com/wp-content/uploads/2008/11/share.jpg" alt="" width="455" height="88" /></a></p>
<p>由于近期博客流量严重不济，有往下发展的趋势，没有一点蒸蒸日上的兆头，所以就加了几个小图标在文章底部，希望各位老大看完了文章觉得好的就顶一下或者是收藏一下，O(∩_∩)O！</p>
<p>其实我也不怎么清楚能不能通过这个途经来增加流量，试一下吧！我这几个收藏按钮的制作也就是通过那些收藏网站的API链接接口做的，想自己动手的朋友可以参考一下<a href="http://www.happinesz.cn/archives/328/" target="_blank">share this中文版</a>插件的代码，里面列出很多网站的通用接口。自己懒得做可以直接安装一个<a href="http://www.caxblog.com/tag/%e5%88%86%e4%ba%ab%e5%92%8c%e6%94%b6%e8%97%8f" target="_self">分享和收藏</a>插件，可以看一下《<a href="http://www.caxblog.com/share-and-collection-plugin-in-wordpress/" target="_self">WordPress分享和收藏插件</a>》。</p>
<p>随便推荐一个图标网站<a href="http://fasticon.com/freeware/" target="_blank">Fasticon</a>，这是一个承接付费服务的设计网站，但里面也有很多<a href="http://www.caxblog.com/tag/web-20" target="_self">Web 2.0</a>风格的图标提供免费下载，我使用的这套也是从里面下载的。</p>
<p>3、关于博客内容</p>
<p>近期貌似遭遇博起的瓶颈，不知道写什么东西好，上一篇写了几个社会显示，发现越是关注这些内容越是郁闷，然后就会变得越来越愤青！！如果真的是要把那么多社会显示放上来，那么被和谐的机会就很大，而且还会搞得自己很郁闷！！看来还是莫谈国事比较好，要谈也是谈一下开心的，可以娱乐一下自己！！</p>
<hr />
<p>© Alex for <a href="http://www.caxblog.com">Just A Blog</a>, 2008. |
<a href="http://www.caxblog.com/revising-of-just-a-blog/">Permalink</a> |
<a href="http://www.caxblog.com/revising-of-just-a-blog/#comments">55 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.caxblog.com/revising-of-just-a-blog/&title=近期对博客的几点修改">del.icio.us</a> | 
Follow me <a href="http://twitter.com/attacker_hu">@attacker_hu</a>
<br/>
Post tags: <a href="http://www.caxblog.com/tag/jquery/" rel="tag">jQuery</a>, <a href="http://www.caxblog.com/tag/%e4%bc%98%e5%8c%96/" rel="tag">优化</a>, <a href="http://www.caxblog.com/tag/%e5%88%86%e4%ba%ab%e5%92%8c%e6%94%b6%e8%97%8f/" rel="tag">分享和收藏</a>, <a href="http://www.caxblog.com/tag/%e5%8d%9a%e5%ae%a2/" rel="tag">博客</a>, <a href="http://www.caxblog.com/tag/%e8%af%84%e8%ae%ba%e7%b3%bb%e7%bb%9f/" rel="tag">评论系统</a><br/>
</p>

<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="利用jQuery特效收起评论栏目" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fstowing-ramp-comments-using-jquery%2F&from=http%3A%2F%2Fwww.caxblog.com%2Frevising-of-just-a-blog%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/06/29/463001.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">利用jQuery特效收起评论栏目</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="使用jQuery增强主题评论功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fenhance-comment-system-with-jquery%2F&from=http%3A%2F%2Fwww.caxblog.com%2Frevising-of-just-a-blog%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/07/02/462817.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用jQuery增强主题评论功能</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="调整博客侧栏和Adsense单元" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Foptimize-sidebar-and-adsense%2F&from=http%3A%2F%2Fwww.caxblog.com%2Frevising-of-just-a-blog%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/06/29/462997.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">调整博客侧栏和Adsense单元</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="通过SEO优化增加博客访问量" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fwordpress-seo-skills%2F&from=http%3A%2F%2Fwww.caxblog.com%2Frevising-of-just-a-blog%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/29/462818.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">通过SEO优化增加博客访问量</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="关于国外的付费评论" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fmoney-blogging-paid-reviews%2F&from=http%3A%2F%2Fwww.caxblog.com%2Frevising-of-just-a-blog%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/06/30/462819.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">关于国外的付费评论</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.caxblog.com/revising-of-just-a-blog/feed/</wfw:commentRss>
		<slash:comments>55</slash:comments>
		</item>
		<item>
		<title>利用jQuery特效收起评论栏目</title>
		<link>http://www.caxblog.com/stowing-ramp-comments-using-jquery/</link>
		<comments>http://www.caxblog.com/stowing-ramp-comments-using-jquery/#comments</comments>
		<pubDate>Fri, 11 Jul 2008 05:26:00 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[优化]]></category>
		<category><![CDATA[评论系统]]></category>

		<guid isPermaLink="false">http://www.caxblog.com/2008/07/241.html</guid>
		<description><![CDATA[发现我的博客评论栏多了点东西了吗？这是我这两天做的一个jQuery特效，就是通过点击评论高亮区域显示收起和展开评论内容的效果。这对评论数量大的博客比较有用，在我这里作用不是很大，但是忍不住加上了。 制作的方法很简单，不需要对主题文件做很大的修改，只需加上几句代码就可以了。需要实现更多的功能查看一下jQuery Demo，也可以把jQuery Demo文件下载，自己研究一下。 1、header文件的修改 A、加入jQuery.js文件 &#60;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&#62; &#60;/script&#62; B、定义所需要的效果代码： &#60;script type="text/javascript" charset="utf-8"&#62; $(".commentmetadata").click(function(){ $(this).next(".message_body").slideToggle("fast") $(this).toggleClass("active"); $(this).siblings(".commentmetadata").removeClass("active");}); $(".collpase_all_message").click(function(){ $(".message_body").slideUp("fast") return false;}); $(".show_all_message").click(function(){ $(".message_body").slideDown("fast") return false; }); }); &#60;/script&#62; 2、comment.php文件的修改 A、把评论者信息包住：&#60;div class=”commentmetadata”&#62;评论者信息&#60;/div&#62;； B、把评论内容包住：&#60;div class=”message_body”&#62;评论内容&#60;/div&#62;； C、在显示评论&#60;ol class=&#8221;commentlist&#8221;&#62;的前面加入： &#60;p class=&#8221;collapse_buttons&#8221;&#62;( &#60;a href=&#8221;#comments&#8221; class=&#8221;show_all_message&#8221;&#62;显示所有评论&#60;/a&#62; &#124; &#60;a href=&#8221;#comments&#8221; class=&#8221;collpase_all_message&#8221;&#62;收起所有平论&#60;/a&#62; )&#60;a href=&#8221;#respond&#8221;&#62;马上发表评论&#62;&#62;&#60;/a&#62;&#60;/p&#62; 在根据博客的主题样式修改这些新加入的class就OK了。由于加载的jQuery文件来源是在Google，不喜欢这样的可以修改成本地加载。如果特效无法显示可以参考一下jQuery Demo的源代码。想了解更都jQuery方面的文章可以参考sofish一下“写给设计人的10个jQuery特效”，上面所有的东西都是从这个文章里面学习过来的。 目前在我这里效果是做出来了，接着要做的就是对JS文件的压缩，网上也有很多这方面的例子，但是目前我还没有对JS文件压缩成功～可能是自己太笨了。希望有这方面经验的博友可以指点一下，在JS文件压缩或者JS文件重写方面指导一下～～ © Alex for Just A [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="使用jQuery增强主题评论功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fenhance-comment-system-with-jquery%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fstowing-ramp-comments-using-jquery%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/07/02/462817.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用jQuery增强主题评论功能</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="评论回复插件Mail To Commenter" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fwordpress-comment-plugin-mail-to-commenter%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fstowing-ramp-comments-using-jquery%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/07/04/462884.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">评论回复插件Mail To Commenter</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="近期对博客的几点修改" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Frevising-of-just-a-blog%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fstowing-ramp-comments-using-jquery%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/20/462923.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">近期对博客的几点修改</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="整合IntenseDebate评论系统到WordPress" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fintegrate-intensedebate-to-wordpress%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fstowing-ramp-comments-using-jquery%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/07/14/462922.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">整合IntenseDebate评论系统到WordPress</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="关于国外的付费评论" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fmoney-blogging-paid-reviews%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fstowing-ramp-comments-using-jquery%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/06/30/462819.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">关于国外的付费评论</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>发现我的博客评论栏多了点东西了吗？这是我这两天做的一个<strong>jQuery</strong>特效，就是通过点击评论高亮区域显示收起和展开评论内容的效果。这对评论数量大的博客比较有用，在我这里作用不是很大，但是忍不住加上了。</p>
<p>制作的方法很简单，不需要对主题文件做很大的修改，只需加上几句代码就可以了。需要实现更多的功能查看一下<a href="http://www.webdesignerwall.com/demo/jquery/" target="_blank">jQuery Demo</a>，也可以把<a href="http://www.webdesignerwall.com/file/jquery-tutorials.zip" target="_blank">jQuery Demo文件下载</a>，自己研究一下。</p>
<p><a href="http://www.caxblog.com/wp-content/uploads/2008/07/commentjquery.jpg"><img class="alignnone size-full wp-image-1024" title="commentjquery" src="http://www.caxblog.com/wp-content/uploads/2008/07/commentjquery.jpg" alt="commentjquery" width="352" height="261" /></a></p>
<h4><span id="more-241"></span>1、header文件的修改</h4>
<p>A、加入jQuery.js文件</p>
<pre>&lt;script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;
&lt;/script&gt;</pre>
<p>B、定义所需要的效果代码：</p>
<pre>&lt;script type="text/javascript" charset="utf-8"&gt;
$(".commentmetadata").click(function(){
$(this).next(".message_body").slideToggle("fast")
$(this).toggleClass("active");
$(this).siblings(".commentmetadata").removeClass("active");});

$(".collpase_all_message").click(function(){
$(".message_body").slideUp("fast")
return false;});
$(".show_all_message").click(function(){
$(".message_body").slideDown("fast")
return false;
});
});
&lt;/script&gt;</pre>
<h4>2、comment.php文件的修改</h4>
<blockquote><p>A、把评论者信息包住：&lt;div class=”commentmetadata”&gt;评论者信息&lt;/div&gt;；</p></blockquote>
<blockquote><p>B、把评论内容包住：&lt;div class=”message_body”&gt;评论内容&lt;/div&gt;；</p>
<p>C、在显示评论&lt;ol class=&#8221;commentlist&#8221;&gt;的前面加入：</p>
<p>&lt;p class=&#8221;collapse_buttons&#8221;&gt;( &lt;a href=&#8221;#comments&#8221; class=&#8221;show_all_message&#8221;&gt;显示所有评论&lt;/a&gt; | &lt;a href=&#8221;#comments&#8221; class=&#8221;collpase_all_message&#8221;&gt;收起所有平论&lt;/a&gt; )&lt;a href=&#8221;#respond&#8221;&gt;马上发表评论&gt;&gt;&lt;/a&gt;&lt;/p&gt;</p></blockquote>
<p>在根据博客的主题样式修改这些新加入的class就OK了。由于加载的jQuery文件来源是在Google，不喜欢这样的可以修改成本地加载。如果特效无法显示可以参考一下<a href="http://www.caxblog.com/tag/jquery/" target="_self">jQuery</a> Demo的源代码。想了解更都<a href="http://www.caxblog.com/tag/jquery/" target="_self">jQuery</a>方面的文章可以参考sofish一下“<a href="http://www.happinesz.cn/archives/442/">写给设计人的10个jQuery特效</a>”，上面所有的东西都是从这个文章里面学习过来的。</p>
<p><ins></ins></p>
<p>目前在我这里效果是做出来了，接着要做的就是对JS文件的压缩，网上也有很多这方面的例子，但是目前我还没有对JS文件压缩成功～可能是自己太笨了。希望有这方面经验的博友可以指点一下，在JS文件压缩或者JS文件重写方面指导一下～～</p>
<hr />
<p>© Alex for <a href="http://www.caxblog.com">Just A Blog</a>, 2008. |
<a href="http://www.caxblog.com/stowing-ramp-comments-using-jquery/">Permalink</a> |
<a href="http://www.caxblog.com/stowing-ramp-comments-using-jquery/#comments">14 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.caxblog.com/stowing-ramp-comments-using-jquery/&title=利用jQuery特效收起评论栏目">del.icio.us</a> | 
Follow me <a href="http://twitter.com/attacker_hu">@attacker_hu</a>
<br/>
Post tags: <a href="http://www.caxblog.com/tag/jquery/" rel="tag">jQuery</a>, <a href="http://www.caxblog.com/tag/%e4%bc%98%e5%8c%96/" rel="tag">优化</a>, <a href="http://www.caxblog.com/tag/%e8%af%84%e8%ae%ba%e7%b3%bb%e7%bb%9f/" rel="tag">评论系统</a><br/>
</p>

<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="使用jQuery增强主题评论功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fenhance-comment-system-with-jquery%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fstowing-ramp-comments-using-jquery%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/07/02/462817.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">使用jQuery增强主题评论功能</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="评论回复插件Mail To Commenter" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fwordpress-comment-plugin-mail-to-commenter%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fstowing-ramp-comments-using-jquery%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/07/04/462884.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">评论回复插件Mail To Commenter</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="近期对博客的几点修改" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Frevising-of-just-a-blog%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fstowing-ramp-comments-using-jquery%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/20/462923.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">近期对博客的几点修改</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="整合IntenseDebate评论系统到WordPress" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fintegrate-intensedebate-to-wordpress%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fstowing-ramp-comments-using-jquery%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/07/14/462922.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">整合IntenseDebate评论系统到WordPress</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="关于国外的付费评论" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.caxblog.com%2Fmoney-blogging-paid-reviews%2F&from=http%3A%2F%2Fwww.caxblog.com%2Fstowing-ramp-comments-using-jquery%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/06/30/462819.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">关于国外的付费评论</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.caxblog.com/stowing-ramp-comments-using-jquery/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

