<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feed.qiqiboy.com/styles/feedsky0.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feed.qiqiboy.com" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feed.feedsky.com/qiqiboy" type="application/rss+xml"></fs:self_link><lastBuildDate>Fri, 03 Sep 2010 06:07:08 GMT</lastBuildDate><title>I'm qiqiboy !</title><description>Hello people.</description><link>http://www.qiqiboy.com</link><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>1</sy:updateFrequency><language>en</language><pubDate>Fri, 03 Sep 2010 07:29:25 GMT</pubDate><item><title>我的读者墙展示（附所用JS代码）</title><link>http://item.feedsky.com/~feedsky/qiqiboy/~7883632/409195464/5446216/1/item.html</link><content:encoded>&lt;p&gt;好多人都在博客上弄了个读者墙，我之前也搞过，但是换了新主题之后就没再添加了。所以抽了个时间，在&lt;a href=&quot;http://www.qiqiboy.com/links&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;links&lt;/strong&gt;&lt;/a&gt;页面加了读者墙，展示的是最近三个月内的评论数量在前72名的访客头像。围观我的读者墙请&lt;strong&gt;&lt;a href=&quot;http://www.qiqiboy.com/links#commentsWall&quot; target=&quot;_blank&quot;&gt;&lt;font color=&quot;#ff0000&quot;&gt;移步此处&lt;/font&gt;&lt;/a&gt;。&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;读者墙部分加了个JS效果，鼠标移上去会在旁边打开一个侧滑面板，显示访客的姓名和评论数量等信息。我将这个效果封装了一下，与大家分享。 &lt;/p&gt;
&lt;div style=&quot;border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; height: 500px; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px&quot; id=&quot;codeSnippetWrapper&quot;&gt;
&lt;div style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum1&quot;&gt;   1:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt;/*!&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum2&quot;&gt;   2:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt; * author: liuqiqi&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum3&quot;&gt;   3:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt; * date: 2010/09/01&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum4&quot;&gt;   4:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt; */&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum5&quot;&gt;   5:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; Class = {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum6&quot;&gt;   6:&lt;/span&gt;     create: &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;() {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum7&quot;&gt;   7:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;() {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum8&quot;&gt;   8:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.init.apply(&lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;, arguments);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum9&quot;&gt;   9:&lt;/span&gt;         }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum10&quot;&gt;  10:&lt;/span&gt;     }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum11&quot;&gt;  11:&lt;/span&gt; }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum12&quot;&gt;  12:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; PicWall=Class.create();&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum13&quot;&gt;  13:&lt;/span&gt; PicWall.prototype={&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum14&quot;&gt;  14:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum15&quot;&gt;  15:&lt;/span&gt;     init:&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(wrapId,infoId,picClass,textClass){&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum16&quot;&gt;  16:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.wrap=&lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.$(wrapId);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum17&quot;&gt;  17:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.info=&lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.$(infoId);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum18&quot;&gt;  18:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.picClass=picClass;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum19&quot;&gt;  19:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.textClass=textClass;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum20&quot;&gt;  20:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.timer=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum21&quot;&gt;  21:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.pics=&lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.$$(&lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.picClass, &lt;span style=&quot;color: #006080&quot;&gt;'li'&lt;/span&gt;, &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.wrap)&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum22&quot;&gt;  22:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;for&lt;/span&gt; (&lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; i = 0; i &amp;lt; &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.pics.length; i++) {&lt;span style=&quot;color: #008000&quot;&gt;//给每张图片加上事件监听&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum23&quot;&gt;  23:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.addListener(&lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.pics[i], &lt;span style=&quot;color: #006080&quot;&gt;'mouseover'&lt;/span&gt;, &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.bind(&lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.show,&lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;), &lt;span style=&quot;color: #0000ff&quot;&gt;false&lt;/span&gt;);&lt;span style=&quot;color: #008000&quot;&gt;//用bind给事件函数绑定正确的对象&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum24&quot;&gt;  24:&lt;/span&gt;         }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum25&quot;&gt;  25:&lt;/span&gt;     },&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum26&quot;&gt;  26:&lt;/span&gt;     &lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum27&quot;&gt;  27:&lt;/span&gt;     show:&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(e){&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum28&quot;&gt;  28:&lt;/span&gt;         &lt;span style=&quot;color: #008000&quot;&gt;//这里要注意，页面结构li标签下必须是头像图片img，并且不要在img外再加a标签，否则下面这句代码获取不到正确的事件源节点&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum29&quot;&gt;  29:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; node=e.target?e.target.parentNode:e.srcElement.parentNode;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum30&quot;&gt;  30:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.info.style.display = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;block&amp;quot;&lt;/span&gt;;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum31&quot;&gt;  31:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.info.innerHTML = node.innerHTML;&lt;span style=&quot;color: #008000&quot;&gt;//将图片加到div#info中&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum32&quot;&gt;  32:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; point = &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.getMousePoint(e);&lt;span style=&quot;color: #008000&quot;&gt;//获取事件发生时鼠标坐标&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum33&quot;&gt;  33:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; picXY = &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.getPicXY(node);&lt;span style=&quot;color: #008000&quot;&gt;//获取当前图片的坐标&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum34&quot;&gt;  34:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; windowx = window.innerWidth || document.documentElement.clientWidth;&lt;span style=&quot;color: #008000&quot;&gt;//浏览器可视区域宽高&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum35&quot;&gt;  35:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; maxleft = &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.getPicXY(&lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.wrap).x + &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.wrap.clientWidth;&lt;span style=&quot;color: #008000&quot;&gt;//alert(maxleft);return; 放置图片列表容器的右边框x坐标&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum36&quot;&gt;  36:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (picXY.x + 156 &amp;gt; maxleft) {&lt;span style=&quot;color: #008000&quot;&gt;//信息框展开后大于容器右边框，则使信息框向左滑动展开&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum37&quot;&gt;  37:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.info.style.left = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;auto&amp;quot;&lt;/span&gt;;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum38&quot;&gt;  38:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.info.style.right = windowx - picXY.x - 53 + &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;px&amp;quot;&lt;/span&gt;;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum39&quot;&gt;  39:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.addClassName(&lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.info, &lt;span style=&quot;color: #006080&quot;&gt;'right'&lt;/span&gt;);&lt;span style=&quot;color: #008000&quot;&gt;//此处是将头像浮动到右边显示&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum40&quot;&gt;  40:&lt;/span&gt;         }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum41&quot;&gt;  41:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;else&lt;/span&gt; {&lt;span style=&quot;color: #008000&quot;&gt;//正常情况下信息框在右边滑动展开&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum42&quot;&gt;  42:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.removeClassName(&lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.info, &lt;span style=&quot;color: #006080&quot;&gt;'right'&lt;/span&gt;);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum43&quot;&gt;  43:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.info.style.right = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;auto&amp;quot;&lt;/span&gt;;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum44&quot;&gt;  44:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.info.style.left = picXY.x - 3 + &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;px&amp;quot;&lt;/span&gt;;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum45&quot;&gt;  45:&lt;/span&gt;         }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum46&quot;&gt;  46:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.info.style.top = picXY.y - 3 + &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;px&amp;quot;&lt;/span&gt;;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum47&quot;&gt;  47:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.addListener(&lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.info, &lt;span style=&quot;color: #006080&quot;&gt;'mouseout'&lt;/span&gt;, &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.bind(&lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.unshow,&lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;), &lt;span style=&quot;color: #0000ff&quot;&gt;false&lt;/span&gt;);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum48&quot;&gt;  48:&lt;/span&gt;         clearInterval(&lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.timer);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum49&quot;&gt;  49:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.timer = setInterval(&lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.bind(&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(){&lt;span style=&quot;color: #008000&quot;&gt;//宽度变换&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum50&quot;&gt;  50:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (&lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.info.clientWidth &amp;lt; 156) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum51&quot;&gt;  51:&lt;/span&gt;                 &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.info.style.width = parseInt(&lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.info.style.width) + 5 + &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;px&amp;quot;&lt;/span&gt;;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum52&quot;&gt;  52:&lt;/span&gt;             }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum53&quot;&gt;  53:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;else&lt;/span&gt; {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum54&quot;&gt;  54:&lt;/span&gt;                 clearInterval(&lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.timer);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum55&quot;&gt;  55:&lt;/span&gt;                 &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.$$(&lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.textClass,&lt;span style=&quot;color: #006080&quot;&gt;'span'&lt;/span&gt;,&lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.info)[0].style.display=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;block&amp;quot;&lt;/span&gt;;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum56&quot;&gt;  56:&lt;/span&gt;             }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum57&quot;&gt;  57:&lt;/span&gt;         },&lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;), 5)&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum58&quot;&gt;  58:&lt;/span&gt;     },&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum59&quot;&gt;  59:&lt;/span&gt;     &lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum60&quot;&gt;  60:&lt;/span&gt;     unshow:&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(e){&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum61&quot;&gt;  61:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; node=e.target?e.target.parentNode:e.srcElement.parentNode;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum62&quot;&gt;  62:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; point = &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.getMousePoint(e);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum63&quot;&gt;  63:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; picXY = &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.getPicXY(node);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum64&quot;&gt;  64:&lt;/span&gt;         &lt;span style=&quot;color: #008000&quot;&gt;//通过坐标比对，判断鼠标是否移出信息框区域&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum65&quot;&gt;  65:&lt;/span&gt;         &lt;span style=&quot;color: #008000&quot;&gt;//下面这个if括号语句可以删除，那样鼠标将不能放到文字区域&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum66&quot;&gt;  66:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (point.x &amp;lt; picXY.x || point.x &amp;gt; picXY.x + node.clientWidth || point.y &amp;lt; picXY.y || point.y &amp;gt; picXY.y + node.clientHeight) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum67&quot;&gt;  67:&lt;/span&gt;             clearInterval(&lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.timer);&lt;span style=&quot;color: #008000&quot;&gt;//清除定时器&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum68&quot;&gt;  68:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.info.style.display = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;none&amp;quot;&lt;/span&gt;;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum69&quot;&gt;  69:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.info.style.width = &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;56px&amp;quot;&lt;/span&gt;;&lt;span style=&quot;color: #008000&quot;&gt;//宽度重置初始化&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum70&quot;&gt;  70:&lt;/span&gt;         }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum71&quot;&gt;  71:&lt;/span&gt;     },&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum72&quot;&gt;  72:&lt;/span&gt;     &lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum73&quot;&gt;  73:&lt;/span&gt;     $:&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(id){&lt;span style=&quot;color: #008000&quot;&gt;//由id获取结点对象&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum74&quot;&gt;  74:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; document.getElementById(id);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum75&quot;&gt;  75:&lt;/span&gt;     },&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum76&quot;&gt;  76:&lt;/span&gt;     &lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum77&quot;&gt;  77:&lt;/span&gt;     $$:&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(c, t, p){&lt;span style=&quot;color: #008000&quot;&gt;//c:className, t:tagName, p: praentNode。根据节点的class、结点标签类型、及其父级结点来获取一组符合条件的结点数组&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum78&quot;&gt;  78:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; at = p.getElementsByTagName(t);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum79&quot;&gt;  79:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; ms = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; Array();&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum80&quot;&gt;  80:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; r = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; RegExp(&lt;span style=&quot;color: #006080&quot;&gt;'(^|\\s)'&lt;/span&gt; + c.replace(/\-/g, &lt;span style=&quot;color: #006080&quot;&gt;'\\-'&lt;/span&gt;) + &lt;span style=&quot;color: #006080&quot;&gt;'(\\s|$)'&lt;/span&gt;);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum81&quot;&gt;  81:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; e;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum82&quot;&gt;  82:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;for&lt;/span&gt; (&lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; i = 0; i &amp;lt; at.length; i++) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum83&quot;&gt;  83:&lt;/span&gt;             e = at[i];&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum84&quot;&gt;  84:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (r.test(e.className)) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum85&quot;&gt;  85:&lt;/span&gt;                 ms.push(e)&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum86&quot;&gt;  86:&lt;/span&gt;             }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum87&quot;&gt;  87:&lt;/span&gt;         }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum88&quot;&gt;  88:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; ms&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum89&quot;&gt;  89:&lt;/span&gt;     },&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum90&quot;&gt;  90:&lt;/span&gt;     &lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum91&quot;&gt;  91:&lt;/span&gt;     getMousePoint:&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(ev){&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum92&quot;&gt;  92:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; x,y;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum93&quot;&gt;  93:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (&lt;span style=&quot;color: #0000ff&quot;&gt;typeof&lt;/span&gt; window.pageYoffset!= &lt;span style=&quot;color: #006080&quot;&gt;'undefined'&lt;/span&gt;) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum94&quot;&gt;  94:&lt;/span&gt;             x = window.pageXOffset;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum95&quot;&gt;  95:&lt;/span&gt;             y = window.pageYOffset&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum96&quot;&gt;  96:&lt;/span&gt;         }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum97&quot;&gt;  97:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;else&lt;/span&gt; &lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum98&quot;&gt;  98:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (&lt;span style=&quot;color: #0000ff&quot;&gt;typeof&lt;/span&gt; document.compatMode != &lt;span style=&quot;color: #006080&quot;&gt;'undefined'&lt;/span&gt; &amp;amp;&amp;amp; document.compatMode != &lt;span style=&quot;color: #006080&quot;&gt;'BackCompat'&lt;/span&gt;) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum99&quot;&gt;  99:&lt;/span&gt;                 x = document.documentElement.scrollLeft;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum100&quot;&gt; 100:&lt;/span&gt;                 y = document.documentElement.scrollTop&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum101&quot;&gt; 101:&lt;/span&gt;             }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum102&quot;&gt; 102:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;else&lt;/span&gt; &lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum103&quot;&gt; 103:&lt;/span&gt;                 &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (&lt;span style=&quot;color: #0000ff&quot;&gt;typeof&lt;/span&gt; document.body != &lt;span style=&quot;color: #006080&quot;&gt;'undefined'&lt;/span&gt;) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum104&quot;&gt; 104:&lt;/span&gt;                     x = document.body.scrollLeft;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum105&quot;&gt; 105:&lt;/span&gt;                     y = document.body.scrollTop&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum106&quot;&gt; 106:&lt;/span&gt;                 }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum107&quot;&gt; 107:&lt;/span&gt;         x += ev.clientX;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum108&quot;&gt; 108:&lt;/span&gt;         y += ev.clientY;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum109&quot;&gt; 109:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; {&lt;span style=&quot;color: #006080&quot;&gt;'x'&lt;/span&gt; &lt;img src='http://www.qiqiboy.com/wp-includes/images/smilies/icon_mad.gif' alt=':x' class='wp-smiley' /&gt; ,&lt;span style=&quot;color: #006080&quot;&gt;'y'&lt;/span&gt;:y};&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum110&quot;&gt; 110:&lt;/span&gt;     },&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum111&quot;&gt; 111:&lt;/span&gt;     &lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum112&quot;&gt; 112:&lt;/span&gt;     getPicXY:&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(o){&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum113&quot;&gt; 113:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; x=y=0;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum114&quot;&gt; 114:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;do&lt;/span&gt; {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum115&quot;&gt; 115:&lt;/span&gt;             x += o.offsetLeft || 0;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum116&quot;&gt; 116:&lt;/span&gt;             y += o.offsetTop  || 0;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum117&quot;&gt; 117:&lt;/span&gt;             o = o.offsetParent;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum118&quot;&gt; 118:&lt;/span&gt;         } &lt;span style=&quot;color: #0000ff&quot;&gt;while&lt;/span&gt; (o);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum119&quot;&gt; 119:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum120&quot;&gt; 120:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; {&lt;span style=&quot;color: #006080&quot;&gt;'x'&lt;/span&gt; &lt;img src='http://www.qiqiboy.com/wp-includes/images/smilies/icon_mad.gif' alt=':x' class='wp-smiley' /&gt; ,&lt;span style=&quot;color: #006080&quot;&gt;'y'&lt;/span&gt;:y};&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum121&quot;&gt; 121:&lt;/span&gt;     },&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum122&quot;&gt; 122:&lt;/span&gt;     &lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum123&quot;&gt; 123:&lt;/span&gt;     bind:&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(f,o){&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum124&quot;&gt; 124:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(){&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum125&quot;&gt; 125:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; f.apply(o,arguments);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum126&quot;&gt; 126:&lt;/span&gt;         }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum127&quot;&gt; 127:&lt;/span&gt;     },&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum128&quot;&gt; 128:&lt;/span&gt;     &lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum129&quot;&gt; 129:&lt;/span&gt;     hasClassName:&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(o, c){&lt;span style=&quot;color: #008000&quot;&gt;//判断o是否具有值为c的className&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum130&quot;&gt; 130:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; RegExp(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;(?:^|\\s+)&amp;quot;&lt;/span&gt; + c + &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;(?:\\s+|$)&amp;quot;&lt;/span&gt;).test(o.className);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum131&quot;&gt; 131:&lt;/span&gt;     },&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum132&quot;&gt; 132:&lt;/span&gt;     &lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum133&quot;&gt; 133:&lt;/span&gt;     addClassName:&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(o, c){&lt;span style=&quot;color: #008000&quot;&gt;//给o添加名为c的className&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum134&quot;&gt; 134:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (!&lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.hasClassName(o, c)) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum135&quot;&gt; 135:&lt;/span&gt;             o.className = [o.className, c].join(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot; &amp;quot;&lt;/span&gt;);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum136&quot;&gt; 136:&lt;/span&gt;         }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum137&quot;&gt; 137:&lt;/span&gt;     },&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum138&quot;&gt; 138:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum139&quot;&gt; 139:&lt;/span&gt;     removeClassName:&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(o, c){&lt;span style=&quot;color: #008000&quot;&gt;//删除o的值为c的className&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum140&quot;&gt; 140:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (&lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.hasClassName(o, c)) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum141&quot;&gt; 141:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; a = o.className;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum142&quot;&gt; 142:&lt;/span&gt;             o.className = a.replace(&lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; RegExp(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;(?:^|\\s+)&amp;quot;&lt;/span&gt; + c + &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;(?:\\s+|$)&amp;quot;&lt;/span&gt;, &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;g&amp;quot;&lt;/span&gt;), &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot; &amp;quot;&lt;/span&gt;);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum143&quot;&gt; 143:&lt;/span&gt;         }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum144&quot;&gt; 144:&lt;/span&gt;     },&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum145&quot;&gt; 145:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum146&quot;&gt; 146:&lt;/span&gt;     addListener:&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(e, n, o, u){&lt;span style=&quot;color: #008000&quot;&gt;//监听设置封装函数&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum147&quot;&gt; 147:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt;(e.addEventListener) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum148&quot;&gt; 148:&lt;/span&gt;             e.addEventListener(n, o, u);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum149&quot;&gt; 149:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;true&lt;/span&gt;;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum150&quot;&gt; 150:&lt;/span&gt;         } &lt;span style=&quot;color: #0000ff&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt;(e.attachEvent) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum151&quot;&gt; 151:&lt;/span&gt;             e[&lt;span style=&quot;color: #006080&quot;&gt;'e'&lt;/span&gt; + n + o] = o;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum152&quot;&gt; 152:&lt;/span&gt;             e[n + o] = &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;() {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum153&quot;&gt; 153:&lt;/span&gt;                 e[&lt;span style=&quot;color: #006080&quot;&gt;'e'&lt;/span&gt; + n + o](window.&lt;span style=&quot;color: #0000ff&quot;&gt;event&lt;/span&gt;);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum154&quot;&gt; 154:&lt;/span&gt;             };&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum155&quot;&gt; 155:&lt;/span&gt;             e.attachEvent(&lt;span style=&quot;color: #006080&quot;&gt;'on'&lt;/span&gt; + n, e[n + o]);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum156&quot;&gt; 156:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;true&lt;/span&gt;;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum157&quot;&gt; 157:&lt;/span&gt;         }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum158&quot;&gt; 158:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;false&lt;/span&gt;;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum159&quot;&gt; 159:&lt;/span&gt;     }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum160&quot;&gt; 160:&lt;/span&gt; }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;inpostad&quot;&gt;&lt;img src=&quot;http://www.qiqiboy.com/wp-content/themes/bluePaled/img/feedad.gif&quot; /&gt;&lt;a href=&quot;http://www.qiqiboy.com/bluepaled&quot; title=&quot;点击下载bluePaled&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://www.qiqiboy.com/wp-content/themes/bluePaled/img/adtest.png&quot; alt=&quot;点击下载bluePaled&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;使用这段JS代码，你需要注意下你的页面结构，要在一个固定ID&lt;sup&gt;&lt;font color=&quot;#ff0000&quot;&gt;1&lt;/font&gt;&lt;/sup&gt;的div中输出若干li标签，li标签也要有一个className&lt;sup&gt;&lt;font color=&quot;#ff0000&quot;&gt;2&lt;/font&gt;&lt;/sup&gt;，然后在li标签中输出头像图片，同样的关于访客的姓名、评论数量也要在li标签下，并且放到一个span标签中，这个span标签页给加个className&lt;sup&gt;&lt;font color=&quot;#ff0000&quot;&gt;3&lt;/font&gt;&lt;/sup&gt;，最后在页面中加个显示访客信息的div，ID&lt;sup&gt;&lt;font color=&quot;#ff0000&quot;&gt;4&lt;/font&gt;&lt;/sup&gt;固定。&lt;/p&gt;
&lt;p&gt;关于页面结构你可以使用firebug或相关工具查看我的友情链接页面的的读者墙的页面结构。也可以&lt;strong&gt;&lt;font style=&quot;background-color: #ffff00&quot;&gt;&lt;a href=&quot;http://u.115.com/file/f4d984d612&quot; target=&quot;_blank&quot;&gt;下载此demo包&lt;/a&gt;&lt;/font&gt;&lt;/strong&gt;。&lt;/p&gt;
&lt;p&gt;页面结构写好了，就可以使用&lt;strong&gt;&lt;u&gt;new PicWall()&lt;/u&gt;&lt;/strong&gt;来使用上面的js了，它的四个参数分别是上面的1、2、3、4标注。即最外层的div id，显示信息的div id，li标签的className，li标签下放置的读者信息的span标签的className。比如，我的友链页面的读者墙即使用 &lt;/p&gt;
&lt;div style=&quot;border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px&quot; id=&quot;codeSnippetWrapper&quot;&gt;
&lt;div style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum1&quot;&gt;   1:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; PicWall(&lt;span style=&quot;color: #006080&quot;&gt;'commentsWall'&lt;/span&gt;,&lt;span style=&quot;color: #006080&quot;&gt;'info'&lt;/span&gt;,&lt;span style=&quot;color: #006080&quot;&gt;'pic'&lt;/span&gt;,&lt;span style=&quot;color: #006080&quot;&gt;'text'&lt;/span&gt;);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;来调用JS。commenswall是我的读者墙那个大div的id，info是一个空的div的id，pic是li标签的class，text是头像旁的span标签的class。更详细的下载demo包自行查看。CSS样式代码也在demo包里。&lt;/p&gt;
&lt;p&gt;效果预览，可&lt;a href=&quot;http://u.boy.im/test&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;&lt;font color=&quot;#ff0000&quot;&gt;查看此处&lt;/font&gt;&lt;/strong&gt;&lt;/a&gt;（demo包里也有或者我的友链页面）。&lt;/p&gt;
&lt;p&gt;&lt;img style=&quot;display: inline&quot; title=&quot;11233&quot; alt=&quot;11233&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/09/11233.png&quot; width=&quot;618&quot; height=&quot;220&quot; /&gt;&lt;/p&gt;
&lt;h4 class=&quot;related_post_title&quot;&gt;&lt;span class=&quot;now&quot;&gt;Related Posts&lt;/span&gt;&lt;/h4&gt;&lt;div class=&quot;tags&quot;&gt;More Articles about: &lt;a href='http://www.qiqiboy.com/tags/code' rel='tag'&gt;code&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/html' rel='tag'&gt;html&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/javascript' rel='tag'&gt;javascript&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/wordpress' rel='tag'&gt;WordPress&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/%e4%bb%a3%e7%a0%81' rel='tag'&gt;代码&lt;/a&gt;&lt;/div&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/16/visitor-information-tencent-suspended-micro-display.html&quot; title=&quot;仿腾讯微博式访客信息悬浮显示（JavaScript &amp;#038; ajax）&quot;&gt;仿腾讯微博式访客信息悬浮显示（JavaScript &amp;#038; ajax）&lt;/a&gt; (95)&lt;br /&gt;&lt;small&gt;效果如你在我博客评论列表处，你可以直接点击评论者头像，或者将鼠标放到头像上2s，就会出现loading图标，从后台获取数据后就会出现一个长方形框，显示了当前评论者的头像，姓...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/10/ajax-version-comment-reply-feature-immediately-sidebar.html&quot; title=&quot;【效果测试展示篇】Ajax版即时侧边栏评论回复功能&quot;&gt;【效果测试展示篇】Ajax版即时侧边栏评论回复功能&lt;/a&gt; (68)&lt;br /&gt;&lt;small&gt;自写了《博客加入若干Ajax效果》以来，在博客上陆续添加启用了一些ajax效果，一方面丰富博客体验，一方面也当做练习学习js的一种实践吧。昨天的时候，将wilin版的侧边栏最新评论...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/07/30/allows-you-to-paste-the-code-in-the-comments-box-free.html&quot; title=&quot;让你的评论框自由粘贴代码&quot;&gt;让你的评论框自由粘贴代码&lt;/a&gt; (58)&lt;br /&gt;&lt;small&gt;我前后试用了三种方法。

第一，我想写一个超级正则表达式，来直接将评论框中&amp;lt;code&amp;gt;&amp;lt;/code&amp;gt;包围的字符串中的“&amp;lt;”转换为“&amp;amp;lt;”。对于只有一对&amp;lt;code&amp;gt;&amp;lt;/code&amp;gt;标签...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/07/26/to-comment-box-to-add-text-formatting-editor.html&quot; title=&quot;为评论框添加文字格式化编辑器&quot;&gt;为评论框添加文字格式化编辑器&lt;/a&gt; (80)&lt;br /&gt;&lt;small&gt;我的代码遵寻以下几点效果：


  
    对于普通的加粗（&amp;lt;strong&amp;gt;）、倾斜（&amp;lt;em&amp;gt;）等，如果鼠标没有选择文字，则直接在光标位置处加上完整闭合的标签。然后光标定位到标签中...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/07/15/easily-create-your-own-wordpress-quote-reply-function.html&quot; title=&quot;添加引用按钮&amp;mdash;&amp;mdash;轻松打造属于你的WordPress引用回复功能&quot;&gt;添加引用按钮&amp;mdash;&amp;mdash;轻松打造属于你的WordPress引用回复功能&lt;/a&gt; (25)&lt;br /&gt;&lt;small&gt;
  之前的《完美解决WordPress嵌套回复的层深问题（无限嵌套）&amp;lt;一&amp;gt;》这篇文章中我讲了自己关于实现WordPress无限嵌套的一个思路。今天又有同学询问引用功能是如何实现的，我就简...&lt;/small&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;声明:&lt;/strong&gt; 本站遵循 &lt;a href=&quot;http:\/\/creativecommons.org/licenses/by-nc-sa/3.0/&quot;&gt;署名-非商业性使用-相同方式共享 3.0&lt;/a&gt; 共享协议. 转载请注明转自 &lt;a href=&quot;http://www.qiqiboy.com&quot;&gt;I'm qiqiboy !&lt;/a&gt; &lt;/p&gt; &lt;p&gt;本文地址: &lt;a href=&quot;http://qiqi.boy.im/7x&quot;&gt;http://qiqi.boy.im/7x&lt;a&gt;&lt;/p&gt;&lt;span style=&quot;background:#cc5566;color:#fffff;&quot;&gt;&lt;h4&gt;Hi,welcome to leave your reply.&lt;/h4&gt;&lt;/span&gt;&lt;h3&gt;Related comments&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;2010年09月3日, &lt;a href=&quot;http://www.qiqiboy.com/2010/09/03/wall-display-of-my-readers-with-js-code-used.html#comment-5071&quot;&gt;mice&lt;/a&gt;say: 好吧 他们都说华丽..我说帅气吧` &lt;img src='http://www.qiqiboy.com/wp-includes/images/smilies/icon_exclaim.gif' alt=':!:' class='wp-smiley' /&gt; &lt;/li&gt;&lt;li&gt;2010年09月3日, &lt;a href=&quot;http://www.qiqiboy.com/2010/09/03/wall-display-of-my-readers-with-js-code-used.html#comment-5064&quot;&gt;zwwooooo&lt;/a&gt;say: 华丽的读者墙&lt;/li&gt;&lt;li&gt;2010年09月3日, &lt;a href=&quot;http://www.qiqiboy.com/2010/09/03/wall-display-of-my-readers-with-js-code-used.html#comment-5059&quot;&gt;阿七&lt;/a&gt;say: &lt;a href=&quot;#comment-5058&quot; rel=&quot;nofollow&quot;&gt;@QiQiBoY &lt;/a&gt; 
 &lt;img src='http://www.qiqiboy.com/wp-includes/images/smilies/icon_surprised.gif' alt=':eek:' class='wp-smiley' /&gt;  (─.─|||&lt;/li&gt;&lt;li&gt;2010年09月3日, &lt;a href=&quot;http://www.qiqiboy.com/2010/09/03/wall-display-of-my-readers-with-js-code-used.html#comment-5058&quot;&gt;QiQiBoY&lt;/a&gt;say: &lt;a href=&quot;#comment-5057&quot; rel=&quot;nofollow&quot;&gt;@阿七 &lt;/a&gt; 
你在哪儿看到的重复？demo里吗？那个头像当然是是重复的。。我不可能为了一个demo去找48张不同的图片啊。。。弄36张不同的已经不容易了&lt;/li&gt;&lt;li&gt;2010年09月3日, &lt;a href=&quot;http://www.qiqiboy.com/2010/09/03/wall-display-of-my-readers-with-js-code-used.html#comment-5057&quot;&gt;阿七&lt;/a&gt;say: &lt;a href=&quot;#comment-5056&quot; rel=&quot;nofollow&quot;&gt;@QiQiBoY &lt;/a&gt; 
人重复，是没留一条上一次么？&lt;/li&gt;&lt;li&gt;2010年09月3日, &lt;a href=&quot;http://www.qiqiboy.com/2010/09/03/wall-display-of-my-readers-with-js-code-used.html#comment-5056&quot;&gt;QiQiBoY&lt;/a&gt;say: &lt;a href=&quot;#comment-5055&quot; rel=&quot;nofollow&quot;&gt;@阿七 &lt;/a&gt; 
什么重复？ &lt;img src='http://www.qiqiboy.com/wp-includes/images/smilies/icon_question.gif' alt=':?:' class='wp-smiley' /&gt; &lt;/li&gt;&lt;li&gt;2010年09月3日, &lt;a href=&quot;http://www.qiqiboy.com/2010/09/03/wall-display-of-my-readers-with-js-code-used.html#comment-5055&quot;&gt;阿七&lt;/a&gt;say: 好多重复。。。&lt;/li&gt;&lt;li&gt;2010年09月3日, &lt;a href=&quot;http://www.qiqiboy.com/2010/09/03/wall-display-of-my-readers-with-js-code-used.html#comment-5054&quot;&gt;QiQiBoY&lt;/a&gt;say: &lt;a href=&quot;#comment-5046&quot; rel=&quot;nofollow&quot;&gt;@Cen &lt;/a&gt; 
如果有问题，欢迎交流。。&lt;/li&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/409195464/qiqiboy/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/qiqiboy/~7883632/409195464/5446216/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/qiqiboy/409195464/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/qiqiboy/409195464/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://www.qiqiboy.com/2010/09/03/wall-display-of-my-readers-with-js-code-used.html/feed</wfw:commentRss><slash:comments>14</slash:comments><description>&lt;p&gt;好多人都在博客上弄了个读者墙，我之前也搞过，但是换了新主题之后就没再添加了。所以抽了个时间，在&lt;a href=&quot;http://www.qiqiboy.com/links&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;links&lt;/strong&gt;&lt;/a&gt;页面加了读者墙，展示的是最近三个月内的评论数量在前72名的访客头像。围观我的读者墙请&lt;strong&gt;&lt;a href=&quot;http://www.qiqiboy.com/links#commentsWall&quot; target=&quot;_blank&quot;&gt;&lt;font color=&quot;#ff0000&quot;&gt;移步此处&lt;/font&gt;&lt;/a&gt;。&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;读者墙部分加了个JS效果，鼠标移上去会在旁边打开一个侧滑面板，显示访客的姓名和评论数量等信息。我将这个效果封装了一下，与大家分享。 &lt;/p&gt;&lt;p&gt;&lt;img style=&quot;display: inline&quot; title=&quot;11233&quot; alt=&quot;11233&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/09/11233.png&quot; width=&quot;618&quot; height=&quot;220&quot; /&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/409195464/qiqiboy/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/qiqiboy/~7883632/409195464/5446216/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/qiqiboy/409195464/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/qiqiboy/409195464/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>code</category><category>html</category><category>代码</category><category>javascript</category><category>WordPress</category><pubDate>Fri, 03 Sep 2010 14:07:08 +0800</pubDate><author>QiQiBoY</author><comments>http://www.qiqiboy.com/2010/09/03/wall-display-of-my-readers-with-js-code-used.html#comments</comments><guid isPermaLink="false">http://www.qiqiboy.com/2010/09/03/wall-display-of-my-readers-with-js-code-used.html</guid><dc:creator>QiQiBoY</dc:creator><fs:srclink>http://www.qiqiboy.com/2010/09/03/wall-display-of-my-readers-with-js-code-used.html</fs:srclink><fs:srcfeed>http://www.qiqiboy.com/feed</fs:srcfeed><fs:itemid>feedsky/qiqiboy/~7883632/409195464/5446216</fs:itemid></item><item><title>围观wordpress中文圈内好玩的spam</title><link>http://item.feedsky.com/~feedsky/qiqiboy/~7883632/408666550/5446216/1/item.html</link><content:encoded>&lt;h3&gt;类型一，灌水马甲型&lt;/h3&gt;
&lt;p&gt;&lt;img style=&quot;display: inline&quot; title=&quot;spam6&quot; alt=&quot;spam6&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/spam6.png&quot; width=&quot;572&quot; height=&quot;312&quot; /&gt;&lt;/p&gt;
&lt;p&gt;从12:26到13:26正好一个小时内换了三个马甲来发spam，看来时间把握这么精准，一定是定时spam的。&lt;/p&gt;
&lt;h3&gt;类型二，无知装逼型&lt;/h3&gt;
&lt;p&gt;&lt;img style=&quot;display: inline&quot; title=&quot;spam7&quot; alt=&quot;spam7&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/spam7.png&quot; width=&quot;569&quot; height=&quot;85&quot; /&gt;&lt;/p&gt;
&lt;p&gt;特点，客客气气的先说句客套话，然后就出现个傻逼的问题“你用的什么主题？”主题信息底部写有。&lt;/p&gt;
&lt;h3&gt;类型三，谎话连篇型&lt;/h3&gt;
&lt;p&gt;&lt;img style=&quot;display: inline&quot; title=&quot;spam8&quot; alt=&quot;spam8&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/spam8.png&quot; width=&quot;558&quot; height=&quot;97&quot; /&gt;&lt;/p&gt;
&lt;p&gt;其实一分钟也没在俺博客呆过。&lt;/p&gt;
&lt;h3&gt;类型五，纯粹废话型&lt;/h3&gt;
&lt;p&gt;&lt;img style=&quot;display: inline&quot; title=&quot;spam9&quot; alt=&quot;spam9&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/spam9.png&quot; width=&quot;550&quot; height=&quot;101&quot; /&gt;&lt;/p&gt;
&lt;p&gt;要是spam也能坐上沙发，那我真是发那篇文章时倒霉到家了，这都能和spam遇上！！！&lt;/p&gt;
&lt;h3&gt;类型六，毫不羞耻吹捧型&lt;/h3&gt;
&lt;p&gt;&lt;img style=&quot;display: inline&quot; title=&quot;spam10&quot; alt=&quot;spam10&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/spam10.png&quot; width=&quot;517&quot; height=&quot;80&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style=&quot;display: inline&quot; title=&quot;spam11&quot; alt=&quot;spam11&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/spam11.png&quot; width=&quot;537&quot; height=&quot;89&quot; /&gt;&lt;/p&gt;
&lt;p&gt;其实夸赞俺，俺也很高兴，但是别发错文章呀，这个spam却正好发在一篇写我上当受骗的文章下面，靠，我倒霉你还在下面叫好！！！&lt;/p&gt;
&lt;p&gt;  &lt;div class=&quot;inpostad&quot;&gt;&lt;img src=&quot;http://www.qiqiboy.com/wp-content/themes/bluePaled/img/feedad.gif&quot; /&gt;&lt;a href=&quot;http://www.qiqiboy.com/bluepaled&quot; title=&quot;点击下载bluePaled&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://www.qiqiboy.com/wp-content/themes/bluePaled/img/adtest.png&quot; alt=&quot;点击下载bluePaled&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;h3&gt;类型七，论坛灌水积分党&lt;/h3&gt;
&lt;p&gt;&lt;img style=&quot;display: inline&quot; title=&quot;spam12&quot; alt=&quot;spam12&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/spam12.png&quot; width=&quot;575&quot; height=&quot;320&quot; /&gt;&lt;/p&gt;
&lt;p&gt;这种贴子的出现源于很多人士想在天涯看连载小说，但是天涯一些论坛的功能只有一定积分才能使用，于是出现了一大堆类似的帖子，专门用来刷积分。&lt;/p&gt;
&lt;p&gt;但是，拜托，我这里不是天涯论坛。&lt;/p&gt;
&lt;h3&gt;类型八，狗咬狗&lt;/h3&gt;
&lt;p&gt;&lt;img style=&quot;display: inline&quot; title=&quot;spam0&quot; alt=&quot;spam0&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/spam0.png&quot; width=&quot;579&quot; height=&quot;93&quot; /&gt;&lt;/p&gt;
&lt;p&gt;我想说的是，WP的垃圾评论早已出了，akismet。&lt;/p&gt;
&lt;h3&gt;类型九，两个蠢蛋型&lt;/h3&gt;
&lt;p&gt;&lt;img style=&quot;display: inline&quot; title=&quot;spam1&quot; alt=&quot;spam1&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/spam1.png&quot; width=&quot;576&quot; height=&quot;90&quot; /&gt;&lt;/p&gt;
&lt;p&gt;你老板够蠢，居然不知道你在假装工作，你更蠢，明知道他在假装付你薪水，还为他工作浪费时间。&lt;/p&gt;
&lt;h3&gt;类型十，非人类&lt;/h3&gt;
&lt;p&gt;&lt;img style=&quot;display: inline&quot; title=&quot;spam2&quot; alt=&quot;spam2&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/spam2.png&quot; width=&quot;581&quot; height=&quot;92&quot; /&gt;&lt;/p&gt;
&lt;p&gt;这位发评论的都说了，人家是咔咕。&lt;/p&gt;
&lt;h3&gt;类型十一，类新手型&lt;/h3&gt;
&lt;p&gt;&lt;img style=&quot;display: inline&quot; title=&quot;spam3&quot; alt=&quot;spam3&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/spam3.png&quot; width=&quot;510&quot; height=&quot;100&quot; /&gt;&lt;/p&gt;
&lt;p&gt;刚开博客的新手大概都会有段时间喜欢去别人博客留这样的话&lt;/p&gt;
&lt;h3&gt;类型十二，alibibi&lt;/h3&gt;
&lt;p&gt;&lt;img style=&quot;display: inline&quot; title=&quot;spam4&quot; alt=&quot;spam4&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/spam4.png&quot; width=&quot;574&quot; height=&quot;96&quot; /&gt;&lt;/p&gt;
&lt;p&gt;此位域名实在太个性。马云看到了就震精了。&lt;/p&gt;
&lt;h3&gt;类型十三，让我无语型&lt;/h3&gt;
&lt;p&gt;&lt;img style=&quot;display: inline&quot; title=&quot;spam5&quot; alt=&quot;spam5&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/spam5.png&quot; width=&quot;549&quot; height=&quot;90&quot; /&gt;&lt;/p&gt;
&lt;p&gt;男科医生都来了，还自称砖家，请问前列腺能治吗？&lt;/p&gt;
&lt;h4 class=&quot;related_post_title&quot;&gt;&lt;span class=&quot;now&quot;&gt;Related Posts&lt;/span&gt;&lt;/h4&gt;&lt;div class=&quot;tags&quot;&gt;More Articles about: &lt;a href='http://www.qiqiboy.com/tags/comments' rel='tag'&gt;comments&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/spam' rel='tag'&gt;Spam&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/wordpress' rel='tag'&gt;WordPress&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/%e8%af%84%e8%ae%ba' rel='tag'&gt;评论&lt;/a&gt;&lt;/div&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/07/31/ajax-comments-amendment-on-a-small-problem.html&quot; title=&quot;修正关于Ajax comments的一个小问题&quot;&gt;修正关于Ajax comments的一个小问题&lt;/a&gt; (39)&lt;br /&gt;&lt;small&gt;很多人都用willin的Ajax comments，确实是一个非常好的功能，我也一直在用。

我用的版本还是很早期的版本了，期间willin进行了多次修改升级，我一直没动，甚至换了现在新主题还是使...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/23/perfect-solution-wordpress-unlimited-nested-2.html&quot; title=&quot;完美解决wordpress无限嵌套&amp;lt;二&amp;gt; 【邮件发送相关问题】&quot;&gt;完美解决wordpress无限嵌套&amp;lt;二&amp;gt; 【邮件发送相关问题】&lt;/a&gt; (72)&lt;br /&gt;&lt;small&gt;但是，后来出现一个问题，让我不得不重新思考无限嵌套这一方式。这个问题就是邮件回复问题。了解我实现无限嵌套原理的，应该的都知道其实在对最后一层进行回复时，是在变相...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/13/ever-present-sidebar-instant-recovery-capabilities-comments.html&quot; title=&quot;【原理指导篇】无时不在的评论 侧边栏即时回复功能&quot;&gt;【原理指导篇】无时不在的评论 侧边栏即时回复功能&lt;/a&gt; (24)&lt;br /&gt;&lt;small&gt;
这个表单插入到页面上你有两种选择，一是预先在页面上输出一个完整的评论表单，如在footer.php处，注意要在&amp;lt;body&amp;gt;标签闭合前，然后设置display:none，使之在页面上隐藏。二是直接...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/05/added-edit-trackback-style-in-the-code.html&quot; title=&quot;补充《修改trackback样式，统一评论外观》中代码&quot;&gt;补充《修改trackback样式，统一评论外观》中代码&lt;/a&gt; (33)&lt;br /&gt;&lt;small&gt;导航：#trackbacks代码&amp;#160; &amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; #代码解释   在《 修改trackback样式，统一评论外观 》中，我只是说了我对trackbacks的样式处理，并没有贴出代码，当然，原...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/07/30/allows-you-to-paste-the-code-in-the-comments-box-free.html&quot; title=&quot;让你的评论框自由粘贴代码&quot;&gt;让你的评论框自由粘贴代码&lt;/a&gt; (58)&lt;br /&gt;&lt;small&gt;我前后试用了三种方法。

第一，我想写一个超级正则表达式，来直接将评论框中&amp;lt;code&amp;gt;&amp;lt;/code&amp;gt;包围的字符串中的“&amp;lt;”转换为“&amp;amp;lt;”。对于只有一对&amp;lt;code&amp;gt;&amp;lt;/code&amp;gt;标签...&lt;/small&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;声明:&lt;/strong&gt; 本站遵循 &lt;a href=&quot;http:\/\/creativecommons.org/licenses/by-nc-sa/3.0/&quot;&gt;署名-非商业性使用-相同方式共享 3.0&lt;/a&gt; 共享协议. 转载请注明转自 &lt;a href=&quot;http://www.qiqiboy.com&quot;&gt;I'm qiqiboy !&lt;/a&gt; &lt;/p&gt; &lt;p&gt;本文地址: &lt;a href=&quot;http://qiqi.boy.im/7u&quot;&gt;http://qiqi.boy.im/7u&lt;a&gt;&lt;/p&gt;&lt;span style=&quot;background:#cc5566;color:#fffff;&quot;&gt;&lt;h4&gt;Look, this post is replyed so hot, let's go O(∩_∩)O~.&lt;/h4&gt;&lt;/span&gt;&lt;h3&gt;Related comments&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;2010年09月3日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/31/chinese-circle-surrounding-wordpress-spam-fun.html#comment-5051&quot;&gt;QiQiBoY&lt;/a&gt;say: &lt;a href=&quot;#comment-5020&quot; rel=&quot;nofollow&quot;&gt;@咔咕图聊 &lt;/a&gt; 
哦。。。你出现了。。。。&lt;/li&gt;&lt;li&gt;2010年09月3日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/31/chinese-circle-surrounding-wordpress-spam-fun.html#comment-5050&quot;&gt;QiQiBoY&lt;/a&gt;say: &lt;a href=&quot;#comment-5018&quot; rel=&quot;nofollow&quot;&gt;@枫雪 &lt;/a&gt; 
呵呵。。有些spam的名字看起来可是人模人样的。。&lt;/li&gt;&lt;li&gt;2010年09月3日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/31/chinese-circle-surrounding-wordpress-spam-fun.html#comment-5047&quot;&gt;QiQiBoY&lt;/a&gt;say: &lt;a href=&quot;#comment-5039&quot; rel=&quot;nofollow&quot;&gt;@安庆法律人 &lt;/a&gt; 
查看此链接&lt;a href=&quot;http://www.qiqiboy.com/2010/08/16/visitor-information-tencent-suspended-micro-display.html#comment-4350&quot; rel=&quot;nofollow&quot;&gt;http://www.qiqiboy.com/2010/08/16/visitor-information-tencent-suspended-micro-display.html#comment-4350&lt;/a&gt;&lt;/li&gt;&lt;li&gt;2010年09月3日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/31/chinese-circle-surrounding-wordpress-spam-fun.html#comment-5039&quot;&gt;安庆法律人&lt;/a&gt;say: 博主，文章中间是怎么插入广告的？是用插件还是写文章的时候手动插入广告代码？&lt;/li&gt;&lt;li&gt;2010年09月2日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/31/chinese-circle-surrounding-wordpress-spam-fun.html#comment-5020&quot;&gt;咔咕图聊&lt;/a&gt;say: 站在群众后面偷偷的瞄两眼&lt;/li&gt;&lt;li&gt;2010年09月2日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/31/chinese-circle-surrounding-wordpress-spam-fun.html#comment-5018&quot;&gt;枫雪&lt;/a&gt;say: 其实看名字就知道了  看到我就删..&lt;/li&gt;&lt;li&gt;2010年09月2日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/31/chinese-circle-surrounding-wordpress-spam-fun.html#comment-5011&quot;&gt;QiQiBoY&lt;/a&gt;say: &lt;a href=&quot;#comment-5008&quot; rel=&quot;nofollow&quot;&gt;@pupuguang &lt;/a&gt; 
 &lt;img src='http://www.qiqiboy.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':grin:' class='wp-smiley' /&gt; &lt;/li&gt;&lt;li&gt;2010年09月2日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/31/chinese-circle-surrounding-wordpress-spam-fun.html#comment-5010&quot;&gt;QiQiBoY&lt;/a&gt;say: &lt;a href=&quot;#comment-5005&quot; rel=&quot;nofollow&quot;&gt;@人好哇！ &lt;/a&gt; 
这些手动的“spam”也挺不容易的，反正链接都会加上nofollow，所以删与不删都无所谓了。。。如果我遇到，我是不会删的。
之所以要删除的spam，是因为他们与文章无关。&lt;/li&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408666550/qiqiboy/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/qiqiboy/~7883632/408666550/5446216/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/qiqiboy/408666550/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/qiqiboy/408666550/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://www.qiqiboy.com/2010/08/31/chinese-circle-surrounding-wordpress-spam-fun.html/feed</wfw:commentRss><slash:comments>94</slash:comments><description>&lt;h3&gt;类型九，两个蠢蛋型&lt;/h3&gt;

&lt;p&gt;&lt;img style=&quot;display: inline&quot; title=&quot;spam1&quot; alt=&quot;spam1&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/spam1.png&quot; width=&quot;576&quot; height=&quot;90&quot; /&gt;&lt;/p&gt;

&lt;p&gt;你老板够蠢，居然不知道你在假装工作，你更蠢，明知道他在假装付你薪水，还为他工作浪费时间。&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408666550/qiqiboy/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/qiqiboy/~7883632/408666550/5446216/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/qiqiboy/408666550/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/qiqiboy/408666550/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>评论</category><category>comments</category><category>Spam</category><category>WordPress</category><pubDate>Tue, 31 Aug 2010 20:43:55 +0800</pubDate><author>QiQiBoY</author><comments>http://www.qiqiboy.com/2010/08/31/chinese-circle-surrounding-wordpress-spam-fun.html#comments</comments><guid isPermaLink="false">http://www.qiqiboy.com/2010/08/31/%e5%9b%b4%e8%a7%82wordpress%e4%b8%ad%e6%96%87%e5%9c%88%e5%86%85%e5%a5%bd%e7%8e%a9%e7%9a%84spam.html</guid><dc:creator>QiQiBoY</dc:creator><fs:srclink>http://www.qiqiboy.com/2010/08/31/chinese-circle-surrounding-wordpress-spam-fun.html</fs:srclink><fs:srcfeed>http://www.qiqiboy.com/feed</fs:srcfeed><fs:itemid>feedsky/qiqiboy/~7883632/408666550/5446216</fs:itemid></item><item><title>JS延迟加载机制函数(Lazyload)</title><link>http://item.feedsky.com/~feedsky/qiqiboy/~7883632/408666551/5446216/1/item.html</link><content:encoded>&lt;p&gt;最近应该大家都发现了，我的博客很多模块都使用了延迟加载技术。这个延迟加载(lazyload)我第一次听说其实还是不久前，那是在别人博客看到介绍的一个基于jQuery的图片延迟加载插件。我对这个很感兴趣，其实很多网站也都应用了这个技术，尤其是大型网站，可以有效地减少服务器压力。&lt;/p&gt;
&lt;p&gt;我原先觉得这个技术挺神秘的，实现起来应该比较困难，并且在网上也并没有找到相关的文章或者介绍。但是当我真正决定要去这样做时，却发现其实这个真的挺简单的，原理也容易理解。&lt;/p&gt;
&lt;p&gt;lazyload，简单地说，就是在浏览器滚动到某个位置时再出发相关函数，实现页面元素的加载或者某些动作的执行。浏览器的滚动位置检测，可以通过一个定时器来循环检测，通过比较某一时刻页面目标节点位置和浏览器滚动条高度来判断需不要要执行函数。我将这个方法写成了一个类，我自己博客即是使用我的这个方法。&lt;/p&gt;
&lt;p&gt;（下面代码纯属自己的小试手，如果有不完善地方可以指出） &lt;/p&gt;
&lt;div style=&quot;border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px&quot; id=&quot;codeSnippetWrapper&quot;&gt;
&lt;div style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum1&quot;&gt;   1:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; Lazyload(func, obj) {&lt;span style=&quot;color: #008000&quot;&gt;//obj目标节点对象, func要触发的函数&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum2&quot;&gt;   2:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.func = func;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum3&quot;&gt;   3:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.obj = obj;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum4&quot;&gt;   4:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.it = setInterval(&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;() {&lt;span style=&quot;color: #008000&quot;&gt;//2s检查一次&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum5&quot;&gt;   5:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.checkScroll();&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum6&quot;&gt;   6:&lt;/span&gt;     }.bind(&lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;), 2000);&lt;span style=&quot;color: #008000&quot;&gt;//bind为setInterval绑定lazyload对象，否则this会指向window对象&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum7&quot;&gt;   7:&lt;/span&gt; }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum8&quot;&gt;   8:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum9&quot;&gt;   9:&lt;/span&gt; Function.prototype.bind = &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(obj) {&lt;span style=&quot;color: #008000&quot;&gt;//对象绑定&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum10&quot;&gt;  10:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; __method = &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum11&quot;&gt;  11:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;() { &lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum12&quot;&gt;  12:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; __method.apply(obj, arguments); &lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum13&quot;&gt;  13:&lt;/span&gt;     };&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum14&quot;&gt;  14:&lt;/span&gt; }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum15&quot;&gt;  15:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum16&quot;&gt;  16:&lt;/span&gt; Lazyload.prototype.checkScroll = &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;() {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum17&quot;&gt;  17:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; scrollY = document.body.scrollTop || document.documentElement.scrollTop || window.pageYOffset || 0,&lt;span style=&quot;color: #008000&quot;&gt;//页面滚动条高度&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum18&quot;&gt;  18:&lt;/span&gt;         seeY = window.innerHeight||document.documentElement.clientHeight,&lt;span style=&quot;color: #008000&quot;&gt;//浏览器可视区域高度&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum19&quot;&gt;  19:&lt;/span&gt;         func = &lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.func;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum20&quot;&gt;  20:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (Math.abs(&lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.getY() - scrollY) &amp;lt; seeY) {&lt;span style=&quot;color: #008000&quot;&gt;//当目标节点进入可视区域，即页面滚动条高度减去节点距页面顶部距离小于浏览器可视高度&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum21&quot;&gt;  21:&lt;/span&gt;         clearInterval(&lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.it);&lt;span style=&quot;color: #008000&quot;&gt;//清除定时器&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum22&quot;&gt;  22:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; func();&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum23&quot;&gt;  23:&lt;/span&gt;     }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum24&quot;&gt;  24:&lt;/span&gt; }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum25&quot;&gt;  25:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum26&quot;&gt;  26:&lt;/span&gt; Lazyload.prototype.getY=&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(){&lt;span style=&quot;color: #008000&quot;&gt;//目标节点距页面顶部高度&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum27&quot;&gt;  27:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; obj=&lt;span style=&quot;color: #0000ff&quot;&gt;this&lt;/span&gt;.obj;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum28&quot;&gt;  28:&lt;/span&gt;     tp = obj.offsetTop;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum29&quot;&gt;  29:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (obj.offsetParent) &lt;span style=&quot;color: #0000ff&quot;&gt;while&lt;/span&gt; (obj = obj.offsetParent) tp += obj.offsetTop;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum30&quot;&gt;  30:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; tp;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum31&quot;&gt;  31:&lt;/span&gt; }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;关于代码的一些解释都在注释里了。如何使用呢？&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;inpostad&quot;&gt;&lt;img src=&quot;http://www.qiqiboy.com/wp-content/themes/bluePaled/img/feedad.gif&quot; /&gt;&lt;a href=&quot;http://www.qiqiboy.com/bluepaled&quot; title=&quot;点击下载bluePaled&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://www.qiqiboy.com/wp-content/themes/bluePaled/img/adtest.png&quot; alt=&quot;点击下载bluePaled&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;使用这个方法要通过new来新建类对象的方法。参数func即是要触发的函数，obj即是页面上某个节点对象，即当此obj节点进入可视区域时（浏览器滚动到此处）即触发func函数。比如，你要实现当浏览器滚动到页面上id为“test”的节点（b）时触发弹出窗口alert(‘yes’),可以这么做 &lt;/p&gt;
&lt;div style=&quot;border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px&quot; id=&quot;codeSnippetWrapper&quot;&gt;
&lt;div style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum1&quot;&gt;   1:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; a(){alert(&lt;span style=&quot;color: #006080&quot;&gt;'yes'&lt;/span&gt;);}&lt;span style=&quot;color: #008000&quot;&gt;//要出发的函数&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum2&quot;&gt;   2:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; b=document.getElementById(&lt;span style=&quot;color: #006080&quot;&gt;'tests'&lt;/span&gt;);&lt;span style=&quot;color: #008000&quot;&gt;//获取页面节点&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum3&quot;&gt;   3:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; Lazyload(a,b);&lt;span style=&quot;color: #008000&quot;&gt;//使用new关键字建立对象执行&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;以上就是我自己的lazyload的全部代码与实现方式了。当然，我相信它还有改进之处。&lt;/p&gt;
&lt;p&gt;补充一些其他的东西：&lt;/p&gt;
&lt;p&gt;我的代码中定时检测的时间设定是2s，也就是说每两秒去比较一次。如果你浏览器拖动太快，目标节点被很快的一闪而过，很可能此时就刚好没有执行checkScroll函数，所以也就不会触发动作了。你可以将时间改为更小的值（在第6行），如500ms，可以避免大多数的快速拖动造成的问题。当然，我觉得其实没必要，如果某人很快的拖动滚动条，说明他要浏览的东西在页面底部，那么其实是没必要加载他快速拖动过的节点的，所以2s我觉得是一个很合理的值。&lt;/p&gt;
&lt;p&gt;另外一个问题是我的代码是只触发出现在可视区域中的节点动作，如果你想要实现在当前浏览的页面以上部分的节点全部要加载，那么可以将代码的第20行去掉&lt;font style=&quot;background-color: #ffff00&quot;&gt;Math.abs&lt;/font&gt;即可。如果要实现在滚动到距目标节点一定高度时就开始触发函数，那么可将20行的seeY改为&lt;font style=&quot;background-color: #ffff00&quot;&gt;seeY+200&lt;/font&gt;(200即为设定的距离高度)。&lt;/p&gt;
&lt;p&gt;关于lazyload的一个具体的实现，就还拿图片的延迟加载来说吧。你可以将图片的地址都改成一个默认的小图片（这个可以在后台用php直接修改输出，也可以用js实现），将正真的图片地址存到图片的alt属性中（也可以指定一个自定义的属性），然后对每个图片绑定new lazyload，要触发的动作函数就是将alt中的值赋给src即可。这样，就实现了图片的lazyload（你就可以消灭jQuery，消灭jQuery的lazyload插件了，也就消灭了那100来K的JS文件）。如果再结合ajax技术，那么也就可以实现如我博客一样的模块延迟加载了。&lt;img style=&quot;display: inline&quot; title=&quot;捕获&quot; alt=&quot;捕获&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/8dc355b5c5e9.png&quot; width=&quot;640&quot; height=&quot;248&quot; /&gt;&lt;/p&gt;
&lt;h4 class=&quot;related_post_title&quot;&gt;&lt;span class=&quot;now&quot;&gt;Related Posts&lt;/span&gt;&lt;/h4&gt;&lt;div class=&quot;tags&quot;&gt;More Articles about: &lt;a href='http://www.qiqiboy.com/tags/javascript' rel='tag'&gt;javascript&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/lazyload' rel='tag'&gt;lazyload&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/%e4%bb%a3%e7%a0%81' rel='tag'&gt;代码&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/%e5%bb%b6%e8%bf%9f%e5%8a%a0%e8%bd%bd' rel='tag'&gt;延迟加载&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/%e7%a8%8b%e5%ba%8f' rel='tag'&gt;程序&lt;/a&gt;&lt;/div&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/08/javascript-page-document-initialize-window-onload-alternative.html&quot; title=&quot;JavaScript页面文档初始化 window.onload的替代办法&quot;&gt;JavaScript页面文档初始化 window.onload的替代办法&lt;/a&gt; (49)&lt;br /&gt;&lt;small&gt;很早，大概去年就在mg12的博客看到他一篇很久以前的文章《 JavaScript 初始化装载方法 》，当时也没注意。这两天在做页面一些部分的延迟加载时，又想起了这个，因为使用window.onload...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/07/14/a-simple-comment-box-counter.html&quot; title=&quot;评论框的简单计数器（无需改动模板，附带输入字数限制功能）&quot;&gt;评论框的简单计数器（无需改动模板，附带输入字数限制功能）&lt;/a&gt; (23)&lt;br /&gt;&lt;small&gt;来过我博客的都知道，我博客很早在评论框右下角就有个小小的计数器，可以显示你在评论框中输入的字数。这个功能很简单，配合模板，其实一两句js代码就能搞定。偶尔有人向我问...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/09/03/wall-display-of-my-readers-with-js-code-used.html&quot; title=&quot;我的读者墙展示（附所用JS代码）&quot;&gt;我的读者墙展示（附所用JS代码）&lt;/a&gt; (14)&lt;br /&gt;&lt;small&gt;好多人都在博客上弄了个读者墙，我之前也搞过，但是换了新主题之后就没再添加了。所以抽了个时间，在links页面加了读者墙，展示的是最近三个月内的评论数量在前72名的访客头像...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/16/visitor-information-tencent-suspended-micro-display.html&quot; title=&quot;仿腾讯微博式访客信息悬浮显示（JavaScript &amp;#038; ajax）&quot;&gt;仿腾讯微博式访客信息悬浮显示（JavaScript &amp;#038; ajax）&lt;/a&gt; (95)&lt;br /&gt;&lt;small&gt;效果如你在我博客评论列表处，你可以直接点击评论者头像，或者将鼠标放到头像上2s，就会出现loading图标，从后台获取数据后就会出现一个长方形框，显示了当前评论者的头像，姓...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/07/30/allows-you-to-paste-the-code-in-the-comments-box-free.html&quot; title=&quot;让你的评论框自由粘贴代码&quot;&gt;让你的评论框自由粘贴代码&lt;/a&gt; (58)&lt;br /&gt;&lt;small&gt;我前后试用了三种方法。

第一，我想写一个超级正则表达式，来直接将评论框中&amp;lt;code&amp;gt;&amp;lt;/code&amp;gt;包围的字符串中的“&amp;lt;”转换为“&amp;amp;lt;”。对于只有一对&amp;lt;code&amp;gt;&amp;lt;/code&amp;gt;标签...&lt;/small&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;声明:&lt;/strong&gt; 本站遵循 &lt;a href=&quot;http:\/\/creativecommons.org/licenses/by-nc-sa/3.0/&quot;&gt;署名-非商业性使用-相同方式共享 3.0&lt;/a&gt; 共享协议. 转载请注明转自 &lt;a href=&quot;http://www.qiqiboy.com&quot;&gt;I'm qiqiboy !&lt;/a&gt; &lt;/p&gt; &lt;p&gt;本文地址: &lt;a href=&quot;http://qiqi.boy.im/7s&quot;&gt;http://qiqi.boy.im/7s&lt;a&gt;&lt;/p&gt;&lt;span style=&quot;background:#cc5566;color:#fffff;&quot;&gt;&lt;h4&gt;Look, this post is replyed so hot, let's go O(∩_∩)O~.&lt;/h4&gt;&lt;/span&gt;&lt;h3&gt;Related comments&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;2010年09月2日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/27/js-delayed-loading-mechanism-function-lazyload.html#comment-5012&quot;&gt;QiQiBoY&lt;/a&gt;say: &lt;a href=&quot;#comment-5006&quot; rel=&quot;nofollow&quot;&gt;@oYoo &lt;/a&gt; 
本来就是挺酷的技术。。。 &lt;img src='http://www.qiqiboy.com/wp-includes/images/smilies/icon_smile.gif' alt=':smile:' class='wp-smiley' /&gt; &lt;/li&gt;&lt;li&gt;2010年09月2日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/27/js-delayed-loading-mechanism-function-lazyload.html#comment-5006&quot;&gt;oYoo&lt;/a&gt;say: 延迟加载，感觉很酷。&lt;/li&gt;&lt;li&gt;2010年08月31日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/27/js-delayed-loading-mechanism-function-lazyload.html#comment-4883&quot;&gt;QiQiBoY&lt;/a&gt;say: &lt;a href=&quot;#comment-4876&quot; rel=&quot;nofollow&quot;&gt;@阿吴 &lt;/a&gt; 
呵呵。。没事瞎折腾的。。&lt;/li&gt;&lt;li&gt;2010年08月31日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/27/js-delayed-loading-mechanism-function-lazyload.html#comment-4876&quot;&gt;阿吴&lt;/a&gt;say: 你的博客好多赞的技术&lt;/li&gt;&lt;li&gt;2010年08月31日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/27/js-delayed-loading-mechanism-function-lazyload.html#comment-4865&quot;&gt;小邪&lt;/a&gt;say: &lt;a href=&quot;#comment-4857&quot; rel=&quot;nofollow&quot;&gt;@liuqiqi &lt;/a&gt; 
哇，果然够专业，嘿嘿 ~ 谢啦 ~&lt;/li&gt;&lt;li&gt;2010年08月30日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/27/js-delayed-loading-mechanism-function-lazyload.html#comment-4857&quot;&gt;liuqiqi&lt;/a&gt;say: &lt;a href=&quot;#comment-4856&quot; rel=&quot;nofollow&quot;&gt;@小邪 &lt;/a&gt; 
简单。。。直接给你教程。。&lt;strong&gt;&lt;a href=&quot;http://www.neoease.com/wordpress-at-reply/&quot; rel=&quot;nofollow&quot;&gt;http://www.neoease.com/wordpress-at-reply/&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;2010年08月30日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/27/js-delayed-loading-mechanism-function-lazyload.html#comment-4856&quot;&gt;小邪&lt;/a&gt;say: 对鸟，能不能把下面这段代码也改成纯js的 ~
那样我就可以脱离jquery的100多K鸟 ~
&lt;code&gt;		&amp;lt;script type=&quot;text/javascript&quot;&amp;gt; 

jQuery(document).ready(function($){$('.reply').click(function(){var atid='&quot;#'+$(this).parent().attr(&quot;id&quot;)+'&quot;';var atname=$(this).prevAll().find('cite:first').text();$(&quot;#comment&quot;).attr(&quot;value&quot;,&quot;&amp;lt;a href=&quot;+atid+&quot; rel=&quot;+'&quot;nofollow&quot;'+&quot;&amp;gt;@&quot;+atname+&quot; &amp;lt;/a&amp;gt;, &quot;).focus()});$('.cancel-comment-reply a').click(function(){$(&quot;#comment&quot;).attr(&quot;value&quot;,'')})})

	&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/li&gt;&lt;li&gt;2010年08月30日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/27/js-delayed-loading-mechanism-function-lazyload.html#comment-4852&quot;&gt;A.shun&lt;/a&gt;say: &lt;a href=&quot;#comment-4848&quot; rel=&quot;nofollow&quot;&gt;@QiQiBoY &lt;/a&gt; 
原来如此。
我不用google的链接。。放在了自己的主题目录，稳定点。

是啊，主题现在用到jq很小一部分功能而已。。&lt;/li&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408666551/qiqiboy/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/qiqiboy/~7883632/408666551/5446216/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/qiqiboy/408666551/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/qiqiboy/408666551/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://www.qiqiboy.com/2010/08/27/js-delayed-loading-mechanism-function-lazyload.html/feed</wfw:commentRss><slash:comments>87</slash:comments><description>&lt;p&gt;另外一个问题是我的代码是只触发出现在可视区域中的节点动作，如果你想要实现在当前浏览的页面以上部分的节点全部要加载，那么可以将代码的第20行去掉&lt;font style=&quot;background-color: #ffff00&quot;&gt;Math.abs&lt;/font&gt;即可。如果要实现在滚动到距目标节点一定高度时就开始触发函数，那么可将20行的seeY改为&lt;font style=&quot;background-color: #ffff00&quot;&gt;seeY+200&lt;/font&gt;(200即为设定的距离高度)。&lt;/p&gt;

&lt;p&gt;关于lazyload的一个具体的实现，就还拿图片的延迟加载来说吧。你可以将图片的地址都改成一个默认的小图片（这个可以在后台用php直接修改输出，也可以用js实现），将正真的图片地址存到图片的alt属性中（也可以指定一个自定义的属性），然后对每个图片绑定new lazyload，要触发的动作函数就是将alt中的值赋给src即可。这样，就实现了图片的lazyload（你就可以消灭jQuery，消灭jQuery的lazyload插件了，也就消灭了那100来K的JS文件）。如果再结合ajax技术，那么也就可以实现如我博客一样的模块延迟加载了。&lt;img style=&quot;display: inline&quot; title=&quot;捕获&quot; alt=&quot;捕获&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/8dc355b5c5e9.png&quot; width=&quot;640&quot; height=&quot;248&quot; /&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408666551/qiqiboy/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/qiqiboy/~7883632/408666551/5446216/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/qiqiboy/408666551/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/qiqiboy/408666551/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>lazyload</category><category>程序</category><category>代码</category><category>javascript</category><category>延迟加载</category><category>WordPress</category><pubDate>Fri, 27 Aug 2010 13:40:10 +0800</pubDate><author>QiQiBoY</author><comments>http://www.qiqiboy.com/2010/08/27/js-delayed-loading-mechanism-function-lazyload.html#comments</comments><guid isPermaLink="false">http://www.qiqiboy.com/2010/08/27/js-delayed-loading-mechanism-function-lazyload.html</guid><dc:creator>QiQiBoY</dc:creator><fs:srclink>http://www.qiqiboy.com/2010/08/27/js-delayed-loading-mechanism-function-lazyload.html</fs:srclink><fs:srcfeed>http://www.qiqiboy.com/feed</fs:srcfeed><fs:itemid>feedsky/qiqiboy/~7883632/408666551/5446216</fs:itemid></item><item><title>完美解决wordpress无限嵌套&lt;二&gt; 【邮件发送相关问题】</title><link>http://item.feedsky.com/~feedsky/qiqiboy/~7883632/408666552/5446216/1/item.html</link><content:encoded>&lt;p&gt;我曾在《&lt;a href=&quot;http://www.qiqiboy.com/2010/07/07/perfect-solution-wordpress-nested-layers-deep-back-problems.html&quot;&gt;&lt;strong&gt;&lt;font color=&quot;#ff0000&quot;&gt;完美解决WordPress嵌套回复的层深问题（无限嵌套）&amp;lt;一&amp;gt;&lt;/font&gt;&lt;/strong&gt;&lt;/a&gt;》中分享了我对wordpress中嵌套深度有限的应对解决办法。有同学注意到了我标题中的&lt;font style=&quot;background-color: #ffff00&quot;&gt;&lt;u&gt;&amp;lt;一&amp;gt;&lt;/u&gt;&lt;/font&gt;，所以问我&lt;font style=&quot;background-color: #d19049&quot;&gt;&amp;lt;二&amp;gt;&lt;/font&gt;何时出来。我回答说，没有二了，因为这个已经是完美的了，标题中的一是无意中加进去的。&lt;/p&gt;
&lt;p&gt;但是，后来出现一个问题，让我不得不重新思考无限嵌套这一方式，从而也就有了本文——《完美无限嵌套&amp;lt;二&amp;gt;》。这个问题就是邮件回复问题。了解我实现无限嵌套原理的，应该的都知道其实在对最后一层进行回复时，是在变相的对倒数第二层进行回复。很多人可能在使用&lt;strong&gt;willin&lt;/strong&gt;修改的邮件发送方式，即是通过&lt;strong&gt;hook&lt;/strong&gt;到&lt;strong&gt;comment_post&lt;/strong&gt;，获取新评论的父级评论ID，如果ID不为0，说明这是一条子评论，然后就将邮件发送给父级评论。父级评论的邮箱是来自get_comment()函数获取数据库查询。前面已经说了，对最后一层的回复是&lt;font style=&quot;background-color: #ffff00&quot;&gt;变相地对倒数第二层进行回复&lt;/font&gt;，所以此时邮件全部发送到倒数第二层那里去了。&lt;/p&gt;
&lt;p&gt;我注意到上面的问题，来自于一次我在开发自己的ajax评论时对我在最后一层的评论进行回复测试时，结果zww跑来跟我说，收到一大堆我的邮件。我研究了一下，发现存在上述问题，在搁置了N天后，今天我终于解决了它。&lt;/p&gt;
&lt;p&gt;这个问题的解决需要换个思路，不能还是局限于通过查询一条评论的父级ID来判断需不需要发送邮件。我注意到我的每条评论中都有@回复链接，而其中的href中就包含了被回复者的评论id，所以我就从这里着手，想通过获取评论中的存在的@回复来进行邮件发送。而且这种方式，你可以一次回复多个人，比如你想在一条评论里同时回复A、B、C三个人，你只需要依次点击A、B、C下面的reply按钮（如果不想让评论框出现在这三人任何一人下方，则点击一下取消回复，评论框会回到底部，这条回复会被当做一条主评论。但是，别担心，评论框内容不会清空，你的回复依然会通过邮件发送至这三人），然后书写回复内容即可。&lt;/p&gt;
&lt;p&gt;主要代码如下：&lt;/p&gt;
&lt;div style=&quot;border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px&quot; id=&quot;codeSnippetWrapper&quot;&gt;
&lt;div style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum1&quot;&gt;   1:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; comment_mail_notify($comment_id) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum2&quot;&gt;   2:&lt;/span&gt;     $comment = get_comment($comment_id);&lt;span style=&quot;color: #008000&quot;&gt;//根据id获取这条评论相关数据&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum3&quot;&gt;   3:&lt;/span&gt;     $content=comment-&amp;gt;comment_content;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum4&quot;&gt;   4:&lt;/span&gt;     &lt;span style=&quot;color: #008000&quot;&gt;//对评论内容进行匹配&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum5&quot;&gt;   5:&lt;/span&gt;     $match_count=preg_match_all(&lt;span style=&quot;color: #006080&quot;&gt;'/&amp;lt;a href=&amp;quot;#comment-([0-9]+)?&amp;quot; rel=&amp;quot;nofollow&amp;quot;&amp;gt;/si'&lt;/span&gt;,$content,$matchs);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum6&quot;&gt;   6:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt;($match_count&amp;gt;0){&lt;span style=&quot;color: #008000&quot;&gt;//如果匹配到了&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum7&quot;&gt;   7:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;foreach&lt;/span&gt;($matchs[1] &lt;span style=&quot;color: #0000ff&quot;&gt;as&lt;/span&gt; $parent_id){&lt;span style=&quot;color: #008000&quot;&gt;//对每个子匹配都进行邮件发送操作&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum8&quot;&gt;   8:&lt;/span&gt;             SimPaled_send_email($parent_id,$comment);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum9&quot;&gt;   9:&lt;/span&gt;         }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum10&quot;&gt;  10:&lt;/span&gt;     }&lt;span style=&quot;color: #0000ff&quot;&gt;elseif&lt;/span&gt;($comment-&amp;gt;comment_parent!=&lt;span style=&quot;color: #006080&quot;&gt;'0'&lt;/span&gt;){&lt;span style=&quot;color: #008000&quot;&gt;//以防万一，有人故意删了@回复，还可以通过查找父级评论id来确定邮件发送对象&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum11&quot;&gt;  11:&lt;/span&gt;         $parent_id=$comment-&amp;gt;comment_parent;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum12&quot;&gt;  12:&lt;/span&gt;         SimPaled_send_email($parent_id,$comment);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum13&quot;&gt;  13:&lt;/span&gt;     }&lt;span style=&quot;color: #0000ff&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt;;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum14&quot;&gt;  14:&lt;/span&gt; }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum15&quot;&gt;  15:&lt;/span&gt; add_action(&lt;span style=&quot;color: #006080&quot;&gt;'comment_post'&lt;/span&gt;, &lt;span style=&quot;color: #006080&quot;&gt;'comment_mail_notify'&lt;/span&gt;);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;然后就是发送邮件的函数，简单给个思路 &lt;/p&gt;
&lt;div style=&quot;border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px&quot; id=&quot;codeSnippetWrapper&quot;&gt;
&lt;div style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum1&quot;&gt;   1:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; SimPaled_send_email($parent_id,$comment){&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum2&quot;&gt;   2:&lt;/span&gt;     $admin_email = get_bloginfo (&lt;span style=&quot;color: #006080&quot;&gt;'admin_email'&lt;/span&gt;);&lt;span style=&quot;color: #008000&quot;&gt;//管理员邮箱&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum3&quot;&gt;   3:&lt;/span&gt;     $parent_comment=get_comment($parent_id);&lt;span style=&quot;color: #008000&quot;&gt;//获取被回复人（或叫父级评论）相关信息&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum4&quot;&gt;   4:&lt;/span&gt;     $author_email=$comment-&amp;gt;comment_author_email;&lt;span style=&quot;color: #008000&quot;&gt;//评论人邮箱&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum5&quot;&gt;   5:&lt;/span&gt;     $to = trim($parent_comment-&amp;gt;comment_author_email);&lt;span style=&quot;color: #008000&quot;&gt;//被回复人邮箱&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum6&quot;&gt;   6:&lt;/span&gt;     $spam_confirmed = $comment-&amp;gt;comment_approved;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum7&quot;&gt;   7:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; ($spam_confirmed != &lt;span style=&quot;color: #006080&quot;&gt;'spam'&lt;/span&gt; &amp;amp;&amp;amp; $to != $admin_email &amp;amp;&amp;amp; $to != $author_email) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum8&quot;&gt;   8:&lt;/span&gt;         ....&lt;span style=&quot;color: #008000&quot;&gt;//自由发挥&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum9&quot;&gt;   9:&lt;/span&gt;         wp_mail( $to, $subject, $message, $headers );&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum10&quot;&gt;  10:&lt;/span&gt;     }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum11&quot;&gt;  11:&lt;/span&gt; }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;至此，就完美解决了邮件发送混乱这一问题。你可以在我这里测试，你的任何回复都会准确无误的发送至你要回复的人。&lt;/p&gt;
&lt;p&gt;需要注意的是，对评论内容进行匹配@回复相关内容时，你的@回复需要符合上面正则里的规则。我建议，在向评论框里添加@回复时，依照此格式 &lt;/p&gt;
&lt;div style=&quot;border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px&quot; id=&quot;codeSnippetWrapper&quot;&gt;
&lt;div style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum1&quot;&gt;   1:&lt;/span&gt; &amp;lt;a href=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;comment-&amp;quot;&lt;/span&gt;$id&amp;gt;@XXX &amp;lt;/a&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;你不用画蛇添足去往里面添加什么rel=”nofollow”，因为wordpress会自动给评论里的链接添加这一属性。&lt;/p&gt;
&lt;p&gt;然后，当然，只以上部分两段代码就完了吗？如果有人引用了另外一条带@回复的评论，是不是也应该先剥离&amp;lt;blockquote&amp;gt;标签内容里的内容呢？否则，被引用人所回复的那个人不是也会被发送一封邮件吗？这些不是本文内容，所以不在此讨论，仅作提醒。&lt;/p&gt;
&lt;hr /&gt;&lt;strong&gt;转载注明本文地址,谢谢&lt;/strong&gt;。 &lt;/p&gt;
&lt;h4 class=&quot;related_post_title&quot;&gt;&lt;span class=&quot;now&quot;&gt;Related Posts&lt;/span&gt;&lt;/h4&gt;&lt;div class=&quot;tags&quot;&gt;More Articles about: &lt;a href='http://www.qiqiboy.com/tags/email' rel='tag'&gt;email&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/wordpress' rel='tag'&gt;WordPress&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/%e5%b5%8c%e5%a5%97' rel='tag'&gt;嵌套&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/%e7%a8%8b%e5%ba%8f' rel='tag'&gt;程序&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/%e8%af%84%e8%ae%ba' rel='tag'&gt;评论&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/%e9%82%ae%e4%bb%b6' rel='tag'&gt;邮件&lt;/a&gt;&lt;/div&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/07/07/perfect-solution-wordpress-nested-layers-deep-back-problems.html&quot; title=&quot;完美解决WordPress嵌套回复的层深问题（无限嵌套）&amp;lt;一&amp;gt;&quot;&gt;完美解决WordPress嵌套回复的层深问题（无限嵌套）&amp;lt;一&amp;gt;&lt;/a&gt; (50)&lt;br /&gt;&lt;small&gt;很久以前看到过此篇文章《JQuery为WordPress的嵌套回复添加@reply功能》，文中所讲方法也很简单，就是利用jQuery的 克隆功能（clone()）将最后一层的父级评论的回复按钮给copy到最后一层...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/31/chinese-circle-surrounding-wordpress-spam-fun.html&quot; title=&quot;围观wordpress中文圈内好玩的spam&quot;&gt;围观wordpress中文圈内好玩的spam&lt;/a&gt; (94)&lt;br /&gt;&lt;small&gt;
类型九，两个蠢蛋型



你老板够蠢，居然不知道你在假装工作，你更蠢，明知道他在假装付你薪水，还为他工作浪费时间。...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/13/ever-present-sidebar-instant-recovery-capabilities-comments.html&quot; title=&quot;【原理指导篇】无时不在的评论 侧边栏即时回复功能&quot;&gt;【原理指导篇】无时不在的评论 侧边栏即时回复功能&lt;/a&gt; (24)&lt;br /&gt;&lt;small&gt;
这个表单插入到页面上你有两种选择，一是预先在页面上输出一个完整的评论表单，如在footer.php处，注意要在&amp;lt;body&amp;gt;标签闭合前，然后设置display:none，使之在页面上隐藏。二是直接...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/05/added-edit-trackback-style-in-the-code.html&quot; title=&quot;补充《修改trackback样式，统一评论外观》中代码&quot;&gt;补充《修改trackback样式，统一评论外观》中代码&lt;/a&gt; (33)&lt;br /&gt;&lt;small&gt;导航：#trackbacks代码&amp;#160; &amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; #代码解释   在《 修改trackback样式，统一评论外观 》中，我只是说了我对trackbacks的样式处理，并没有贴出代码，当然，原...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/07/31/ajax-comments-amendment-on-a-small-problem.html&quot; title=&quot;修正关于Ajax comments的一个小问题&quot;&gt;修正关于Ajax comments的一个小问题&lt;/a&gt; (39)&lt;br /&gt;&lt;small&gt;很多人都用willin的Ajax comments，确实是一个非常好的功能，我也一直在用。

我用的版本还是很早期的版本了，期间willin进行了多次修改升级，我一直没动，甚至换了现在新主题还是使...&lt;/small&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;声明:&lt;/strong&gt; 本站遵循 &lt;a href=&quot;http:\/\/creativecommons.org/licenses/by-nc-sa/3.0/&quot;&gt;署名-非商业性使用-相同方式共享 3.0&lt;/a&gt; 共享协议. 转载请注明转自 &lt;a href=&quot;http://www.qiqiboy.com&quot;&gt;I'm qiqiboy !&lt;/a&gt; &lt;/p&gt; &lt;p&gt;本文地址: &lt;a href=&quot;http://qiqi.boy.im/7n&quot;&gt;http://qiqi.boy.im/7n&lt;a&gt;&lt;/p&gt;&lt;span style=&quot;background:#cc5566;color:#fffff;&quot;&gt;&lt;h4&gt;Look, this post is replyed so hot, let's go O(∩_∩)O~.&lt;/h4&gt;&lt;/span&gt;&lt;h3&gt;Related comments&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;2010年08月29日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/23/perfect-solution-wordpress-unlimited-nested-2.html#comment-4820&quot;&gt;david&lt;/a&gt;say: 怎么看起来有点乱啊。。
我觉得我博客上的那个嵌套还比较清淅呀。。嘿嘿。。&lt;/li&gt;&lt;li&gt;2010年08月28日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/23/perfect-solution-wordpress-unlimited-nested-2.html#comment-4783&quot;&gt;Bubuto&lt;/a&gt;say: 偶是来学习的，你这里可真漂亮&lt;/li&gt;&lt;li&gt;2010年08月27日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/23/perfect-solution-wordpress-unlimited-nested-2.html#comment-4747&quot;&gt;QiQiBoY&lt;/a&gt;say: &lt;a href=&quot;#comment-4746&quot; rel=&quot;nofollow&quot;&gt;@学夫子 &lt;/a&gt; 
emlog。。google下，原来也是个博客程序。。。 &lt;img src='http://www.qiqiboy.com/wp-includes/images/smilies/icon_smile.gif' alt=':smile:' class='wp-smiley' /&gt; &lt;/li&gt;&lt;li&gt;2010年08月27日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/23/perfect-solution-wordpress-unlimited-nested-2.html#comment-4746&quot;&gt;学夫子&lt;/a&gt;say: 感觉这个嵌套回复也不是很好看啊，感觉好乱
我也期望emlog的官方能够出来嵌套回复&lt;/li&gt;&lt;li&gt;2010年08月26日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/23/perfect-solution-wordpress-unlimited-nested-2.html#comment-4675&quot;&gt;QiQiBoY&lt;/a&gt;say: &lt;a href=&quot;#comment-4672&quot; rel=&quot;nofollow&quot;&gt;@Firm&lt;/a&gt;
对这个称号真的受宠若惊了。。。&lt;/li&gt;&lt;li&gt;2010年08月26日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/23/perfect-solution-wordpress-unlimited-nested-2.html#comment-4672&quot;&gt;Firm&lt;/a&gt;say: 真正的大师呀&lt;/li&gt;&lt;li&gt;2010年08月26日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/23/perfect-solution-wordpress-unlimited-nested-2.html#comment-4665&quot;&gt;QiQiBoY&lt;/a&gt;say: &lt;a href=&quot;#comment-4663&quot; rel=&quot;nofollow&quot;&gt;@Page &lt;/a&gt; 
现在是解决无限嵌套的遗留问题哈。。。&lt;/li&gt;&lt;li&gt;2010年08月26日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/23/perfect-solution-wordpress-unlimited-nested-2.html#comment-4663&quot;&gt;Page&lt;/a&gt;say: 无限嵌套是永恒的话题阿&lt;/li&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408666552/qiqiboy/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/qiqiboy/~7883632/408666552/5446216/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/qiqiboy/408666552/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/qiqiboy/408666552/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://www.qiqiboy.com/2010/08/23/perfect-solution-wordpress-unlimited-nested-2.html/feed</wfw:commentRss><slash:comments>72</slash:comments><description>&lt;img class=&quot;alignleft&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/07/111.png&quot; alt=&quot;wordpress嵌套&quot; title=&quot;wordpress嵌套&quot; &gt;&lt;p&gt;但是，后来出现一个问题，让我不得不重新思考无限嵌套这一方式。这个问题就是邮件回复问题。了解我实现无限嵌套原理的，应该的都知道其实在对最后一层进行回复时，是在变相的对倒数第二层进行回复。很多人可能在使用&lt;strong&gt;willin&lt;/strong&gt;修改的邮件发送方式，即是通过&lt;strong&gt;hook&lt;/strong&gt;到&lt;strong&gt;comment_post&lt;/strong&gt;，获取新评论的父级评论ID，如果ID不为0，说明这是一条子评论，然后就将邮件发送给父级评论。父级评论的邮箱是来自get_comment()函数获取数据库查询。前面已经说了，对最后一层的回复是&lt;font style=&quot;background-color: #ffff00&quot;&gt;变相地对倒数第二层进行回复&lt;/font&gt;，所以此时邮件全部发送到倒数第二层那里去了。&lt;/p&gt;

&lt;p&gt;我注意到上面的问题，来自于一次我在开发自己的ajax评论时对我在最后一层的评论进行回复测试时，结果zww跑来跟我说，收到一大堆我的邮件。我研究了一下，发现存在上述问题，在搁置了N天后，今天我终于解决了它。&lt;/p&gt;

&lt;p&gt;这个问题的解决需要换个思路，不能还是局限于通过查询一条评论的父级ID来判断需不需要发送邮件。我注意到我的每条评论中都有@回复链接，而其中的href中就包含了被回复者的评论id，所以我就从这里着手，想通过获取评论中的存在的@回复来进行邮件发送。而且这种方式，你可以一次回复多个人，比如你想在一条评论里同时回复A、B、C三个人，你只需要依次点击A、B、C下面的reply按钮（如果不想让评论框出现在这三人任何一人下方，则点击一下取消回复，评论框会回到底部，这条回复会被当做一条主评论。但是，别担心，评论框内容不会清空，你的回复依然会通过邮件发送至这三人），然后书写回复内容即可。&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408666552/qiqiboy/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/qiqiboy/~7883632/408666552/5446216/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/qiqiboy/408666552/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/qiqiboy/408666552/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>嵌套</category><category>email</category><category>评论</category><category>程序</category><category>邮件</category><category>WordPress</category><pubDate>Mon, 23 Aug 2010 23:45:37 +0800</pubDate><author>QiQiBoY</author><comments>http://www.qiqiboy.com/2010/08/23/perfect-solution-wordpress-unlimited-nested-2.html#comments</comments><guid isPermaLink="false">http://www.qiqiboy.com/2010/08/23/perfect-solution-wordpress-unlimited-nested-2.html</guid><dc:creator>QiQiBoY</dc:creator><fs:srclink>http://www.qiqiboy.com/2010/08/23/perfect-solution-wordpress-unlimited-nested-2.html</fs:srclink><fs:srcfeed>http://www.qiqiboy.com/feed</fs:srcfeed><fs:itemid>feedsky/qiqiboy/~7883632/408666552/5446216</fs:itemid></item><item><title>插件发布：边栏最新评论及ajax回复——WP RC Reply AJAX</title><link>http://item.feedsky.com/~feedsky/qiqiboy/~7883632/408666553/5446216/1/item.html</link><content:encoded>&lt;p&gt;&lt;font size=&quot;5&quot;&gt;插件下载地址：&lt;strong&gt;&lt;a href=&quot;http://wordpress.org/extend/plugins/wp-rc-reply-ajax/&quot; target=&quot;_blank&quot;&gt;&lt;font color=&quot;#ff0000&quot;&gt;&lt;u&gt;官方目录&lt;/u&gt;&lt;/font&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font style=&quot;font-size: 18pt&quot;&gt;如何使用？可以在后台添加小工具，或者直接调用相关函数，详查下文&lt;font style=&quot;background-color: #ffff00&quot;&gt;支持边栏小工具&lt;/font&gt;一栏&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font style=&quot;font-size: 18pt&quot;&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=&quot;#ff0000&quot; size=&quot;4&quot;&gt;&lt;strong&gt;文章导航&lt;font color=&quot;#0000ff&quot;&gt;：#&lt;a href=&quot;#p1&quot; target=&quot;_blank&quot;&gt;&lt;font color=&quot;#0000ff&quot;&gt;为什么使用边栏回复？&lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font style=&quot;font-size: 13.6pt&quot; size=&quot;4&quot;&gt;&lt;strong&gt;&lt;font color=&quot;#0000ff&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; #&lt;/font&gt;&lt;a href=&quot;#p2&quot; target=&quot;_blank&quot;&gt;&lt;font color=&quot;#0000ff&quot;&gt;防止重复评论&lt;/font&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font style=&quot;font-size: 13.6pt&quot;&gt;&lt;strong&gt;&lt;font color=&quot;#0000ff&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; #&lt;/font&gt;&lt;a href=&quot;#p3&quot; target=&quot;_blank&quot;&gt;&lt;font color=&quot;#0000ff&quot;&gt;完美无限嵌套&lt;/font&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font style=&quot;font-size: 13.6pt&quot;&gt;&lt;strong&gt;&lt;font color=&quot;#0000ff&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; #&lt;/font&gt;&lt;a href=&quot;#p4&quot; target=&quot;_blank&quot;&gt;&lt;font color=&quot;#0000ff&quot;&gt;支持widget小工具&lt;/font&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font style=&quot;font-size: 13.6pt&quot;&gt;&lt;strong&gt;&lt;font color=&quot;#0000ff&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; #&lt;/font&gt;&lt;a href=&quot;#p5&quot; target=&quot;_blank&quot;&gt;&lt;font color=&quot;#0000ff&quot;&gt;其他说明&lt;/font&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font style=&quot;font-size: 13.6pt&quot;&gt;&lt;strong&gt;&lt;font color=&quot;#0000ff&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; #&lt;/font&gt;&lt;a href=&quot;#p6&quot; target=&quot;_blank&quot;&gt;&lt;font color=&quot;#0000ff&quot;&gt;插件简介&lt;/font&gt;&lt;/a&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;之前在&lt;a href=&quot;http://www.qiqiboy.com/2010/08/10/ajax-version-comment-reply-feature-immediately-sidebar.html&quot; target=&quot;_blank&quot;&gt;《&lt;strong&gt;&lt;u&gt;Ajax版即时侧边栏评论回复功能&lt;/u&gt;&lt;/strong&gt;&lt;/a&gt;》一文中我已经提到了我的侧边栏回复，我将其稍作改造，做成了今天的这个插件，名字叫&lt;a href=&quot;http://www.qiqiboy.com/plugins/wp-rc-reply-ajax&quot; target=&quot;_blank&quot;&gt;&lt;font color=&quot;#ff0000&quot;&gt;WP RC Reply AJAX&lt;/font&gt;&lt;/a&gt;，全称是wordpress recent comments reply ajax。&lt;/p&gt;
&lt;p&gt;从名字上看，第一个单词——&lt;strong&gt;wordpress&lt;/strong&gt;，顾名思义，就是为wordpress而开发。&lt;strong&gt;recent comments&lt;/strong&gt;，最新评论，即是可以在侧边栏显示最新评论，这个功能和mg12的wp-recentcomments插件几乎一模一样，支持ajax翻页、查看单条评论。当然，mg12的插件设置很丰富，而且也有jQuery版本，可以在翻页时实现一些特效。我的在第一版中就只提供了基本的功能，特效并未添加，以后的版本中会更新上去。当然，都是原生JS，不会有jQuery版本。&lt;strong&gt;reply&lt;/strong&gt;，表明了这个插件最重要的一个功能，即是侧边栏回复。还不知道此为何物的同学，可以移步到我的侧边栏，点击任一评论后边的&lt;strong&gt;右向双箭头&lt;/strong&gt;，进入单条评论查看模式，会出现一个回复按钮，点击之后就可以再侧边栏对这条评论进行回复了。&lt;strong&gt;ajax&lt;/strong&gt;，即是评论支持ajax方式提交。这项是不可选的，如果浏览器支持JavaScript，那么就一定是ajax方式提交的，如果不支持，那么还可以以普通方式提交。&lt;/p&gt;
&lt;h3 id=&quot;p1&quot;&gt;为什么要使用侧边栏回复&lt;/h3&gt;
&lt;p&gt;也许有人会这么问。我们博客每天都有人留言评论，但是这些评论并不都在同一个页面。而通过边栏的最新评论，我们可以对最新评论一目了然。如果你的最新评论支持ajax翻页查看，那就更好了，无论新收到了多少条评论，都可以通过翻页方式查看到，不必到后台，更不必一页一页的去翻找评论了。同时，我的插件提供了侧边栏回复功能，也就是说你在翻看这些评论的时候，就可以即时对它们进行回复了。而且是通过ajax方式，你回复完一条，可以点击返回按钮，继续对下一条评论进行回复。这些操作中，你并不需要跳转页面，因为一切都是通过ajax异步方式进行的。&lt;/p&gt;
&lt;h4 id=&quot;p2&quot;&gt;防止重复评论&lt;/h4&gt;
&lt;p&gt;而且，我提供了简单的防止重复回复的功能。边栏的评论一条接一条，我们可能在连续的回复过程中会记不清已经对谁回复过了，这样就会出现对同一条评论回复多次的情况。但是，不用担心，插件已考虑到此情况，回复过的评论在你试图再次回复时，会出现提醒。&lt;/p&gt;
&lt;h4 id=&quot;p3&quot;&gt;完美嵌套，无限嵌套式回复&lt;/h4&gt;
&lt;p&gt;很多人使用嵌套评论。因为在侧边栏显示的评论，我们很难判断其到底是不是嵌套的最后一层了，如果对最后一层的评论回复了，那么就是无效的嵌套回复，这条回复会被当做一条全新的主评论显示。我的插件解决了这一问题，你可以在边栏放心的进行回复，无论你使不使用嵌套，都不必担心，插件会完美解决你的嵌套难题。&lt;/p&gt;
&lt;p&gt;回复会自动添加@回复，免去你折腾麻烦。&lt;/p&gt;
&lt;h4&gt;提高访客体验，折叠隐藏信息输入框&lt;/h4&gt;
&lt;p&gt;对于回复时插入的回复框，支持老访客折叠信息框，提高访客体验。同时支持登陆者隐藏信息框。&lt;/p&gt;
&lt;h4 id=&quot;p4&quot;&gt;支持widget小工具&lt;/h4&gt;
&lt;p&gt;&lt;strong&gt;你可以直接在后台小工具设置页面添加“边栏回复小工具”到你的边栏。&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;如果不想使用小工具，我也提供了一个输出函数 &lt;/strong&gt;&lt;/p&gt;
&lt;div style=&quot;border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px&quot; id=&quot;codeSnippetWrapper&quot;&gt;
&lt;div style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;strong&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum1&quot;&gt;   1:&lt;/span&gt; &amp;lt;?php wp_rc_reply_echo ($number=8); ?&amp;gt;&lt;/strong&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;函数只有一个参数，即是显示的评论条数。其直接在要显示的地方进行调用即可。其它参数，如头像大小，截断长度等，请到后台插件设置页面进行设置。&lt;/strong&gt;&lt;/p&gt;
&lt;h4 id=&quot;p5&quot;&gt;其它说明&lt;/h4&gt;
&lt;p&gt;&lt;img style=&quot;margin: 0px 10px 0px 0px; display: inline&quot; title=&quot;捕获&quot; alt=&quot;捕获&quot; align=&quot;left&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/1de9fb000bac.png&quot; width=&quot;309&quot; height=&quot;93&quot; /&gt;后台设置中有一个“太短的评论自动换行”。这个如果不清楚是做什么的，就不要勾选，不要管它即可。我在此简单说明一下，这是我插件中的一个小功能，即是遇到很短的评论，不足设置的截断长度一般的评论，会自动在评论者姓名和评论内容之间加上换行符。当然，这一前提是你设置的头像大小大于32，因为大于32，一般头像右边可以显示两行评论内容（如我的最新评论），但是如果是太短的评论，则只能占据一行，那么下一行就会空了，此时就会显得不太美观，所以需要加上一个换行符，是评论内容在第二行显示。效果请查看我的边栏最新评论，注意观察一条长评论和一条段评论的显示上的区别。也可以参看左上角的截图，winy的评论是在第一行就开始显示的，而liuqiqi的评论却是在第二行显示！！因为liuqiqi的评论太短不足一行，如果显示在第一行，那么第二行就会留下空白，看起来就不那么紧凑了。&lt;/p&gt;
&lt;p&gt;另外需要说明的是，插件自带了一个css文件，主要是用来控制翻页按钮的摆放，因为担心一些人对css不太了解，不能将三个按钮很好的摆在一条线上。其它地方都没用css美化，所以需要使用者自行根据自己主题进行些许css设置。&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;inpostad&quot;&gt;&lt;img src=&quot;http://www.qiqiboy.com/wp-content/themes/bluePaled/img/feedad.gif&quot; /&gt;&lt;a href=&quot;http://www.qiqiboy.com/bluepaled&quot; title=&quot;点击下载bluePaled&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://www.qiqiboy.com/wp-content/themes/bluePaled/img/adtest.png&quot; alt=&quot;点击下载bluePaled&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;下面是对此插件的一些描述：&lt;/p&gt;
&lt;blockquote id=&quot;p6&quot;&gt;
&lt;p&gt;&lt;strong&gt;Plugin Name&lt;/strong&gt;: WP RC Reply AJAX &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Plugin URI&lt;/strong&gt;: &lt;a href=&quot;http://www.qiqiboy.com/plugins/&quot;&gt;http://www.qiqiboy.com/plugins/&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Description&lt;/strong&gt;: 1. show recent comments at sidebar. 2. with it, you can reply everyone from widget sidebar by Ajax type. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Version&lt;/strong&gt;: 1.0.0 &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Author&lt;/strong&gt;: QiQiBoY &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Author URI&lt;/strong&gt;: &lt;a href=&quot;http://www.qiqiboy.com&quot;&gt;http://www.qiqiboy.com&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Download:&lt;/strong&gt; &lt;a title=&quot;http://wordpress.org/extend/plugins/little-wp-to-twitter/&quot; href=&quot;http://wordpress.org/extend/plugins/wp-rc-reply-ajax/&quot;&gt;http://wordpress.org/extend/plugins/wp-rc-reply-ajax/&lt;/a&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;strong&gt;插件名称&lt;/strong&gt;：WP RC Reply AJAX （最新评论及侧边栏回复） &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;插件描述&lt;/strong&gt;：显示最新评论以及在侧边栏回复评论 &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;当前版本&lt;/strong&gt;：1.0.0 &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;插件作者&lt;/strong&gt;：QiQiBoY &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;插件简介&lt;/strong&gt;：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;在侧边栏以小工具形式显示最新评论，支持ajax查看、翻页。 &lt;/li&gt;
&lt;li&gt;支持在边栏即时回复评论。（点击一条评论右边的双向箭头，进入单条评论查看模式，然后即可点击右边的回复按钮进行回复操作） &lt;/li&gt;
&lt;li&gt;边栏回复支ajax方式提交，无需刷新页面，可连续回复。 &lt;/li&gt;
&lt;li&gt;评论提交前可进行简单的错误检测，减少服务器响应消耗。 &lt;/li&gt;
&lt;li&gt;边栏回复支持嵌套评论、支持无限级嵌套。 &lt;/li&gt;
&lt;li&gt;边栏回复自动添加@回复。 &lt;/li&gt;
&lt;li&gt;防重复评论设置，以免评论过快，对一些评论进行重复回复。 &lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;font color=&quot;#ff0000&quot;&gt;插件下载&lt;/font&gt;&lt;/strong&gt;：&lt;strong&gt;&lt;a href=&quot;http://wordpress.org/extend/plugins/wp-rc-reply-ajax/&quot; target=&quot;_blank&quot;&gt;官方目录&lt;/a&gt;&lt;/strong&gt; &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;插件使用&lt;/strong&gt;：方法一：直接在后台设置相关选项，然后在添加小工具处向边栏添加“边栏回复小工具”。&lt;/p&gt;
&lt;p&gt;方法二：在要显示最新评论的地方（如边栏某个位置或者新建一个页面模板），直接调用&lt;/p&gt;
&lt;div style=&quot;border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px&quot; id=&quot;codeSnippetWrapper&quot;&gt;
&lt;div style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum1&quot;&gt;   1:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt;/*&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum2&quot;&gt;   2:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt; *输出打印最新评论列表&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum3&quot;&gt;   3:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt; */&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum4&quot;&gt;   4:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum5&quot;&gt;   5:&lt;/span&gt; &amp;lt;?php wp_rc_reply_echo(&lt;span style=&quot;color: #006080&quot;&gt;'number=&amp;amp;length=&amp;amp;size=&amp;amp;at='&lt;/span&gt;); ?&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum6&quot;&gt;   6:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum7&quot;&gt;   7:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt;/*此函数支持四个可选参数，此处的参数设置会覆盖掉后台的设置。&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum8&quot;&gt;   8:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt; *number是设置评论数量，默认为8；&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum9&quot;&gt;   9:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt; *length是设置评论阶段长度，默认为30；&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum10&quot;&gt;  10:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt; *size是设置头像的尺寸，默认为32；&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum11&quot;&gt;  11:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt; *at是设置自动添加@回复，其值表示从第几层开始加入@回复。默认为0,0表示不添加@回复。&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum12&quot;&gt;  12:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt; *这四个参数的值都是整数。&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum13&quot;&gt;  13:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt; *如果不清楚参数含义，请不要盲目添加参数。如你可以直接使用&amp;lt;?php wp_rc_reply_echo(); ?&amp;gt;或&amp;lt;?php wp_rc_reply_echo('number=10&amp;amp;length=25'); ?&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum14&quot;&gt;  14:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt; *参数是可以省略的，不区分先后位置。&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum15&quot;&gt;  15:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt; */&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/div&gt;
&lt;/p&gt;&lt;/div&gt;
&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;更多插件使用信息：请点击&lt;a href=&quot;http://www.qiqiboy.com/2010/08/20/wordpress-plugin-wp-rc-reply-ajax.html&quot;&gt;浏览此文&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;img style=&quot;border-bottom: rgb(170,170,170) 2px solid; border-left: rgb(170,170,170) 2px solid; display: inline; border-top: rgb(170,170,170) 2px solid; border-right: rgb(170,170,170) 2px solid&quot; class=&quot;wlDisabledImage sided&quot; title=&quot;边栏回复&quot; alt=&quot;边栏回复&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/e7eecd6c520f.png&quot; width=&quot;274&quot; height=&quot;240&quot; /&gt;&lt;img style=&quot;display: inline&quot; title=&quot;screenshot-2&quot; alt=&quot;screenshot-2&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/screenshot2.png&quot; width=&quot;278&quot; height=&quot;204&quot; /&gt; &lt;/p&gt;
&lt;p&gt;最后还要赞一下官方的速度，下午四点的时候我插件开发接近尾声，然后向官方提交了插件地址申请，然后在大概晚上九点半的时候便收到了通过邮件，我便立马将插件上传了官方目录。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;font color=&quot;#9bbb59&quot; size=&quot;4&quot;&gt;******有觉得好用的同学欢迎在自己博客中推荐一下O(∩_∩)O~********&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;h4 class=&quot;related_post_title&quot;&gt;&lt;span class=&quot;now&quot;&gt;Related Posts&lt;/span&gt;&lt;/h4&gt;&lt;div class=&quot;tags&quot;&gt;More Articles about: &lt;a href='http://www.qiqiboy.com/tags/ajax' rel='tag'&gt;ajax&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/plugins' rel='tag'&gt;plugins&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/wordpress' rel='tag'&gt;WordPress&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/wp-rc-reply-ajax' rel='tag'&gt;WP-RC-Reply-AJAX&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/%e6%8f%92%e4%bb%b6' rel='tag'&gt;插件&lt;/a&gt;&lt;/div&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/04/01/plugin-little-wp-to-twitter.html&quot; title=&quot;插件发布：little wp to twitter&quot;&gt;插件发布：little wp to twitter&lt;/a&gt; (47)&lt;br /&gt;&lt;small&gt;#缓推时间 —— 即当发布日之后，一条更新信息已经同步到twitter，但此后你可能会对日志稍作修改，因为我们很少只点击一次 发布 就完成日志发布的，发布后对日志进行小敲小打是...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/16/visitor-information-tencent-suspended-micro-display.html&quot; title=&quot;仿腾讯微博式访客信息悬浮显示（JavaScript &amp;#038; ajax）&quot;&gt;仿腾讯微博式访客信息悬浮显示（JavaScript &amp;#038; ajax）&lt;/a&gt; (95)&lt;br /&gt;&lt;small&gt;效果如你在我博客评论列表处，你可以直接点击评论者头像，或者将鼠标放到头像上2s，就会出现loading图标，从后台获取数据后就会出现一个长方形框，显示了当前评论者的头像，姓...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/14/introduce-my-blog-theme-for-you-2.html&quot; title=&quot;【SimPaled篇】Introduce My Blog Theme For You&quot;&gt;【SimPaled篇】Introduce My Blog Theme For You&lt;/a&gt; (73)&lt;br /&gt;&lt;small&gt;  声明：博客顶部仿自微软全球MSN首页(http://www.msn.com)，仅供本人学习研究之用，未用之牟利。 

  此主题支持CMS式首页与普通文章列表式首页风格。CMS首页绝大部分元素采用ajax方式装...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/13/ever-present-sidebar-instant-recovery-capabilities-comments.html&quot; title=&quot;【原理指导篇】无时不在的评论 侧边栏即时回复功能&quot;&gt;【原理指导篇】无时不在的评论 侧边栏即时回复功能&lt;/a&gt; (24)&lt;br /&gt;&lt;small&gt;
这个表单插入到页面上你有两种选择，一是预先在页面上输出一个完整的评论表单，如在footer.php处，注意要在&amp;lt;body&amp;gt;标签闭合前，然后设置display:none，使之在页面上隐藏。二是直接...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/10/ajax-version-comment-reply-feature-immediately-sidebar.html&quot; title=&quot;【效果测试展示篇】Ajax版即时侧边栏评论回复功能&quot;&gt;【效果测试展示篇】Ajax版即时侧边栏评论回复功能&lt;/a&gt; (68)&lt;br /&gt;&lt;small&gt;自写了《博客加入若干Ajax效果》以来，在博客上陆续添加启用了一些ajax效果，一方面丰富博客体验，一方面也当做练习学习js的一种实践吧。昨天的时候，将wilin版的侧边栏最新评论...&lt;/small&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;声明:&lt;/strong&gt; 本站遵循 &lt;a href=&quot;http:\/\/creativecommons.org/licenses/by-nc-sa/3.0/&quot;&gt;署名-非商业性使用-相同方式共享 3.0&lt;/a&gt; 共享协议. 转载请注明转自 &lt;a href=&quot;http://www.qiqiboy.com&quot;&gt;I'm qiqiboy !&lt;/a&gt; &lt;/p&gt; &lt;p&gt;本文地址: &lt;a href=&quot;http://qiqi.boy.im/7m&quot;&gt;http://qiqi.boy.im/7m&lt;a&gt;&lt;/p&gt;&lt;span style=&quot;background:#cc5566;color:#fffff;&quot;&gt;&lt;h4&gt;Look, this post is replyed so hot, let's go O(∩_∩)O~.&lt;/h4&gt;&lt;/span&gt;&lt;h3&gt;Related comments&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;2010年08月30日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/20/wordpress-plugin-wp-rc-reply-ajax.html#comment-4860&quot;&gt;菠萝&lt;/a&gt;say: &lt;a href=&quot;#comment-4859&quot; rel=&quot;nofollow&quot;&gt;@liuqiqi &lt;/a&gt; 
嗯，我再去看看。&lt;/li&gt;&lt;li&gt;2010年08月30日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/20/wordpress-plugin-wp-rc-reply-ajax.html#comment-4859&quot;&gt;liuqiqi&lt;/a&gt;say: &lt;a href=&quot;#comment-4858&quot; rel=&quot;nofollow&quot;&gt;@菠萝&lt;/a&gt;
图片上传插件小邪貌似做过呀。。。。。你问问他。。。&lt;/li&gt;&lt;li&gt;2010年08月30日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/20/wordpress-plugin-wp-rc-reply-ajax.html#comment-4858&quot;&gt;菠萝&lt;/a&gt;say: &lt;a href=&quot;#comment-4586&quot; rel=&quot;nofollow&quot;&gt;@QiQiBoY &lt;/a&gt; 
目前好像使用得不多，但确实是我进我的博客后台，第一个看到这个插件的，居然是你的，厉害!!

对了，QiQi，我有个代码，能不能简单实现以插件的形式插入后台？

或是你能不能开发一个图片上传插件？&lt;/li&gt;&lt;li&gt;2010年08月29日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/20/wordpress-plugin-wp-rc-reply-ajax.html#comment-4823&quot;&gt;david&lt;/a&gt;say: 这个好像很方便哦。。支持下。&lt;/li&gt;&lt;li&gt;2010年08月28日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/20/wordpress-plugin-wp-rc-reply-ajax.html#comment-4780&quot;&gt;QiQiBoY&lt;/a&gt;say: &lt;a href=&quot;#comment-4777&quot; rel=&quot;nofollow&quot;&gt;@羽中&lt;/a&gt;
适当利用，提高访客体验。。&lt;/li&gt;&lt;li&gt;2010年08月28日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/20/wordpress-plugin-wp-rc-reply-ajax.html#comment-4777&quot;&gt;羽中&lt;/a&gt;say: 有点意思，话说ajax太多了也不好啊&lt;/li&gt;&lt;li&gt;2010年08月27日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/20/wordpress-plugin-wp-rc-reply-ajax.html#comment-4702&quot;&gt;QiQiBoY&lt;/a&gt;say: &lt;a href=&quot;#comment-4701&quot; rel=&quot;nofollow&quot;&gt;@静夜燃香 &lt;/a&gt; 
 &lt;img src='http://www.qiqiboy.com/wp-includes/images/smilies/icon_twisted.gif' alt=':twisted:' class='wp-smiley' /&gt;  。。。&lt;/li&gt;&lt;li&gt;2010年08月27日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/20/wordpress-plugin-wp-rc-reply-ajax.html#comment-4701&quot;&gt;静夜燃香&lt;/a&gt;say: &lt;a href=&quot;#comment-4700&quot; rel=&quot;nofollow&quot;&gt;@QiQiBoY &lt;/a&gt; 
哈哈，搞定了，刚刚加错地方了……= =
因为这边变成了隔行显示，所以它跑去了283行……&lt;/li&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408666553/qiqiboy/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/qiqiboy/~7883632/408666553/5446216/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/qiqiboy/408666553/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/qiqiboy/408666553/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://www.qiqiboy.com/2010/08/20/wordpress-plugin-wp-rc-reply-ajax.html/feed</wfw:commentRss><slash:comments>135</slash:comments><description>&lt;img style=&quot;border-bottom: rgb(170,170,170) 2px solid; border-left: rgb(170,170,170) 2px solid; display: inline; border-top: rgb(170,170,170) 2px solid; border-right: rgb(170,170,170) 2px solid&quot; class=&quot;wlDisabledImage sided&quot; title=&quot;边栏回复&quot; alt=&quot;边栏回复&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/e7eecd6c520f.png&quot; width=&quot;274&quot; height=&quot;240&quot; /&gt;&lt;p&gt;从名字上看，第一个单词——&lt;strong&gt;wordpress&lt;/strong&gt;，顾名思义，就是为wordpress而开发。&lt;strong&gt;recent comments&lt;/strong&gt;，最新评论，即是可以在侧边栏显示最新评论，这个功能和mg12的wp-recentcomments插件几乎一模一样，支持ajax翻页、查看单条评论。当然，mg12的插件设置很丰富，而且也有jQuery版本，可以在翻页时实现一些特效。我的在第一版中就只提供了基本的功能，特效并未添加，以后的版本中会更新上去。当然，都是原生JS，不会有jQuery版本。&lt;strong&gt;reply&lt;/strong&gt;，表明了这个插件最重要的一个功能，即是侧边栏回复。还不知道此为何物的同学，可以移步到我的侧边栏，点击任一评论后边的&lt;strong&gt;右向双箭头&lt;/strong&gt;，进入单条评论查看模式，会出现一个回复按钮，点击之后就可以再侧边栏对这条评论进行回复了。&lt;strong&gt;ajax&lt;/strong&gt;，即是评论支持ajax方式提交。这项是不可选的，如果浏览器支持JavaScript，那么就一定是ajax方式提交的，如果不支持，那么还可以以普通方式提交。&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408666553/qiqiboy/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/qiqiboy/~7883632/408666553/5446216/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/qiqiboy/408666553/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/qiqiboy/408666553/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>WP-RC-Reply-AJAX</category><category>插件</category><category>plugins</category><category>ajax</category><category>WordPress</category><pubDate>Fri, 20 Aug 2010 22:03:27 +0800</pubDate><author>QiQiBoY</author><comments>http://www.qiqiboy.com/2010/08/20/wordpress-plugin-wp-rc-reply-ajax.html#comments</comments><guid isPermaLink="false">http://www.qiqiboy.com/2010/08/20/wordpress-plugin-wp-rc-reply-ajax.html</guid><dc:creator>QiQiBoY</dc:creator><fs:srclink>http://www.qiqiboy.com/2010/08/20/wordpress-plugin-wp-rc-reply-ajax.html</fs:srclink><fs:srcfeed>http://www.qiqiboy.com/feed</fs:srcfeed><fs:itemid>feedsky/qiqiboy/~7883632/408666553/5446216</fs:itemid></item><item><title>仿腾讯微博式访客信息悬浮显示（JavaScript &amp; ajax）</title><link>http://item.feedsky.com/~feedsky/qiqiboy/~7883632/408666554/5446216/1/item.html</link><content:encoded>&lt;p&gt;&lt;img style=&quot;display: inline&quot; class=&quot;wlDisabledImage&quot; title=&quot;12&quot; alt=&quot;12&quot; align=&quot;right&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/123.png&quot; width=&quot;240&quot; height=&quot;90&quot; /&gt;腾讯微博后来居上，据说用户活跃度已超新浪微博。&lt;/p&gt;
&lt;p&gt;腾讯微博页有一点很让我喜欢，那就是将鼠标放到用户头像上一会儿，就会在头像上出现一个小的窗口，显示用户的一些资料及其它信息。如右图，这样可以及时方便快速的查看自己及其他人一些相关的信息。&lt;/p&gt;
&lt;p&gt;所以我便copy了它的这个功能，整合到了wordpress主题上。&lt;/p&gt;
&lt;p&gt;&lt;img style=&quot;display: inline&quot; class=&quot;wlDisabledImage&quot; title=&quot;434&quot; alt=&quot;434&quot; align=&quot;right&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/4341.png&quot; width=&quot;378&quot; height=&quot;206&quot; /&gt;效果如你在我博客评论列表处，你可以直接点击评论者头像，或者将鼠标放到头像上2s，就会出现loading图标，从后台获取数据后就会出现一个长方形框，显示了当前评论者的头像，姓名，邮箱和所用的操作系统、浏览器等信息。另外头像下方是评论者所用的邮箱在我博客所发表过的评论的总数。邮箱我将前三位转为*号了，因为隐私的关系。其实这种后期请求过来的数据，是不会被搜索引擎及各种抓取工具捕获的，所以不存在邮箱账号会被采集到，被滥发垃圾邮件的危险，我即使直接显示了也没关系的。&lt;/p&gt;
&lt;p&gt;前台JS处理时还要注意一点，那就是避免重复查询，因为一个页面上可能出现一个用户评论过多次的情况，那么如果鼠标放到这个用户的每条评论的头像上都向服务器发送查询的话，那么就很浪费了。但是，这些访客又没有在博客注册，没有一个唯一的ID能代表其身份。唯一可以证明其身份的就是邮箱了，但是邮箱又不能直接公布，所以我将每个访客的邮箱通过md5加密后的字串的前十位当做这个访客的唯一ID。在对一个访客信息查询后，将这个显示信息div的id标记为访客ID。如果后面再将鼠标放到同一位访客头像上，则会在页面上寻找这个具有唯一id值的信息显示div，如果找到了就直接显示这个div了，不必再次发送查询。其实腾讯微博的做法是在每条微博的&lt;strong&gt;&amp;lt;li&amp;gt;&lt;/strong&gt;标签中加入一个具有唯一字串的&lt;strong&gt;rel&lt;/strong&gt;属性，每个用户具有唯一的字串。它是通过这个字串来标识不同的用户的。     &lt;br /&gt;这个到底该怎么做呢？首先当然是获取页面上每个评论了。然后再对头像上的鼠标移上事件设置动作监听addcard &lt;/p&gt;
&lt;div style=&quot;border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px&quot; id=&quot;codeSnippetWrapper&quot;&gt;
&lt;div style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum1&quot;&gt;   1:&lt;/span&gt; (&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(){&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum2&quot;&gt;   2:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt;//一些打包的简便方法&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum3&quot;&gt;   3:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; $(id) {&lt;span style=&quot;color: #008000&quot;&gt;//根据ID获取对象&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum4&quot;&gt;   4:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; document.getElementById(id)&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum5&quot;&gt;   5:&lt;/span&gt;     }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum6&quot;&gt;   6:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; $$(c, t, p) {&lt;span style=&quot;color: #008000&quot;&gt;//根据class值获取对象数组&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum7&quot;&gt;   7:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; at = p.getElementsByTagName(t);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum8&quot;&gt;   8:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; ms = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; Array();&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum9&quot;&gt;   9:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; r = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; RegExp(&lt;span style=&quot;color: #006080&quot;&gt;'(^|\\s)'&lt;/span&gt; + c.replace(/\-/g, &lt;span style=&quot;color: #006080&quot;&gt;'\\-'&lt;/span&gt;) + &lt;span style=&quot;color: #006080&quot;&gt;'(\\s|$)'&lt;/span&gt;);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum10&quot;&gt;  10:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; e;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum11&quot;&gt;  11:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;for&lt;/span&gt; (&lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; i = 0; i &amp;lt; at.length; i++) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum12&quot;&gt;  12:&lt;/span&gt;             e = at[i];&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum13&quot;&gt;  13:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (r.test(e.className)) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum14&quot;&gt;  14:&lt;/span&gt;                 ms.push(e)&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum15&quot;&gt;  15:&lt;/span&gt;             }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum16&quot;&gt;  16:&lt;/span&gt;         }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum17&quot;&gt;  17:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; ms&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum18&quot;&gt;  18:&lt;/span&gt;     }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum19&quot;&gt;  19:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; removeNode(obj){&lt;span style=&quot;color: #008000&quot;&gt;//移除页面某一节点&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum20&quot;&gt;  20:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt;(typeof obj == &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;string&amp;quot;&lt;/span&gt;)$(obj).parentNode.removeChild($(obj));&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum21&quot;&gt;  21:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;else&lt;/span&gt; obj.parentNode.removeChild(obj);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum22&quot;&gt;  22:&lt;/span&gt;     }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum23&quot;&gt;  23:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; insertBe(obj,tar){&lt;span style=&quot;color: #008000&quot;&gt;//在一个节点前插入另一个节点&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum24&quot;&gt;  24:&lt;/span&gt;         tar.parentNode.insertBefore(obj,tar);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum25&quot;&gt;  25:&lt;/span&gt;     }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum26&quot;&gt;  26:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; insertAf(obj,tar){&lt;span style=&quot;color: #008000&quot;&gt;//在一个节点后插入另一个节点&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum27&quot;&gt;  27:&lt;/span&gt;         tar.parentNode.insertBefore(obj,tar.nextSibling);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum28&quot;&gt;  28:&lt;/span&gt;     }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum29&quot;&gt;  29:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; addListener(element, name, observer, useCapture) {&lt;span style=&quot;color: #008000&quot;&gt;//设置监听&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum30&quot;&gt;  30:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (element.addEventListener) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum31&quot;&gt;  31:&lt;/span&gt;             element.addEventListener(name, observer, useCapture)&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum32&quot;&gt;  32:&lt;/span&gt;         } &lt;span style=&quot;color: #0000ff&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (element.attachEvent) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum33&quot;&gt;  33:&lt;/span&gt;             element.attachEvent(&lt;span style=&quot;color: #006080&quot;&gt;'on'&lt;/span&gt; + name, observer)&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum34&quot;&gt;  34:&lt;/span&gt;         }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum35&quot;&gt;  35:&lt;/span&gt;     }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum36&quot;&gt;  36:&lt;/span&gt;     &lt;span style=&quot;color: #008000&quot;&gt;//&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum37&quot;&gt;  37:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; lis = $$(&lt;span style=&quot;color: #006080&quot;&gt;'comment'&lt;/span&gt;, &lt;span style=&quot;color: #006080&quot;&gt;'li'&lt;/span&gt;, $(&lt;span style=&quot;color: #006080&quot;&gt;'thecomments'&lt;/span&gt;));&lt;span style=&quot;color: #008000&quot;&gt;//取得页面上div#thecomments下具有class=comment的li标签集合li.comment&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum38&quot;&gt;  38:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;for&lt;/span&gt; (&lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; i = 0; i &amp;lt; lis.length; i++) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum39&quot;&gt;  39:&lt;/span&gt;     (&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;() {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum40&quot;&gt;  40:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; id = lis[i].id,it;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum41&quot;&gt;  41:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (/^li-comment\-[0-9]+$/.test(id)) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum42&quot;&gt;  42:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; avatar=$$(&lt;span style=&quot;color: #006080&quot;&gt;'avatar'&lt;/span&gt;, &lt;span style=&quot;color: #006080&quot;&gt;'img'&lt;/span&gt;, $(id))[0];&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum43&quot;&gt;  43:&lt;/span&gt;             addListener(avatar,&lt;span style=&quot;color: #006080&quot;&gt;'mouseover'&lt;/span&gt;,&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(){addcard(id,it)},&lt;span style=&quot;color: #0000ff&quot;&gt;false&lt;/span&gt;);&lt;span style=&quot;color: #008000&quot;&gt;//设置监听&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum44&quot;&gt;  44:&lt;/span&gt;         }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum45&quot;&gt;  45:&lt;/span&gt;     })();&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum46&quot;&gt;  46:&lt;/span&gt;     }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum47&quot;&gt;  47:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt;//...代码未完，继续向下看&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum48&quot;&gt;  48:&lt;/span&gt; })();&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;addcard()具有两个参数，一个是这条评论的id，一个是个定时器。我们就是根据id来发送请求的。接下来是发送请求了。 &lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;inpostad&quot;&gt;&lt;img src=&quot;http://www.qiqiboy.com/wp-content/themes/bluePaled/img/feedad.gif&quot; /&gt;&lt;a href=&quot;http://www.qiqiboy.com/bluepaled&quot; title=&quot;点击下载bluePaled&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://www.qiqiboy.com/wp-content/themes/bluePaled/img/adtest.png&quot; alt=&quot;点击下载bluePaled&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/p&gt;
&lt;div style=&quot;border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px&quot; id=&quot;codeSnippetWrapper&quot;&gt;
&lt;div style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum1&quot;&gt;   1:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; addcard(id,it){&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum2&quot;&gt;   2:&lt;/span&gt;         clearTimeout(it);&lt;span style=&quot;color: #008000&quot;&gt;//先清除下定时器&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum3&quot;&gt;   3:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt;(document.getElementsByTagName(&lt;span style=&quot;color: #006080&quot;&gt;'ucard'&lt;/span&gt;)||0){&lt;span style=&quot;color: #008000&quot;&gt;//先将页面上所有未消失的信息显示框都隐藏&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum4&quot;&gt;   4:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; ucards=$$(&lt;span style=&quot;color: #006080&quot;&gt;'ucard'&lt;/span&gt;,&lt;span style=&quot;color: #006080&quot;&gt;'div'&lt;/span&gt;,$(&lt;span style=&quot;color: #006080&quot;&gt;'thecomments'&lt;/span&gt;));&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum5&quot;&gt;   5:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;for&lt;/span&gt;(&lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; i=0;i&amp;lt;ucards.length;i++)&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum6&quot;&gt;   6:&lt;/span&gt;                 &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt;(ucards[i].style.display==&lt;span style=&quot;color: #006080&quot;&gt;'block'&lt;/span&gt;)&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum7&quot;&gt;   7:&lt;/span&gt;                     ucards[i].style.display=&lt;span style=&quot;color: #006080&quot;&gt;'none'&lt;/span&gt;;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum8&quot;&gt;   8:&lt;/span&gt;         }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum9&quot;&gt;   9:&lt;/span&gt;         id=id.replace(&lt;span style=&quot;color: #006080&quot;&gt;'li-comment-'&lt;/span&gt;,&lt;span style=&quot;color: #006080&quot;&gt;''&lt;/span&gt;);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum10&quot;&gt;  10:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; ucard,cardid=$(&lt;span style=&quot;color: #006080&quot;&gt;'comment-'&lt;/span&gt;+id).className;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum11&quot;&gt;  11:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt;($(cardid)||0){&lt;span style=&quot;color: #008000&quot;&gt;//如果页面上存在具有唯一cardid的div，就直接将它移动到目标位置，设置display，让它显示出来&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum12&quot;&gt;  12:&lt;/span&gt;             ucard=$(cardid);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum13&quot;&gt;  13:&lt;/span&gt;             insertBe(ucard,$(&lt;span style=&quot;color: #006080&quot;&gt;'li-comment-'&lt;/span&gt;+id).firstChild);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum14&quot;&gt;  14:&lt;/span&gt;             ucard.style.display=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;block&amp;quot;&lt;/span&gt;;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum15&quot;&gt;  15:&lt;/span&gt;             addListener(ucard,&lt;span style=&quot;color: #006080&quot;&gt;'mouseout'&lt;/span&gt;,&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(){delcard(cardid,it)},&lt;span style=&quot;color: #0000ff&quot;&gt;false&lt;/span&gt;);&lt;span style=&quot;color: #008000&quot;&gt;//设置鼠标移下动作监听&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum16&quot;&gt;  16:&lt;/span&gt;         }&lt;span style=&quot;color: #0000ff&quot;&gt;else&lt;/span&gt;{&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum17&quot;&gt;  17:&lt;/span&gt;             ucard=document.createElement(&lt;span style=&quot;color: #006080&quot;&gt;'div'&lt;/span&gt;);ucard.className=&lt;span style=&quot;color: #006080&quot;&gt;'ucard small'&lt;/span&gt;;ucard.style.display=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;block&amp;quot;&lt;/span&gt;;ucard.id=cardid;&lt;span style=&quot;color: #008000&quot;&gt;//将信息框的id值设置为唯一cardid&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum18&quot;&gt;  18:&lt;/span&gt;             it=setTimeout(&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(){&lt;span style=&quot;color: #008000&quot;&gt;//定时1.5s后发送查询请求&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum19&quot;&gt;  19:&lt;/span&gt;                 &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; xmlHttp,url=&lt;span style=&quot;color: #006080&quot;&gt;'?action=showCard&amp;amp;id='&lt;/span&gt;+id;&lt;span style=&quot;color: #008000&quot;&gt;//创建xmlhttp对象,url的主要参数是id，后台就是根据id从数据库中获取数据返回前台的&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum20&quot;&gt;  20:&lt;/span&gt;                 try {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum21&quot;&gt;  21:&lt;/span&gt;                     xmlHttp = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; XMLHttpRequest()&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum22&quot;&gt;  22:&lt;/span&gt;                 } catch(e) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum23&quot;&gt;  23:&lt;/span&gt;                     try {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum24&quot;&gt;  24:&lt;/span&gt;                         xmlHttp = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; ActiveXObject(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Microsoft.XMLHTTP&amp;quot;&lt;/span&gt;)&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum25&quot;&gt;  25:&lt;/span&gt;                     } catch(e) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum26&quot;&gt;  26:&lt;/span&gt;                         try {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum27&quot;&gt;  27:&lt;/span&gt;                             xmlHttp = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; ActiveXObject(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Msxml2.XMLHTTP&amp;quot;&lt;/span&gt;)&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum28&quot;&gt;  28:&lt;/span&gt;                         } catch(e) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum29&quot;&gt;  29:&lt;/span&gt;                             alert(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Your browser does not support ajax!&amp;quot;&lt;/span&gt;);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum30&quot;&gt;  30:&lt;/span&gt;                             &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;false&lt;/span&gt;;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum31&quot;&gt;  31:&lt;/span&gt;                         }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum32&quot;&gt;  32:&lt;/span&gt;                     }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum33&quot;&gt;  33:&lt;/span&gt;                 }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum34&quot;&gt;  34:&lt;/span&gt;                 xmlHttp.open(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;GET&amp;quot;&lt;/span&gt;, url, &lt;span style=&quot;color: #0000ff&quot;&gt;true&lt;/span&gt;);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum35&quot;&gt;  35:&lt;/span&gt;                 xmlHttp.setRequestHeader(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Content-type&amp;quot;&lt;/span&gt;, &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;charset=UTF-8&amp;quot;&lt;/span&gt;);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum36&quot;&gt;  36:&lt;/span&gt;                 xmlHttp.onreadystatechange = &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;() {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum37&quot;&gt;  37:&lt;/span&gt;                     &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (xmlHttp.readyState == 4 || xmlHttp.readyState==&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;complete&amp;quot;&lt;/span&gt;) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum38&quot;&gt;  38:&lt;/span&gt;                         &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (xmlHttp.status == 200) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum39&quot;&gt;  39:&lt;/span&gt;                             &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; data = xmlHttp.responseText;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum40&quot;&gt;  40:&lt;/span&gt;                             ucard.className=ucard.className.replace(/ small/,&lt;span style=&quot;color: #006080&quot;&gt;''&lt;/span&gt;);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum41&quot;&gt;  41:&lt;/span&gt;                             ucard.innerHTML=data;&lt;span style=&quot;color: #008000&quot;&gt;//将数据填入这个div中&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum42&quot;&gt;  42:&lt;/span&gt;                         } &lt;span style=&quot;color: #0000ff&quot;&gt;else&lt;/span&gt; {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum43&quot;&gt;  43:&lt;/span&gt;                             removeNode(ucard);&lt;span style=&quot;color: #008000&quot;&gt;//获取数据失败就移除这个节点&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum44&quot;&gt;  44:&lt;/span&gt;                         }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum45&quot;&gt;  45:&lt;/span&gt;                     }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum46&quot;&gt;  46:&lt;/span&gt;                 };&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum47&quot;&gt;  47:&lt;/span&gt;                 xmlHttp.send(&lt;span style=&quot;color: #0000ff&quot;&gt;null&lt;/span&gt;);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum48&quot;&gt;  48:&lt;/span&gt;                 insertBe(ucard,$(&lt;span style=&quot;color: #006080&quot;&gt;'li-comment-'&lt;/span&gt;+id).firstChild);&lt;span style=&quot;color: #008000&quot;&gt;//将节点插入到评论li标签下的第一个节点前面&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum49&quot;&gt;  49:&lt;/span&gt;                 addListener(ucard,&lt;span style=&quot;color: #006080&quot;&gt;'mouseout'&lt;/span&gt;,&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(){delcard(cardid,it)},&lt;span style=&quot;color: #0000ff&quot;&gt;false&lt;/span&gt;);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum50&quot;&gt;  50:&lt;/span&gt;             },1500);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum51&quot;&gt;  51:&lt;/span&gt;         }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum52&quot;&gt;  52:&lt;/span&gt;     }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum53&quot;&gt;  53:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum54&quot;&gt;  54:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; delcard(cardid,it){&lt;span style=&quot;color: #008000&quot;&gt;//使信息框隐藏，这样处理目前有些问题，我换了一种方式，代码很多，下次再说，这里还是用原始方法吧&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum55&quot;&gt;  55:&lt;/span&gt;     clearTimeout(it);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum56&quot;&gt;  56:&lt;/span&gt;     it=setTimeout(&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(){&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum57&quot;&gt;  57:&lt;/span&gt;         $(cardid).style.display=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;none&amp;quot;&lt;/span&gt;;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum58&quot;&gt;  58:&lt;/span&gt;     },3000);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum59&quot;&gt;  59:&lt;/span&gt; }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum60&quot;&gt;  60:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum61&quot;&gt;  61:&lt;/span&gt; addListener($(&lt;span style=&quot;color: #006080&quot;&gt;'thecomments'&lt;/span&gt;),&lt;span style=&quot;color: #006080&quot;&gt;'click'&lt;/span&gt;,&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(){&lt;span style=&quot;color: #008000&quot;&gt;//加上点击评论列表区域就隐藏信息显示框&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum62&quot;&gt;  62:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt;(document.getElementsByTagName(&lt;span style=&quot;color: #006080&quot;&gt;'ucard'&lt;/span&gt;)||0){&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum63&quot;&gt;  63:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; ucards=$$(&lt;span style=&quot;color: #006080&quot;&gt;'ucard'&lt;/span&gt;,&lt;span style=&quot;color: #006080&quot;&gt;'div'&lt;/span&gt;,$(&lt;span style=&quot;color: #006080&quot;&gt;'thecomments'&lt;/span&gt;));&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum64&quot;&gt;  64:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;for&lt;/span&gt;(&lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; i=0;i&amp;lt;ucards.length;i++)&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum65&quot;&gt;  65:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt;(ucards[i].style.display==&lt;span style=&quot;color: #006080&quot;&gt;'block'&lt;/span&gt;)&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum66&quot;&gt;  66:&lt;/span&gt;                 ucards[i].style.display=&lt;span style=&quot;color: #006080&quot;&gt;'none'&lt;/span&gt;;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum67&quot;&gt;  67:&lt;/span&gt;     }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum68&quot;&gt;  68:&lt;/span&gt; },&lt;span style=&quot;color: #0000ff&quot;&gt;false&lt;/span&gt;);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;OK，我已经贴出了所有我用到的前端JS代码。上面代码中你已经注意到了&lt;u&gt;&lt;strong&gt;cardid=$(&amp;#8217;comment-&amp;#8217;+id).className&lt;/strong&gt;&lt;/u&gt;这一句，这句是获取一个class属性值。有什么用呢？其实这个就是标识唯一访客的ID，我事先在评论列表输出时就给相应的div加上了这个class属性，如下图中的&amp;lt;div id=”comment-4143”…一行。&lt;/p&gt;
&lt;p&gt;&lt;img style=&quot;display: inline&quot; class=&quot;wlDisabledImage&quot; title=&quot;233&quot; alt=&quot;233&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/2331.png&quot; width=&quot;355&quot; height=&quot;48&quot; /&gt; &lt;/p&gt;
&lt;p&gt;这串字符从何而来呢？其实是我修改了评论模板，加上了下面这个 &lt;/p&gt;
&lt;div style=&quot;border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px&quot; id=&quot;codeSnippetWrapper&quot;&gt;
&lt;div style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum1&quot;&gt;   1:&lt;/span&gt; &amp;lt;div id=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;comment-&amp;lt;?php comment_ID(); ?&amp;gt;&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;&amp;lt;?php echo substr(md5($comment-&amp;gt;comment_author_email),0,10) ?&amp;gt;&amp;quot;&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;将email加密后截断前十位输出。 &lt;/p&gt;
&lt;p&gt;到这里，我觉得该说的都说完了，至于后台，就看你要往前台输出显示什么信息了。其实我想也不会有几个人想要去折腾这个，我给出前台JS代码仅作参考，你可以修改用于其它用途。 &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;hr /&gt;昨天在书写这篇文章时不小心发出去了，结果&lt;a href=&quot;http://immmmm.com/&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;&lt;u&gt;木木&lt;/u&gt;&lt;/strong&gt;&lt;/a&gt;和&lt;a href=&quot;http://winysky.com&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;&lt;u&gt;winy&lt;/u&gt;&lt;/strong&gt;&lt;/a&gt;已经过来抢了沙发，我由于网络问题，删除慢了一拍，等我删完回过头来才在邮箱里看到二人抢沙发的邮件，杯具了。二人的沙发被我收走了。。。 &lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;最后展示一下自我使用wordpress以来所有评论者中评论数最多的人，我没专门去查询过这个，只是在做这个资料显示功能是，按email统计了每个email的评论数，我在前台看了几个人的，发现应该是&lt;a href=&quot;http://zww.me&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;zwwooooo&lt;/strong&gt;&lt;/a&gt;和&lt;strong&gt;&lt;a href=&quot;http://www.evlos.org/&quot; target=&quot;_blank&quot;&gt;小邪&lt;/a&gt;&lt;/strong&gt;的评论最多，位于前两位，到本文发表时分别是&lt;strong&gt;88&lt;/strong&gt;条和&lt;strong&gt;76&lt;/strong&gt;条。你也可以查看你自己的相关信息，只要&lt;strong&gt;&lt;font color=&quot;#ff0000&quot;&gt;点击自己的头像&lt;/font&gt;&lt;/strong&gt;或者&lt;strong&gt;&lt;font color=&quot;#ff0000&quot;&gt;将鼠标放到自己头像上&lt;/font&gt;&lt;/strong&gt;就行了。当然，一般是展示前三名，但其实第一名是我了，你们查看我的会显示&lt;u&gt;评论：N条&lt;/u&gt;，哈哈，评论统计大于100条就不再显示具体条熟了，只显示N条。嗯，都过N的人多了，我再分等级，评论也能升级了。想要显示N条，那就努力评论到100条吧。(下图前两位是评论数最多，后两位是今天被我收走沙发的两位同学O(∩_∩)O~)&lt;/p&gt;
&lt;p&gt;&lt;img style=&quot;display: block; float: none; margin-left: auto; margin-right: auto&quot; class=&quot;wlDisabledImage&quot; title=&quot;11111&quot; alt=&quot;11111&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/11111.png&quot; width=&quot;377&quot; height=&quot;329&quot; /&gt;&lt;/p&gt;
&lt;h4 class=&quot;related_post_title&quot;&gt;&lt;span class=&quot;now&quot;&gt;Related Posts&lt;/span&gt;&lt;/h4&gt;&lt;div class=&quot;tags&quot;&gt;More Articles about: &lt;a href='http://www.qiqiboy.com/tags/ajax' rel='tag'&gt;ajax&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/javascript' rel='tag'&gt;javascript&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/php' rel='tag'&gt;PHP&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/wordpress' rel='tag'&gt;WordPress&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/%e4%bb%a3%e7%a0%81' rel='tag'&gt;代码&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/%e6%8a%80%e6%9c%af' rel='tag'&gt;技术&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/%e6%8a%98%e8%85%be' rel='tag'&gt;折腾&lt;/a&gt;&lt;/div&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/07/15/easily-create-your-own-wordpress-quote-reply-function.html&quot; title=&quot;添加引用按钮&amp;mdash;&amp;mdash;轻松打造属于你的WordPress引用回复功能&quot;&gt;添加引用按钮&amp;mdash;&amp;mdash;轻松打造属于你的WordPress引用回复功能&lt;/a&gt; (25)&lt;br /&gt;&lt;small&gt;
  之前的《完美解决WordPress嵌套回复的层深问题（无限嵌套）&amp;lt;一&amp;gt;》这篇文章中我讲了自己关于实现WordPress无限嵌套的一个思路。今天又有同学询问引用功能是如何实现的，我就简...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/14/introduce-my-blog-theme-for-you-2.html&quot; title=&quot;【SimPaled篇】Introduce My Blog Theme For You&quot;&gt;【SimPaled篇】Introduce My Blog Theme For You&lt;/a&gt; (73)&lt;br /&gt;&lt;small&gt;  声明：博客顶部仿自微软全球MSN首页(http://www.msn.com)，仅供本人学习研究之用，未用之牟利。 

  此主题支持CMS式首页与普通文章列表式首页风格。CMS首页绝大部分元素采用ajax方式装...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/13/ever-present-sidebar-instant-recovery-capabilities-comments.html&quot; title=&quot;【原理指导篇】无时不在的评论 侧边栏即时回复功能&quot;&gt;【原理指导篇】无时不在的评论 侧边栏即时回复功能&lt;/a&gt; (24)&lt;br /&gt;&lt;small&gt;
这个表单插入到页面上你有两种选择，一是预先在页面上输出一个完整的评论表单，如在footer.php处，注意要在&amp;lt;body&amp;gt;标签闭合前，然后设置display:none，使之在页面上隐藏。二是直接...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/07/effect-of-adding-some-ajax-blog.html&quot; title=&quot;博客加入若干Ajax效果&quot;&gt;博客加入若干Ajax效果&lt;/a&gt; (57)&lt;br /&gt;&lt;small&gt;
  

    评论框的简单计数器（无需改动模板，附带输入字数限制功能） 

    添加引用按钮——轻松打造属于你的WordPress引用回复功能 

    wordpress高亮搜索结果+实现关键字前后截断显...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/05/added-edit-trackback-style-in-the-code.html&quot; title=&quot;补充《修改trackback样式，统一评论外观》中代码&quot;&gt;补充《修改trackback样式，统一评论外观》中代码&lt;/a&gt; (33)&lt;br /&gt;&lt;small&gt;导航：#trackbacks代码&amp;#160; &amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; #代码解释   在《 修改trackback样式，统一评论外观 》中，我只是说了我对trackbacks的样式处理，并没有贴出代码，当然，原...&lt;/small&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;声明:&lt;/strong&gt; 本站遵循 &lt;a href=&quot;http:\/\/creativecommons.org/licenses/by-nc-sa/3.0/&quot;&gt;署名-非商业性使用-相同方式共享 3.0&lt;/a&gt; 共享协议. 转载请注明转自 &lt;a href=&quot;http://www.qiqiboy.com&quot;&gt;I'm qiqiboy !&lt;/a&gt; &lt;/p&gt; &lt;p&gt;本文地址: &lt;a href=&quot;http://qiqi.boy.im/7j&quot;&gt;http://qiqi.boy.im/7j&lt;a&gt;&lt;/p&gt;&lt;span style=&quot;background:#cc5566;color:#fffff;&quot;&gt;&lt;h4&gt;Look, this post is replyed so hot, let's go O(∩_∩)O~.&lt;/h4&gt;&lt;/span&gt;&lt;h3&gt;Related comments&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;2010年09月3日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/16/visitor-information-tencent-suspended-micro-display.html#comment-5063&quot;&gt;QiQiBoY&lt;/a&gt;say: &lt;a href=&quot;#comment-5062&quot; rel=&quot;nofollow&quot;&gt;@安庆法律人 &lt;/a&gt; 
是的。。。。&lt;/li&gt;&lt;li&gt;2010年09月3日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/16/visitor-information-tencent-suspended-micro-display.html#comment-5062&quot;&gt;安庆法律人&lt;/a&gt;say: &lt;a href=&quot;#comment-4353&quot; rel=&quot;nofollow&quot;&gt;@QiQiBoY &lt;/a&gt; 
要是没MORE就用不了。&lt;/li&gt;&lt;li&gt;2010年08月29日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/16/visitor-information-tencent-suspended-micro-display.html#comment-4831&quot;&gt;深白色&lt;/a&gt;say: 哈哈 看到林木木的頭像被拿來當示範了&lt;/li&gt;&lt;li&gt;2010年08月29日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/16/visitor-information-tencent-suspended-micro-display.html#comment-4807&quot;&gt;yetone&lt;/a&gt;say: 这个效果太牛啦&lt;/li&gt;&lt;li&gt;2010年08月28日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/16/visitor-information-tencent-suspended-micro-display.html#comment-4782&quot;&gt;QiQiBoY&lt;/a&gt;say: &lt;a href=&quot;#comment-4769&quot; rel=&quot;nofollow&quot;&gt;@joyla&lt;/a&gt;
没办法，咱不懂优化。。&lt;/li&gt;&lt;li&gt;2010年08月28日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/16/visitor-information-tencent-suspended-micro-display.html#comment-4769&quot;&gt;joyla&lt;/a&gt;say: 发现博客显示有点慢！&lt;/li&gt;&lt;li&gt;2010年08月23日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/16/visitor-information-tencent-suspended-micro-display.html#comment-4495&quot;&gt;QiQiBoY&lt;/a&gt;say: &lt;a href=&quot;#comment-4494&quot; rel=&quot;nofollow&quot;&gt;@ForRSS &lt;/a&gt; 
折腾也是为了活着。。 &lt;img src='http://www.qiqiboy.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':grin:' class='wp-smiley' /&gt; &lt;/li&gt;&lt;li&gt;2010年08月23日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/16/visitor-information-tencent-suspended-micro-display.html#comment-4494&quot;&gt;ForRSS&lt;/a&gt;say: 活着就是为了折腾。&lt;/li&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408666554/qiqiboy/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/qiqiboy/~7883632/408666554/5446216/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/qiqiboy/408666554/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/qiqiboy/408666554/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://www.qiqiboy.com/2010/08/16/visitor-information-tencent-suspended-micro-display.html/feed</wfw:commentRss><slash:comments>95</slash:comments><description>&lt;p&gt;&lt;img style=&quot;display: inline&quot; class=&quot;wlDisabledImage&quot; title=&quot;434&quot; alt=&quot;434&quot; align=&quot;right&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/434.png&quot; width=&quot;378&quot; height=&quot;206&quot; /&gt;效果如你在我博客评论列表处，你可以直接点击评论者头像，或者将鼠标放到头像上2s，就会出现loading图标，从后台获取数据后就会出现一个长方形框，显示了当前评论者的头像，姓名，邮箱和所用的操作系统、浏览器等信息。另外头像下方是评论者所用的邮箱在我博客所发表过的评论的总数。邮箱我将前三位转为*号了，因为隐私的关系。其实这种后期请求过来的数据，是不会被搜索引擎及各种抓取工具捕获的，所以不存在邮箱账号会被采集到，被滥发垃圾邮件的危险，我即使直接显示了也没关系的。&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408666554/qiqiboy/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/qiqiboy/~7883632/408666554/5446216/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/qiqiboy/408666554/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/qiqiboy/408666554/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>折腾</category><category>PHP</category><category>代码</category><category>javascript</category><category>ajax</category><category>技术</category><category>WordPress</category><pubDate>Mon, 16 Aug 2010 01:04:00 +0800</pubDate><author>QiQiBoY</author><comments>http://www.qiqiboy.com/2010/08/16/visitor-information-tencent-suspended-micro-display.html#comments</comments><guid isPermaLink="false">http://www.qiqiboy.com/2010/08/17/visitor-information-tencent-suspended-micro-display.html</guid><dc:creator>QiQiBoY</dc:creator><fs:srclink>http://www.qiqiboy.com/2010/08/16/visitor-information-tencent-suspended-micro-display.html</fs:srclink><fs:srcfeed>http://www.qiqiboy.com/feed</fs:srcfeed><fs:itemid>feedsky/qiqiboy/~7883632/408666554/5446216</fs:itemid></item><item><title>仿腾讯微博式访客信息悬浮显示（JavaScript &amp; ajax）</title><link>http://item.feedsky.com/~feedsky/qiqiboy/~7883632/403002506/5446216/1/item.html</link><content:encoded>&lt;p&gt;&lt;img style=&quot;display: inline&quot; class=&quot;wlDisabledImage&quot; title=&quot;12&quot; alt=&quot;12&quot; align=&quot;right&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/121.png&quot; width=&quot;240&quot; height=&quot;90&quot; /&gt;腾讯微博后来居上，据说用户活跃度已超新浪微博。&lt;/p&gt;
&lt;p&gt;腾讯微博页有一点很让我喜欢，那就是将鼠标放到用户头像上一会儿，就会在头像上出现一个小的窗口，显示用户的一些资料及其它信息。如右图，这样可以及时方便快速的查看自己及其他人一些相关的信息。&lt;/p&gt;
&lt;p&gt;所以我便copy了它的这个功能，整合到了wordpress主题上。&lt;/p&gt;
&lt;p&gt;&lt;img style=&quot;display: inline&quot; class=&quot;wlDisabledImage&quot; title=&quot;434&quot; alt=&quot;434&quot; align=&quot;right&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/434.png&quot; width=&quot;378&quot; height=&quot;206&quot; /&gt;效果如你在我博客评论列表处，你可以直接点击评论者头像，或者将鼠标放到头像上2s，就会出现loading图标，从后台获取数据后就会出现一个长方形框，显示了当前评论者的头像，姓名，邮箱和所用的操作系统、浏览器等信息。另外头像下方是评论者所用的邮箱在我博客所发表过的评论的总数。邮箱我将前三位转为*号了，因为隐私的关系。其实这种后期请求过来的数据，是不会被搜索引擎及各种抓取工具捕获的，所以不存在邮箱账号会被采集到，被滥发垃圾邮件的危险，我即使直接显示了也没关系的。&lt;/p&gt;
&lt;p&gt;前台JS处理时还要注意一点，那就是避免重复查询，因为一个页面上可能出现一个用户评论过多次的情况，那么如果鼠标放到这个用户的每条评论的头像上都向服务器发送查询的话，那么就很浪费了。但是，这些访客又没有在博客注册，没有一个唯一的ID能代表其身份。唯一可以证明其身份的就是邮箱了，但是邮箱又不能直接公布，所以我将每个访客的邮箱通过md5加密后的字串的前十位当做这个访客的唯一ID。在对一个访客信息查询后，将这个显示信息div的id标记为访客ID。如果后面再将鼠标放到同一位访客头像上，则会在页面上寻找这个具有唯一id值的信息显示div，如果找到了就直接显示这个div了，不必再次发送查询。其实腾讯微博的做法是在每条微博的&lt;strong&gt;&amp;lt;li&amp;gt;&lt;/strong&gt;标签中加入一个具有唯一字串的&lt;strong&gt;rel&lt;/strong&gt;属性，每个用户具有唯一的字串。它是通过这个字串来标识不同的用户的。     &lt;br /&gt;这个到底该怎么做呢？首先当然是获取页面上每个评论了。然后再对头像上的鼠标移上事件设置动作监听addcard &lt;/p&gt;
&lt;div style=&quot;border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px&quot; id=&quot;codeSnippetWrapper&quot;&gt;
&lt;div style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum1&quot;&gt;   1:&lt;/span&gt; (&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(){&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum2&quot;&gt;   2:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt;//一些打包的简便方法&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum3&quot;&gt;   3:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; $(id) {&lt;span style=&quot;color: #008000&quot;&gt;//根据ID获取对象&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum4&quot;&gt;   4:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; document.getElementById(id)&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum5&quot;&gt;   5:&lt;/span&gt;     }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum6&quot;&gt;   6:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; $$(c, t, p) {根据class值获取对象数组&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum7&quot;&gt;   7:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; at = p.getElementsByTagName(t);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum8&quot;&gt;   8:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; ms = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; Array();&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum9&quot;&gt;   9:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; r = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; RegExp(&lt;span style=&quot;color: #006080&quot;&gt;'(^|\\s)'&lt;/span&gt; + c.replace(/\-/g, &lt;span style=&quot;color: #006080&quot;&gt;'\\-'&lt;/span&gt;) + &lt;span style=&quot;color: #006080&quot;&gt;'(\\s|$)'&lt;/span&gt;);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum10&quot;&gt;  10:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; e;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum11&quot;&gt;  11:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;for&lt;/span&gt; (&lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; i = 0; i &amp;lt; at.length; i++) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum12&quot;&gt;  12:&lt;/span&gt;             e = at[i];&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum13&quot;&gt;  13:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (r.test(e.className)) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum14&quot;&gt;  14:&lt;/span&gt;                 ms.push(e)&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum15&quot;&gt;  15:&lt;/span&gt;             }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum16&quot;&gt;  16:&lt;/span&gt;         }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum17&quot;&gt;  17:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; ms&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum18&quot;&gt;  18:&lt;/span&gt;     }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum19&quot;&gt;  19:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; removeNode(obj){移除页面某一节点&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum20&quot;&gt;  20:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt;(typeof obj == &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;string&amp;quot;&lt;/span&gt;)$(obj).parentNode.removeChild($(obj));&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum21&quot;&gt;  21:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;else&lt;/span&gt; obj.parentNode.removeChild(obj);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum22&quot;&gt;  22:&lt;/span&gt;     }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum23&quot;&gt;  23:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; insertBe(obj,tar){在一个节点前插入另一个节点&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum24&quot;&gt;  24:&lt;/span&gt;         tar.parentNode.insertBefore(obj,tar);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum25&quot;&gt;  25:&lt;/span&gt;     }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum26&quot;&gt;  26:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; insertAf(obj,tar){在一个节点后插入另一个节点&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum27&quot;&gt;  27:&lt;/span&gt;         tar.parentNode.insertBefore(obj,tar.nextSibling);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum28&quot;&gt;  28:&lt;/span&gt;     }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum29&quot;&gt;  29:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; addListener(element, name, observer, useCapture) {&lt;span style=&quot;color: #008000&quot;&gt;//设置监听&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum30&quot;&gt;  30:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (element.addEventListener) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum31&quot;&gt;  31:&lt;/span&gt;             element.addEventListener(name, observer, useCapture)&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum32&quot;&gt;  32:&lt;/span&gt;         } &lt;span style=&quot;color: #0000ff&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (element.attachEvent) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum33&quot;&gt;  33:&lt;/span&gt;             element.attachEvent(&lt;span style=&quot;color: #006080&quot;&gt;'on'&lt;/span&gt; + name, observer)&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum34&quot;&gt;  34:&lt;/span&gt;         }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum35&quot;&gt;  35:&lt;/span&gt;     }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum36&quot;&gt;  36:&lt;/span&gt;     &lt;span style=&quot;color: #008000&quot;&gt;//&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum37&quot;&gt;  37:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; lis = $$(&lt;span style=&quot;color: #006080&quot;&gt;'comment'&lt;/span&gt;, &lt;span style=&quot;color: #006080&quot;&gt;'li'&lt;/span&gt;, $(&lt;span style=&quot;color: #006080&quot;&gt;'thecomments'&lt;/span&gt;));&lt;span style=&quot;color: #008000&quot;&gt;//取得页面上div#thecomments下具有class=comment的li标签集合li.comment&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum38&quot;&gt;  38:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;for&lt;/span&gt; (&lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; i = 0; i &amp;lt; lis.length; i++) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum39&quot;&gt;  39:&lt;/span&gt;     (&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;() {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum40&quot;&gt;  40:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; id = lis[i].id,it;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum41&quot;&gt;  41:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (/^li-comment\-[0-9]+$/.test(id)) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum42&quot;&gt;  42:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; avatar=$$(&lt;span style=&quot;color: #006080&quot;&gt;'avatar'&lt;/span&gt;, &lt;span style=&quot;color: #006080&quot;&gt;'img'&lt;/span&gt;, $(id))[0];&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum43&quot;&gt;  43:&lt;/span&gt;             addListener(avatar,&lt;span style=&quot;color: #006080&quot;&gt;'mouseover'&lt;/span&gt;,&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(){addcard(id,it)},&lt;span style=&quot;color: #0000ff&quot;&gt;false&lt;/span&gt;);&lt;span style=&quot;color: #008000&quot;&gt;//设置监听&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum44&quot;&gt;  44:&lt;/span&gt;         }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum45&quot;&gt;  45:&lt;/span&gt;     })();&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum46&quot;&gt;  46:&lt;/span&gt;     }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum47&quot;&gt;  47:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt;//...代码未完，继续向下看&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum48&quot;&gt;  48:&lt;/span&gt; })();&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;addcard()具有两个参数，一个是这条评论的id，一个是个定时器。我们就是根据id来发送请求的。接下来是发送请求了。&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;inpostad&quot;&gt;&lt;img src=&quot;http://www.qiqiboy.com/wp-content/themes/bluePaled/img/feedad.gif&quot; /&gt;&lt;a href=&quot;http://www.qiqiboy.com/bluepaled&quot; title=&quot;点击下载bluePaled&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://www.qiqiboy.com/wp-content/themes/bluePaled/img/adtest.png&quot; alt=&quot;点击下载bluePaled&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/p&gt;
&lt;div style=&quot;border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px&quot; id=&quot;codeSnippetWrapper&quot;&gt;
&lt;div style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum1&quot;&gt;   1:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; addcard(id,it){&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum2&quot;&gt;   2:&lt;/span&gt;         clearTimeout(it);&lt;span style=&quot;color: #008000&quot;&gt;//先清除下定时器&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum3&quot;&gt;   3:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt;(document.getElementsByTagName(&lt;span style=&quot;color: #006080&quot;&gt;'ucard'&lt;/span&gt;)||0){&lt;span style=&quot;color: #008000&quot;&gt;//先将页面上所有未消失的信息显示框都隐藏&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum4&quot;&gt;   4:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; ucards=$$(&lt;span style=&quot;color: #006080&quot;&gt;'ucard'&lt;/span&gt;,&lt;span style=&quot;color: #006080&quot;&gt;'div'&lt;/span&gt;,$(&lt;span style=&quot;color: #006080&quot;&gt;'thecomments'&lt;/span&gt;));&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum5&quot;&gt;   5:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;for&lt;/span&gt;(&lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; i=0;i&amp;lt;ucards.length;i++)&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum6&quot;&gt;   6:&lt;/span&gt;                 &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt;(ucards[i].style.display==&lt;span style=&quot;color: #006080&quot;&gt;'block'&lt;/span&gt;)&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum7&quot;&gt;   7:&lt;/span&gt;                     ucards[i].style.display=&lt;span style=&quot;color: #006080&quot;&gt;'none'&lt;/span&gt;;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum8&quot;&gt;   8:&lt;/span&gt;         }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum9&quot;&gt;   9:&lt;/span&gt;         id=id.replace(&lt;span style=&quot;color: #006080&quot;&gt;'li-comment-'&lt;/span&gt;,&lt;span style=&quot;color: #006080&quot;&gt;''&lt;/span&gt;);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum10&quot;&gt;  10:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; ucard,cardid=$(&lt;span style=&quot;color: #006080&quot;&gt;'comment-'&lt;/span&gt;+id).className;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum11&quot;&gt;  11:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt;($(cardid)||0){&lt;span style=&quot;color: #008000&quot;&gt;//如果页面上存在具有唯一cardid的div，就直接将它移动到目标位置，设置display，让它显示出来&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum12&quot;&gt;  12:&lt;/span&gt;             ucard=$(cardid);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum13&quot;&gt;  13:&lt;/span&gt;             insertBe(ucard,$(&lt;span style=&quot;color: #006080&quot;&gt;'li-comment-'&lt;/span&gt;+id).firstChild);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum14&quot;&gt;  14:&lt;/span&gt;             ucard.style.display=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;block&amp;quot;&lt;/span&gt;;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum15&quot;&gt;  15:&lt;/span&gt;             addListener(ucard,&lt;span style=&quot;color: #006080&quot;&gt;'mouseout'&lt;/span&gt;,&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(){delcard(cardid,it)},&lt;span style=&quot;color: #0000ff&quot;&gt;false&lt;/span&gt;);&lt;span style=&quot;color: #008000&quot;&gt;//设置鼠标移下动作监听&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum16&quot;&gt;  16:&lt;/span&gt;         }&lt;span style=&quot;color: #0000ff&quot;&gt;else&lt;/span&gt;{&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum17&quot;&gt;  17:&lt;/span&gt;             ucard=document.createElement(&lt;span style=&quot;color: #006080&quot;&gt;'div'&lt;/span&gt;);ucard.className=&lt;span style=&quot;color: #006080&quot;&gt;'ucard small'&lt;/span&gt;;ucard.style.display=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;block&amp;quot;&lt;/span&gt;;ucard.id=cardid;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum18&quot;&gt;  18:&lt;/span&gt;             it=setTimeout(&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(){&lt;span style=&quot;color: #008000&quot;&gt;//定时1.5s后发送查询请求&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum19&quot;&gt;  19:&lt;/span&gt;                 &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; xmlHttp,url=&lt;span style=&quot;color: #006080&quot;&gt;'?action=showCard&amp;amp;id='&lt;/span&gt;+id;&lt;span style=&quot;color: #008000&quot;&gt;//创建xmlhttp对象,url的主要参数是id，后台就是根据id从数据库中获取数据返回前台的&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum20&quot;&gt;  20:&lt;/span&gt;                 try {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum21&quot;&gt;  21:&lt;/span&gt;                     xmlHttp = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; XMLHttpRequest()&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum22&quot;&gt;  22:&lt;/span&gt;                 } catch(e) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum23&quot;&gt;  23:&lt;/span&gt;                     try {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum24&quot;&gt;  24:&lt;/span&gt;                         xmlHttp = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; ActiveXObject(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Microsoft.XMLHTTP&amp;quot;&lt;/span&gt;)&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum25&quot;&gt;  25:&lt;/span&gt;                     } catch(e) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum26&quot;&gt;  26:&lt;/span&gt;                         try {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum27&quot;&gt;  27:&lt;/span&gt;                             xmlHttp = &lt;span style=&quot;color: #0000ff&quot;&gt;new&lt;/span&gt; ActiveXObject(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Msxml2.XMLHTTP&amp;quot;&lt;/span&gt;)&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum28&quot;&gt;  28:&lt;/span&gt;                         } catch(e) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum29&quot;&gt;  29:&lt;/span&gt;                             alert(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Your browser does not support ajax!&amp;quot;&lt;/span&gt;);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum30&quot;&gt;  30:&lt;/span&gt;                             &lt;span style=&quot;color: #0000ff&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;false&lt;/span&gt;;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum31&quot;&gt;  31:&lt;/span&gt;                         }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum32&quot;&gt;  32:&lt;/span&gt;                     }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum33&quot;&gt;  33:&lt;/span&gt;                 }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum34&quot;&gt;  34:&lt;/span&gt;                 xmlHttp.open(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;GET&amp;quot;&lt;/span&gt;, url, &lt;span style=&quot;color: #0000ff&quot;&gt;true&lt;/span&gt;);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum35&quot;&gt;  35:&lt;/span&gt;                 xmlHttp.setRequestHeader(&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Content-type&amp;quot;&lt;/span&gt;, &lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;charset=UTF-8&amp;quot;&lt;/span&gt;);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum36&quot;&gt;  36:&lt;/span&gt;                 xmlHttp.onreadystatechange = &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;() {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum37&quot;&gt;  37:&lt;/span&gt;                     &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (xmlHttp.readyState == 4 || xmlHttp.readyState==&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;complete&amp;quot;&lt;/span&gt;) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum38&quot;&gt;  38:&lt;/span&gt;                         &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt; (xmlHttp.status == 200) {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum39&quot;&gt;  39:&lt;/span&gt;                             &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; data = xmlHttp.responseText;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum40&quot;&gt;  40:&lt;/span&gt;                             ucard.className=ucard.className.replace(/ small/,&lt;span style=&quot;color: #006080&quot;&gt;''&lt;/span&gt;);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum41&quot;&gt;  41:&lt;/span&gt;                             ucard.innerHTML=data;&lt;span style=&quot;color: #008000&quot;&gt;//将数据填入这个div中&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum42&quot;&gt;  42:&lt;/span&gt;                         } &lt;span style=&quot;color: #0000ff&quot;&gt;else&lt;/span&gt; {&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum43&quot;&gt;  43:&lt;/span&gt;                             removeNode(ucard);&lt;span style=&quot;color: #008000&quot;&gt;//获取数据失败就移除这个节点&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum44&quot;&gt;  44:&lt;/span&gt;                         }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum45&quot;&gt;  45:&lt;/span&gt;                     }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum46&quot;&gt;  46:&lt;/span&gt;                 };&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum47&quot;&gt;  47:&lt;/span&gt;                 xmlHttp.send(&lt;span style=&quot;color: #0000ff&quot;&gt;null&lt;/span&gt;);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum48&quot;&gt;  48:&lt;/span&gt;                 insertBe(ucard,$(&lt;span style=&quot;color: #006080&quot;&gt;'li-comment-'&lt;/span&gt;+id).firstChild);&lt;span style=&quot;color: #008000&quot;&gt;//将节点插入到评论li标签下的第一个节点前面&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum49&quot;&gt;  49:&lt;/span&gt;                 addListener(ucard,&lt;span style=&quot;color: #006080&quot;&gt;'mouseout'&lt;/span&gt;,&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(){delcard(cardid,it)},&lt;span style=&quot;color: #0000ff&quot;&gt;false&lt;/span&gt;);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum50&quot;&gt;  50:&lt;/span&gt;             },1500);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum51&quot;&gt;  51:&lt;/span&gt;         }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum52&quot;&gt;  52:&lt;/span&gt;     }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum53&quot;&gt;  53:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum54&quot;&gt;  54:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt; delcard(cardid,it){&lt;span style=&quot;color: #008000&quot;&gt;//使信息框隐藏&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum55&quot;&gt;  55:&lt;/span&gt;     clearTimeout(it);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum56&quot;&gt;  56:&lt;/span&gt;     it=setTimeout(&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(){&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum57&quot;&gt;  57:&lt;/span&gt;         $(cardid).style.display=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;none&amp;quot;&lt;/span&gt;;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum58&quot;&gt;  58:&lt;/span&gt;     },3000);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum59&quot;&gt;  59:&lt;/span&gt; }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum60&quot;&gt;  60:&lt;/span&gt;&amp;#160; &lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum61&quot;&gt;  61:&lt;/span&gt; addListener($(&lt;span style=&quot;color: #006080&quot;&gt;'thecomments'&lt;/span&gt;),&lt;span style=&quot;color: #006080&quot;&gt;'click'&lt;/span&gt;,&lt;span style=&quot;color: #0000ff&quot;&gt;function&lt;/span&gt;(){&lt;span style=&quot;color: #008000&quot;&gt;//加上点击评论列表区域就隐藏信息显示框&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum62&quot;&gt;  62:&lt;/span&gt;     &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt;(document.getElementsByTagName(&lt;span style=&quot;color: #006080&quot;&gt;'ucard'&lt;/span&gt;)||0){&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum63&quot;&gt;  63:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; ucards=$$(&lt;span style=&quot;color: #006080&quot;&gt;'ucard'&lt;/span&gt;,&lt;span style=&quot;color: #006080&quot;&gt;'div'&lt;/span&gt;,$(&lt;span style=&quot;color: #006080&quot;&gt;'thecomments'&lt;/span&gt;));&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum64&quot;&gt;  64:&lt;/span&gt;         &lt;span style=&quot;color: #0000ff&quot;&gt;for&lt;/span&gt;(&lt;span style=&quot;color: #0000ff&quot;&gt;var&lt;/span&gt; i=0;i&amp;lt;ucards.length;i++)&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum65&quot;&gt;  65:&lt;/span&gt;             &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt;(ucards[i].style.display==&lt;span style=&quot;color: #006080&quot;&gt;'block'&lt;/span&gt;)&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum66&quot;&gt;  66:&lt;/span&gt;                 ucards[i].style.display=&lt;span style=&quot;color: #006080&quot;&gt;'none'&lt;/span&gt;;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum67&quot;&gt;  67:&lt;/span&gt;     }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum68&quot;&gt;  68:&lt;/span&gt; },&lt;span style=&quot;color: #0000ff&quot;&gt;false&lt;/span&gt;);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;OK，我已经贴出了所有我用到的前端JS代码。上面代码中你已经注意到了&lt;u&gt;&lt;strong&gt;cardid=$(&amp;#8217;comment-&amp;#8217;+id).className&lt;/strong&gt;&lt;/u&gt;这一句，这句是获取一个class属性值。有什么用呢？其实这个就是标识唯一访客的ID，我事先在评论列表输出时就给相应的div加上了这个class属性，如下图中的&amp;lt;div id=”comment-4143”…一行。&lt;/p&gt;
&lt;p&gt;&lt;img style=&quot;display: inline&quot; class=&quot;wlDisabledImage&quot; title=&quot;233&quot; alt=&quot;233&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/233.png&quot; width=&quot;355&quot; height=&quot;48&quot; /&gt; &lt;/p&gt;
&lt;p&gt;这串字符从何而来呢？其实是我修改了评论模板，加上了下面这个 &lt;/p&gt;
&lt;div style=&quot;border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px&quot; id=&quot;codeSnippetWrapper&quot;&gt;
&lt;div style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum1&quot;&gt;   1:&lt;/span&gt; &amp;lt;div id=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;comment-&amp;lt;?php comment_ID(); ?&amp;gt;&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;class&lt;/span&gt;=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;&amp;lt;?php echo substr(md5($comment-&amp;gt;comment_author_email),0,10) ?&amp;gt;&amp;quot;&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;将email加密后截断前十位输出。 &lt;/p&gt;
&lt;p&gt;到这里，我觉得该说的都说完了，至于后台，就看你要往前台输出显示什么信息了。其实我想也不会有几个人想要去折腾这个，我给出前台JS代码仅作参考，你可以修改用于其它用途。 &lt;/p&gt;
&lt;h4 class=&quot;related_post_title&quot;&gt;&lt;span class=&quot;now&quot;&gt;Related Posts&lt;/span&gt;&lt;/h4&gt;&lt;div class=&quot;tags&quot;&gt;More Articles about: &lt;a href='http://www.qiqiboy.com/tags/ajax' rel='tag'&gt;ajax&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/javascript' rel='tag'&gt;javascript&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/php' rel='tag'&gt;PHP&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/wordpress' rel='tag'&gt;WordPress&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/%e4%bb%a3%e7%a0%81' rel='tag'&gt;代码&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/%e6%8a%80%e6%9c%af' rel='tag'&gt;技术&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/%e6%8a%98%e8%85%be' rel='tag'&gt;折腾&lt;/a&gt;&lt;/div&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/07/15/easily-create-your-own-wordpress-quote-reply-function.html&quot; title=&quot;添加引用按钮&amp;mdash;&amp;mdash;轻松打造属于你的WordPress引用回复功能&quot;&gt;添加引用按钮&amp;mdash;&amp;mdash;轻松打造属于你的WordPress引用回复功能&lt;/a&gt; (22)&lt;br /&gt;&lt;small&gt;
  之前的《完美解决WordPress嵌套回复的层深问题（无限嵌套）&amp;lt;一&amp;gt;》这篇文章中我讲了自己关于实现WordPress无限嵌套的一个思路。今天又有同学询问引用功能是如何实现的，我就简...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/14/introduce-my-blog-theme-for-you-2.html&quot; title=&quot;【SimPaled篇】Introduce My Blog Theme For You&quot;&gt;【SimPaled篇】Introduce My Blog Theme For You&lt;/a&gt; (38)&lt;br /&gt;&lt;small&gt;  声明：博客顶部仿自微软全球MSN首页(http://www.msn.com)，仅供本人学习研究之用，未用之牟利。 

  此主题支持CMS式首页与普通文章列表式首页风格。CMS首页绝大部分元素采用ajax方式装...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/13/ever-present-sidebar-instant-recovery-capabilities-comments.html&quot; title=&quot;【原理指导篇】无时不在的评论 侧边栏即时回复功能&quot;&gt;【原理指导篇】无时不在的评论 侧边栏即时回复功能&lt;/a&gt; (19)&lt;br /&gt;&lt;small&gt;
这个表单插入到页面上你有两种选择，一是预先在页面上输出一个完整的评论表单，如在footer.php处，注意要在&amp;lt;body&amp;gt;标签闭合前，然后设置display:none，使之在页面上隐藏。二是直接...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/07/effect-of-adding-some-ajax-blog.html&quot; title=&quot;博客加入若干Ajax效果&quot;&gt;博客加入若干Ajax效果&lt;/a&gt; (55)&lt;br /&gt;&lt;small&gt;
  

    评论框的简单计数器（无需改动模板，附带输入字数限制功能） 

    添加引用按钮——轻松打造属于你的WordPress引用回复功能 

    wordpress高亮搜索结果+实现关键字前后截断显...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/05/added-edit-trackback-style-in-the-code.html&quot; title=&quot;补充《修改trackback样式，统一评论外观》中代码&quot;&gt;补充《修改trackback样式，统一评论外观》中代码&lt;/a&gt; (33)&lt;br /&gt;&lt;small&gt;导航：#trackbacks代码&amp;#160; &amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; #代码解释   在《 修改trackback样式，统一评论外观 》中，我只是说了我对trackbacks的样式处理，并没有贴出代码，当然，原...&lt;/small&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;声明:&lt;/strong&gt; 本站遵循 &lt;a href=&quot;http:\/\/creativecommons.org/licenses/by-nc-sa/3.0/&quot;&gt;署名-非商业性使用-相同方式共享 3.0&lt;/a&gt; 共享协议. 转载请注明转自 &lt;a href=&quot;http://www.qiqiboy.com&quot;&gt;I'm qiqiboy !&lt;/a&gt; &lt;/p&gt; &lt;p&gt;本文地址: &lt;a href=&quot;&quot;&gt;&lt;a&gt;&lt;/p&gt;&lt;span style=&quot;background:#cc5566;color:#fffff;&quot;&gt;&lt;h4&gt;There is no comments still.&lt;/h4&gt;&lt;/span&gt;&lt;h3&gt;Related comments&lt;/h3&gt;&lt;ul&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/403002506/qiqiboy/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/qiqiboy/~7883632/403002506/5446216/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/qiqiboy/403002506/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/qiqiboy/403002506/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://www.qiqiboy.com/2010/08/15/%e4%bb%bf%e8%85%be%e8%ae%af%e5%be%ae%e5%8d%9a%e5%bc%8f%e8%ae%bf%e5%ae%a2%e4%bf%a1%e6%81%af%e6%82%ac%e6%b5%ae%e6%98%be%e7%a4%ba%ef%bc%88javascript-ajax%ef%bc%89.html/feed</wfw:commentRss><slash:comments>0</slash:comments><description>腾讯微博后来居上，据说用户活跃度已超新浪微博。
腾讯微博页有一点很让我喜欢，那就是将鼠标放到用户头像上一会儿，就会在头像上出现一个小的窗口，显示用户的一些资料及其它信息。如右图，这样可以及时方便快速的查看自己及其他人一些相关的信息。
所以我便copy了它的这个功能，整合到了wordpress主题上。
效果如你在我博客评论列表处，你可以直接点击评论者头像，或者将鼠标放到头像上2s，就会出现loading图标，从后台获取数据后就会出现一个长方形框，显示了当前评论者的头像，姓名，邮箱和所用的操作系统、浏览器等信息。另外头像下方是评论者所用的邮箱在我博客所发表过的评论的总数。邮箱我将前三位转为*号了，因为隐私的关系。其实这种后期请求过来的数据，是不会被搜索引擎及各种抓取工具捕获的，所以不存在邮箱账号会被采集到，被滥发垃圾邮件的危险，我即使直接显示了也没关系的。
前台JS处理时还要注意一点，那就是避免重复查询，因为一个页面上可能出现一个用户评论过多次的情况，那么如果鼠标放到这个用户的每条评论的头像上都向服务器发送查询的话，那么就很浪费了。但是，这些访客又没有在博客注册，没有一个唯一的ID能代表其身份。唯一可以证明其身份的就是邮箱了，但是邮箱又不能直接公布，所以我将每个访客的邮箱通过md5加密后的字串的前十位当做这个访客的唯一ID。在对一个访客信息查询后，将这个显示信息div的id标记为访客ID。如果后面再将鼠标放到同一位访客头像上，则会在页面上寻找这个具有唯一id值的信息显示div，如果找到了就直接显示这个div了，不必再次发送查询。其实腾讯微博的做法是在每条微博的&amp;#60;li&amp;#62;标签中加入一个具有唯一字串的rel属性，每个用户具有唯一的字串。它是通过这个字串来标识不同的用户的。     这个到底该怎么做呢？首先当然是获取页面上每个评论了。然后再对头像上的鼠标移上事件设置动作监听addcard 


   1: (function(){

   2: //一些打包的简便方法

   3:     function $(id) {//根据ID获取对象

   4:         return document.getElementById(id)

   5:     }

   6:     function $$(c, [...]&lt;img src=&quot;http://www1.feedsky.com/t1/403002506/qiqiboy/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/qiqiboy/~7883632/403002506/5446216/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/qiqiboy/403002506/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/qiqiboy/403002506/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>折腾</category><category>PHP</category><category>代码</category><category>javascript</category><category>ajax</category><category>技术</category><category>WordPress</category><pubDate>Sun, 15 Aug 2010 16:59:34 +0800</pubDate><author>QiQiBoY</author><comments>http://www.qiqiboy.com/2010/08/15/%e4%bb%bf%e8%85%be%e8%ae%af%e5%be%ae%e5%8d%9a%e5%bc%8f%e8%ae%bf%e5%ae%a2%e4%bf%a1%e6%81%af%e6%82%ac%e6%b5%ae%e6%98%be%e7%a4%ba%ef%bc%88javascript-ajax%ef%bc%89.html#comments</comments><guid isPermaLink="false">http://www.qiqiboy.com/2010/08/15/%e4%bb%bf%e8%85%be%e8%ae%af%e5%be%ae%e5%8d%9a%e5%bc%8f%e8%ae%bf%e5%ae%a2%e4%bf%a1%e6%81%af%e6%82%ac%e6%b5%ae%e6%98%be%e7%a4%ba%ef%bc%88javascript-ajax%ef%bc%89.html</guid><dc:creator>QiQiBoY</dc:creator><fs:srclink>http://www.qiqiboy.com/2010/08/15/%e4%bb%bf%e8%85%be%e8%ae%af%e5%be%ae%e5%8d%9a%e5%bc%8f%e8%ae%bf%e5%ae%a2%e4%bf%a1%e6%81%af%e6%82%ac%e6%b5%ae%e6%98%be%e7%a4%ba%ef%bc%88javascript-ajax%ef%bc%89.html</fs:srclink><fs:srcfeed>http://www.qiqiboy.com/feed</fs:srcfeed><fs:itemid>feedsky/qiqiboy/~7883632/403002506/5446216</fs:itemid></item><item><title>【SimPaled篇】Introduce My Blog Theme For You</title><link>http://item.feedsky.com/~feedsky/qiqiboy/~7883632/408666555/5446216/1/item.html</link><content:encoded>&lt;p&gt;我的习惯是每次开始正式使用一个新主题，就会专门写一篇文章介绍一下，去年12月初使用&lt;a href=&quot;http://www.qiqiboy.com/themes#bluepaled&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;&lt;u&gt;bluePaled&lt;/u&gt;&lt;/strong&gt;&lt;/a&gt;时我就写了一篇《&lt;a href=&quot;http://www.qiqiboy.com/2009/12/16/introduce-my-blog-theme-for-you.html&quot;&gt;&lt;strong&gt;&lt;font color=&quot;#ff0000&quot;&gt;Introduce My Blog Theme For You&lt;/font&gt;&lt;/strong&gt;&lt;/a&gt;》，如今过了大半年，我又换上了新主题&lt;strong&gt;&lt;a href=&quot;http://www.qiqiboy.com/themes#simpaled&quot; target=&quot;_blank&quot;&gt;&lt;u&gt;SimPaled&lt;/u&gt;&lt;/a&gt;&lt;/strong&gt;，所以也例行出一文——【SimPaled篇】Introduce My Blog Theme For You，也算是对这一个月来的折腾总结。以下部分转自主题&lt;a href=&quot;http://www.qiqiboy.com/themes/simpaled&quot; target=&quot;_blank&quot;&gt;&lt;font color=&quot;#ccb400&quot;&gt;SimPaled的简介页面&lt;/font&gt;&lt;/a&gt;&lt;font color=&quot;#9bbb59&quot;&gt;&lt;/font&gt;。&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;strong&gt;声明&lt;/strong&gt;：博客顶部仿自微软全球MSN首页(http://www.msn.com)，仅供本人学习研究之用，未用之牟利。 &lt;/p&gt;
&lt;p&gt;此主题支持&lt;strong&gt;CMS式首页&lt;/strong&gt;与普通&lt;strong&gt;文章列表式首页&lt;/strong&gt;风格。CMS首页绝大部分元素采用&lt;strong&gt;ajax方式&lt;/strong&gt;装载，随浏览器滚动条向下滚动加载(&lt;strong&gt;Lazyload&lt;/strong&gt;)，极大地节省了服务器消耗，也加快了页面载入时间（参考本博首页）。普通&lt;strong&gt;文章列表式首页&lt;/strong&gt;采用ajax动态文章加载，实现首页更多文章的展示而不影响页面大小及载入（参考本博blog页面）。 &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;CMS首页的slidershow轮换大图和顶部的“我的作品”中图片也都采用lazyload方式，减少页面下载时大图片请求,从而加快页面文档的装载。 &lt;/li&gt;
&lt;li&gt;CMS首页“最新文章”采用AJax技术，实现无刷新翻页，点击“&lt;strong&gt;more&lt;/strong&gt;”按钮可以更新此部分文章。 &lt;/li&gt;
&lt;li&gt;CMS首页“分类日志”采用lazyload方式，并不随页面初始化装载，而是在浏览器滚动条滚到时才会发出ajax请求装载。每个分类栏目右上角有“more+”按钮，点击可以通过ajax方式实现此分类下文章的翻页浏览。 &lt;/li&gt;
&lt;li&gt;博客侧边栏的每个栏目都是采用lazyload方式，随滚动条装载。文章评论也是此方式。 &lt;/li&gt;
&lt;li&gt;边栏的最新评论支持翻页浏览、单条评论查看、即时ajax回复等功能。其中最新文章(recent post)部分支持more无限下滚查看。——&lt;font color=&quot;#ff0000&quot;&gt;&lt;strong&gt;注：&lt;/strong&gt;&lt;/font&gt;边栏回复参考《&lt;a href=&quot;http://www.qiqiboy.com/2010/08/13/ever-present-sidebar-instant-recovery-capabilities-comments.html&quot;&gt;&lt;strong&gt;&lt;font color=&quot;#ffc000&quot;&gt;无时不在的评论 侧边栏即时回复功能&lt;/font&gt;&lt;/strong&gt;&lt;/a&gt;》 &lt;/li&gt;
&lt;li&gt;发表评论部分支持隐藏访客、管理员信息，实时显示gravatar头像，输入字数统计等，文本输入框支持系列编辑器，自由粘贴代码。——&lt;font color=&quot;#ff0000&quot;&gt;&lt;strong&gt;注：&lt;/strong&gt;&lt;/font&gt;实时头像参考《&lt;a href=&quot;http://www.qiqiboy.com/2009/12/30/email-input-box-office-real-time-display-gravatar-picture.html&quot;&gt;&lt;font color=&quot;#ffc000&quot;&gt;&lt;strong&gt;Email输入框处实时显示gravatar头像+email验证+动态信息提醒&lt;/strong&gt;&lt;/font&gt;&lt;/a&gt;》，编辑器参考《&lt;a href=&quot;http://www.qiqiboy.com/2010/07/26/to-comment-box-to-add-text-formatting-editor.html&quot;&gt;&lt;font color=&quot;#ffc000&quot;&gt;&lt;strong&gt;为评论框添加文字格式化编辑器&lt;/strong&gt;&lt;/font&gt;&lt;/a&gt;》，自由粘贴代码参考《&lt;a href=&quot;http://www.qiqiboy.com/2010/07/30/allows-you-to-paste-the-code-in-the-comments-box-free.html&quot;&gt;&lt;font color=&quot;#ffc000&quot;&gt;&lt;strong&gt;让你的评论框自由粘贴代码&lt;/strong&gt;&lt;/font&gt;&lt;/a&gt;》，字数统计参考《&lt;a href=&quot;http://www.qiqiboy.com/2010/07/14/a-simple-comment-box-counter.html&quot;&gt;&lt;font color=&quot;#ffc000&quot;&gt;&lt;strong&gt;评论框的简单计数器（无需改动模板，附带输入字数限制功能）&lt;/strong&gt;&lt;/font&gt;&lt;/a&gt;》&lt;em&gt;&lt;/em&gt; &lt;/li&gt;
&lt;li&gt;评论支持无限级嵌套，评论引用、回复功能。——&lt;font color=&quot;#ff0000&quot;&gt;&lt;strong&gt;注：&lt;/strong&gt;&lt;/font&gt;无限嵌套参考《&lt;a href=&quot;http://www.qiqiboy.com/2010/07/07/perfect-solution-wordpress-nested-layers-deep-back-problems.html&quot;&gt;&lt;font color=&quot;#ffc000&quot;&gt;&lt;strong&gt;完美解决WordPress嵌套回复的层深问题（无限嵌套）&lt;/strong&gt;&lt;/font&gt;&lt;/a&gt;》，引用功能参考《&lt;a href=&quot;http://www.qiqiboy.com/2010/07/15/easily-create-your-own-wordpress-quote-reply-function.html&quot;&gt;&lt;font color=&quot;#ffc000&quot;&gt;&lt;strong&gt;添加引用按钮——轻松打造属于你的WordPress引用回复功能&lt;/strong&gt;&lt;/font&gt;&lt;/a&gt;》 &lt;/li&gt;
&lt;li&gt;原生JS实现ajax发表评论。发表评论无需刷新页面即可在边栏最新评论处显示。 &lt;/li&gt;
&lt;li&gt;评论支持显示文字颜色、大小，图片、音乐等。——&lt;font color=&quot;#ff0000&quot;&gt;&lt;strong&gt;注：&lt;/strong&gt;&lt;/font&gt;参考《&lt;a href=&quot;http://www.qiqiboy.com/2010/07/28/colorful-comments.html&quot; target=&quot;_blank&quot;&gt;&lt;font color=&quot;#ffc000&quot;&gt;&lt;strong&gt;让评论可以插入图片，更改文字大小、颜色&lt;/strong&gt;&lt;/font&gt;&lt;/a&gt;》 &lt;/li&gt;
&lt;li&gt;内置搜索支持高亮文字、关键字处截断等。——&lt;font color=&quot;#ff0000&quot;&gt;&lt;strong&gt;注：&lt;/strong&gt;&lt;/font&gt;参考《&lt;a href=&quot;http://www.qiqiboy.com/2010/07/16/wordpress-highlighted-keyword-search-results.html&quot;&gt;&lt;strong&gt;&lt;font color=&quot;#ffc000&quot;&gt;wordpress高亮搜索结果+实现关键字前后截断显示。。。&lt;/font&gt;&lt;/strong&gt;&lt;/a&gt; 》 &lt;/li&gt;
&lt;li&gt;联系页面模板、友情链接模板、留言板模板等。。——&lt;font color=&quot;#ff0000&quot;&gt;&lt;strong&gt;注：&lt;/strong&gt;&lt;/font&gt;邮件联系表单参考《&lt;a href=&quot;http://www.qiqiboy.com/2010/07/17/create-a-set-of-built-in-email-contact-form-cookie.html&quot;&gt;&lt;strong&gt;&lt;font color=&quot;#ffc000&quot;&gt;创建一个可设置cookie相关信息的内置Email联系表单&lt;/font&gt;&lt;/strong&gt;&lt;/a&gt;》 &lt;/li&gt;
&lt;li&gt;页面智能滑动锚点、内置动画特效类，实现一些动画效果的的简单调用。 &lt;/li&gt;
&lt;li&gt;图片自动按比例限制大小，自动链接大图。——&lt;font color=&quot;#ff0000&quot;&gt;&lt;strong&gt;注：&lt;/strong&gt;&lt;/font&gt;参考《&lt;a href=&quot;http://www.qiqiboy.com/2010/07/14/how-do-i-deal-with-the-article-picture.html&quot;&gt;&lt;font color=&quot;#ffc000&quot;&gt;&lt;strong&gt;我是如何处理文章中图片的&lt;/strong&gt;&lt;/font&gt;&lt;/a&gt;》 &lt;/li&gt;
&lt;li&gt;主题不依赖任何插件，不依赖jQuery。 &lt;/li&gt;
&lt;li&gt;后台设置支持。 &lt;/li&gt;
&lt;li&gt;不支持IE6。不解释。 &lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;
&lt;h4 class=&quot;related_post_title&quot;&gt;&lt;span class=&quot;now&quot;&gt;Related Posts&lt;/span&gt;&lt;/h4&gt;&lt;div class=&quot;tags&quot;&gt;More Articles about: &lt;a href='http://www.qiqiboy.com/tags/ajax' rel='tag'&gt;ajax&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/bluepaled' rel='tag'&gt;bluePaled&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/javascript' rel='tag'&gt;javascript&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/simpaled' rel='tag'&gt;SimPaled&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/wordpress' rel='tag'&gt;WordPress&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/%e4%b8%bb%e9%a2%98' rel='tag'&gt;主题&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/%e6%8a%98%e8%85%be' rel='tag'&gt;折腾&lt;/a&gt;&lt;/div&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/16/visitor-information-tencent-suspended-micro-display.html&quot; title=&quot;仿腾讯微博式访客信息悬浮显示（JavaScript &amp;#038; ajax）&quot;&gt;仿腾讯微博式访客信息悬浮显示（JavaScript &amp;#038; ajax）&lt;/a&gt; (95)&lt;br /&gt;&lt;small&gt;效果如你在我博客评论列表处，你可以直接点击评论者头像，或者将鼠标放到头像上2s，就会出现loading图标，从后台获取数据后就会出现一个长方形框，显示了当前评论者的头像，姓...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/07/effect-of-adding-some-ajax-blog.html&quot; title=&quot;博客加入若干Ajax效果&quot;&gt;博客加入若干Ajax效果&lt;/a&gt; (57)&lt;br /&gt;&lt;small&gt;
  

    评论框的简单计数器（无需改动模板，附带输入字数限制功能） 

    添加引用按钮——轻松打造属于你的WordPress引用回复功能 

    wordpress高亮搜索结果+实现关键字前后截断显...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2009/12/13/something-about-my-theme-bluepaled.html&quot; title=&quot;就用这个主题了，不换回老主题了。( ⊙o⊙?)&quot;&gt;就用这个主题了，不换回老主题了。( ⊙o⊙?)&lt;/a&gt; (39)&lt;br /&gt;&lt;small&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; 当我看关了这款色彩鲜艳的主题，再切换回老版本主题时，视觉上的落差让我实在无法接受那灰蒙蒙的界面。虽说可以给它换副搭色，但是我其实是想试试嵌套...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2009/12/10/the-new-theme-bluepaled.html&quot; title=&quot;新主题测试进行时。。。&quot;&gt;新主题测试进行时。。。&lt;/a&gt; (32)&lt;br /&gt;&lt;small&gt;之前来过的同学这次再来肯定会眼前一亮，以前那个灰蒙蒙，有点乱的页面换成了现在蓝色主题（bluePaled）。  我又要纠结了，刚发现百度快照更新到当日了。之前都是一周更新一次，...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2009/12/07/the-new-wordpress-theme-bluepaled.html&quot; title=&quot;纠结的这几天。。。。。。&quot;&gt;纠结的这几天。。。。。。&lt;/a&gt; (10)&lt;br /&gt;&lt;small&gt;这个主题暂定名bluePaled，也许会公开发布，也许我会送给别人私用。但是，这一切都要先等到解决了邮件回复问题后。希望有JavaScript，php方面的高手能与我指导一二。即如何自动给回...&lt;/small&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;声明:&lt;/strong&gt; 本站遵循 &lt;a href=&quot;http:\/\/creativecommons.org/licenses/by-nc-sa/3.0/&quot;&gt;署名-非商业性使用-相同方式共享 3.0&lt;/a&gt; 共享协议. 转载请注明转自 &lt;a href=&quot;http://www.qiqiboy.com&quot;&gt;I'm qiqiboy !&lt;/a&gt; &lt;/p&gt; &lt;p&gt;本文地址: &lt;a href=&quot;http://qiqi.boy.im/7f&quot;&gt;http://qiqi.boy.im/7f&lt;a&gt;&lt;/p&gt;&lt;span style=&quot;background:#cc5566;color:#fffff;&quot;&gt;&lt;h4&gt;Look, this post is replyed so hot, let's go O(∩_∩)O~.&lt;/h4&gt;&lt;/span&gt;&lt;h3&gt;Related comments&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;2010年08月31日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/14/introduce-my-blog-theme-for-you-2.html#comment-4929&quot;&gt;QiQiBoY&lt;/a&gt;say: &lt;a href=&quot;#comment-4927&quot; rel=&quot;nofollow&quot;&gt;@Ray Chow &lt;/a&gt; 
要不lazyload，悲剧的网速下要等更长时间。。。。 &lt;img src='http://www.qiqiboy.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':grin:' class='wp-smiley' /&gt; &lt;/li&gt;&lt;li&gt;2010年08月31日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/14/introduce-my-blog-theme-for-you-2.html#comment-4927&quot;&gt;Ray Chow&lt;/a&gt;say: 我觉得 LazyLoad 的地方太多了……我们这里悲剧的网速要等一段时间&lt;/li&gt;&lt;li&gt;2010年08月19日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/14/introduce-my-blog-theme-for-you-2.html#comment-4376&quot;&gt;QiQiBoY&lt;/a&gt;say: &lt;a href=&quot;#comment-4374&quot; rel=&quot;nofollow&quot;&gt;@laowi &lt;/a&gt; 
呵呵，其实细节处我好多忽略掉的的。。还请多多提意见&lt;/li&gt;&lt;li&gt;2010年08月19日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/14/introduce-my-blog-theme-for-you-2.html#comment-4374&quot;&gt;laowi&lt;/a&gt;say: 看似简单
其实挺精致的
细节做的很好啊&lt;/li&gt;&lt;li&gt;2010年08月16日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/14/introduce-my-blog-theme-for-you-2.html#comment-4243&quot;&gt;QiQiBoY&lt;/a&gt;say: &lt;a href=&quot;#comment-4242&quot; rel=&quot;nofollow&quot;&gt;@underone &lt;/a&gt; 
额。。你把鼠标放到上面你的评论的你自己的头像上看一下，是IE7呀。。
恩，window 7系统。。应该是IE8的兼容模式。。&lt;/li&gt;&lt;li&gt;2010年08月16日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/14/introduce-my-blog-theme-for-you-2.html#comment-4242&quot;&gt;underone&lt;/a&gt;say: &lt;a href=&quot;#comment-4214&quot; rel=&quot;nofollow&quot;&gt;@liuqiqi &lt;/a&gt; 
不能，只有IE8...&lt;/li&gt;&lt;li&gt;2010年08月16日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/14/introduce-my-blog-theme-for-you-2.html#comment-4241&quot;&gt;QiQiBoY&lt;/a&gt;say: &lt;a href=&quot;#comment-4240&quot; rel=&quot;nofollow&quot;&gt;@MOPVHS &lt;/a&gt; 
今天是保存草稿的不小心当发布发布出去了，我没设置预发布，还是我手动发布的。。 &lt;img src='http://www.qiqiboy.com/wp-includes/images/smilies/icon_smile.gif' alt=':smile:' class='wp-smiley' /&gt; &lt;/li&gt;&lt;li&gt;2010年08月15日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/14/introduce-my-blog-theme-for-you-2.html#comment-4240&quot;&gt;MOPVHS&lt;/a&gt;say: &lt;a href=&quot;#comment-4239&quot; rel=&quot;nofollow&quot;&gt;@QiQiBoY &lt;/a&gt; 原来如此~~~我比较喜欢预发布~~~&lt;/li&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408666555/qiqiboy/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/qiqiboy/~7883632/408666555/5446216/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/qiqiboy/408666555/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/qiqiboy/408666555/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://www.qiqiboy.com/2010/08/14/introduce-my-blog-theme-for-you-2.html/feed</wfw:commentRss><slash:comments>73</slash:comments><description>&lt;p&gt;&lt;strong&gt;声明&lt;/strong&gt;：博客顶部仿自微软全球MSN首页(http://www.msn.com)，仅供本人学习研究之用，未用之牟利。 &lt;/p&gt;

  &lt;p&gt;此主题支持&lt;strong&gt;CMS式首页&lt;/strong&gt;与普通&lt;strong&gt;文章列表式首页&lt;/strong&gt;风格。CMS首页绝大部分元素采用&lt;strong&gt;ajax方式&lt;/strong&gt;装载，随浏览器滚动条向下滚动加载(&lt;strong&gt;Lazyload&lt;/strong&gt;)，极大地节省了服务器消耗，也加快了页面载入时间（参考本博首页）。普通&lt;strong&gt;文章列表式首页&lt;/strong&gt;采用ajax动态文章加载，实现首页更多文章的展示而不影响页面大小及载入（参考本博blog页面）。 &lt;/p&gt;&lt;img  align=&quot;center&quot; src=&quot;http://www.qiqiboy.com/wp-content/themes/SimPaled/screenshot.png&quot; alt=&quot;screenshot&quot; title=&quot;screenshot&quot;  class=&quot; sided&quot;&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408666555/qiqiboy/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/qiqiboy/~7883632/408666555/5446216/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/qiqiboy/408666555/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/qiqiboy/408666555/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>折腾</category><category>bluePaled</category><category>Design</category><category>主题</category><category>SimPaled</category><category>javascript</category><category>ajax</category><category>WordPress</category><pubDate>Sat, 14 Aug 2010 16:40:33 +0800</pubDate><author>QiQiBoY</author><comments>http://www.qiqiboy.com/2010/08/14/introduce-my-blog-theme-for-you-2.html#comments</comments><guid isPermaLink="false">http://www.qiqiboy.com/2010/08/14/introduce-my-blog-theme-for-you-2.html</guid><dc:creator>QiQiBoY</dc:creator><fs:srclink>http://www.qiqiboy.com/2010/08/14/introduce-my-blog-theme-for-you-2.html</fs:srclink><fs:srcfeed>http://www.qiqiboy.com/feed</fs:srcfeed><fs:itemid>feedsky/qiqiboy/~7883632/408666555/5446216</fs:itemid></item><item><title>【原理指导篇】无时不在的评论 侧边栏即时回复功能</title><link>http://item.feedsky.com/~feedsky/qiqiboy/~7883632/408666556/5446216/1/item.html</link><content:encoded>&lt;p&gt;在上一篇&lt;a href=&quot;http://www.qiqiboy.com/2010/08/10/ajax-version-comment-reply-feature-immediately-sidebar.html&quot;&gt;《&lt;strong&gt;&lt;u&gt;Ajax版即时侧边栏评论回复功能&lt;/u&gt;&lt;/strong&gt;》中我简单介绍了我最新给博客加入的一个功能，那就是在侧边栏能够即时回复评论。我现在就说一下我的这个功能的一些关键点及相关原理。&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;1.在评论下插入“回复”按钮&lt;/h3&gt;
&lt;p&gt;这个当然是能够直接从后台输出页面时加上最好了。就拿现在最流行的那个带头像最新评论来说，可以在foreach循环输出部分的加入回复按钮。这个按钮包含的动作处理就用“onclick”，所以要在此添加 &lt;/p&gt;
&lt;div style=&quot;border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px&quot; id=&quot;codeSnippetWrapper&quot;&gt;
&lt;div style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum1&quot;&gt;   1:&lt;/span&gt; &amp;lt;a id=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;rc_comment-reply-link&amp;quot;&lt;/span&gt; href=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;javascript:void(0)&amp;quot;&lt;/span&gt; onclick=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;rc_reply(arg1,arg2(,...))&amp;quot;&lt;/span&gt;&amp;gt;回复&amp;lt;/a&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;调用函数rc_reply()中我们要传递进去一些需要的参数，那么需要什么呢？因为点击回复按钮后我们是要在此插入评论的表单，而wordpress的发表评论表单包含用户名（author）、邮箱（email）、网址（url）和评论框（comment），但是除此之外，其实还有两个参数，他们是隐藏的input，分别是评论所在页面ID（comment_post_ID）和嵌套时父级评论ID（comment_parent）。这两个参数是必不可少的，author email url则不是必须的，如要你要实现自动填入cookie中访客相关信息，则可以将这三个也当做参数传递。所以，完整的回复按钮如下 &lt;/p&gt;
&lt;div style=&quot;border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px&quot; id=&quot;codeSnippetWrapper&quot;&gt;
&lt;div style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum1&quot;&gt;   1:&lt;/span&gt; &amp;lt;a id=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;rc_comment-reply-link&amp;quot;&lt;/span&gt; href=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;javascript:void(0)&amp;quot;&lt;/span&gt; onclick=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;rc_reply('&amp;lt;?php $comment-&amp;gt;comment_ID ?&amp;gt;', '&amp;lt;?php $comment-&amp;gt;comment_post_ID ?&amp;gt;')&amp;quot;&lt;/span&gt;&amp;gt;回复&amp;lt;/a&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;h3&gt;2.点击回复后在评论下插入评论表单&lt;/h3&gt;
&lt;p&gt;这个表单插入到页面上你有两种选择，一是预先在页面上输出一个完整的评论表单，如在footer.php处，注意要在&amp;lt;body&amp;gt;标签闭合前，然后设置display:none，使之在页面上隐藏。二是直接将表单以串形式赋值到一个js变量，点击回复后直接在页面中插入。这两种方法各有各的好，我是使用第二种，这种方法·较第一种更好接受参数。&lt;/p&gt;
&lt;p&gt;一个完整的大致的表单如下：&lt;/p&gt;
&lt;div style=&quot;border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px&quot; id=&quot;codeSnippetWrapper&quot;&gt;
&lt;div style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum1&quot;&gt;   1:&lt;/span&gt; &amp;lt;div id=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;rc_respond&amp;quot;&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum2&quot;&gt;   2:&lt;/span&gt;     &amp;lt;form id=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;rc_commentform&amp;quot;&lt;/span&gt; method=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;post&amp;quot;&lt;/span&gt; action=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;http://你的域名/wp-comments-post.php&amp;quot;&lt;/span&gt;&amp;gt;&lt;span style=&quot;color: #008000&quot;&gt;//你的域名最好手写上去，如果使用第一种方法，则可以通过wp的the_bloginfo获取博客地址，使用第二种方法则可用window.location.host等。建议直接写上自己的博客地址&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum3&quot;&gt;   3:&lt;/span&gt;         &amp;lt;p&amp;gt;&amp;lt;input type=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;text&amp;quot;&lt;/span&gt; tabindex=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;1&amp;quot;&lt;/span&gt; size=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;22&amp;quot;&lt;/span&gt; value=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt; id=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;rc_author&amp;quot;&lt;/span&gt; name=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;author&amp;quot;&lt;/span&gt;&amp;gt;&amp;lt;label &lt;span style=&quot;color: #0000ff&quot;&gt;for&lt;/span&gt;=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;author&amp;quot;&lt;/span&gt;&amp;gt;&amp;lt;small&amp;gt;Name&amp;lt;/small&amp;gt;&amp;lt;/label&amp;gt;&amp;lt;/p&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum4&quot;&gt;   4:&lt;/span&gt;         &amp;lt;p&amp;gt;&amp;lt;input type=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;text&amp;quot;&lt;/span&gt; aria-required=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;true&amp;quot;&lt;/span&gt; tabindex=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;2&amp;quot;&lt;/span&gt; size=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;22&amp;quot;&lt;/span&gt; value=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt; id=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;rc_email&amp;quot;&lt;/span&gt; name=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;email&amp;quot;&lt;/span&gt;&amp;gt;&amp;lt;label &lt;span style=&quot;color: #0000ff&quot;&gt;for&lt;/span&gt;=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;email&amp;quot;&lt;/span&gt;&amp;gt;&amp;lt;small&amp;gt;Mail&amp;lt;/small&amp;gt;&amp;lt;/label&amp;gt;&amp;lt;/p&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum5&quot;&gt;   5:&lt;/span&gt;         &amp;lt;p&amp;gt;&amp;lt;input type=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;text&amp;quot;&lt;/span&gt; tabindex=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;3&amp;quot;&lt;/span&gt; size=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;22&amp;quot;&lt;/span&gt; value=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;'&amp;quot;&lt;/span&gt; id=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;rc_url&amp;quot;&lt;/span&gt; name=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;url&amp;quot;&lt;/span&gt;&amp;gt;&amp;lt;label &lt;span style=&quot;color: #0000ff&quot;&gt;for&lt;/span&gt;=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;url&amp;quot;&lt;/span&gt;&amp;gt;&amp;lt;small&amp;gt;Website&amp;lt;/small&amp;gt;&amp;lt;/label&amp;gt;&amp;lt;/p&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum6&quot;&gt;   6:&lt;/span&gt;         &amp;lt;p&amp;gt;&amp;lt;textarea tabindex=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;4&amp;quot;&lt;/span&gt; rows=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;5&amp;quot;&lt;/span&gt; cols=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;35&amp;quot;&lt;/span&gt; id=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;rc_comment&amp;quot;&lt;/span&gt; name=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;comment&amp;quot;&lt;/span&gt;&amp;gt;&amp;lt;/textarea&amp;gt;&amp;lt;/p&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum7&quot;&gt;   7:&lt;/span&gt;         &amp;lt;p&amp;gt;&amp;lt;input type=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;submit&amp;quot;&lt;/span&gt; value=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;Submit&amp;quot;&lt;/span&gt; tabindex=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;5&amp;quot;&lt;/span&gt; id=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;rc_submit&amp;quot;&lt;/span&gt; name=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;submit&amp;quot;&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum8&quot;&gt;   8:&lt;/span&gt;         &amp;lt;input type=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;hidden&amp;quot;&lt;/span&gt; id=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;rc_comment_post_ID&amp;quot;&lt;/span&gt; value=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;'&amp;quot;&lt;/span&gt; name=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;comment_post_ID&amp;quot;&lt;/span&gt;&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum9&quot;&gt;   9:&lt;/span&gt;         &amp;lt;input type=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;hidden&amp;quot;&lt;/span&gt; value=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt; id=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;rc_comment_parent&amp;quot;&lt;/span&gt; name=&lt;span style=&quot;color: #006080&quot;&gt;&amp;quot;comment_parent&amp;quot;&lt;/span&gt;&amp;gt;&amp;lt;/p&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum10&quot;&gt;  10:&lt;/span&gt;     &amp;lt;/form&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum11&quot;&gt;  11:&lt;/span&gt; &amp;lt;/div&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;使用第种方法你就将这个表单所在的div#rc_respond加上style=”displaynone“。如果是使用第二种方法，则可以在js中将这个变成字符串形式交给一个变量。&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;inpostad&quot;&gt;&lt;img src=&quot;http://www.qiqiboy.com/wp-content/themes/bluePaled/img/feedad.gif&quot; /&gt;&lt;a href=&quot;http://www.qiqiboy.com/bluepaled&quot; title=&quot;点击下载bluePaled&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://www.qiqiboy.com/wp-content/themes/bluePaled/img/adtest.png&quot; alt=&quot;点击下载bluePaled&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/p&gt;
&lt;h3&gt;3.相关JS处理部分&lt;/h3&gt;
&lt;p&gt;本来想要贴一段代码的，但是后来发现这段代码和具体的页面结构结合很深。由于大家的模板千变万化，所以直接贴出某一具体的代码很可能会误导一些人，所以我就说一下JS里需要处理的部分。首先是要将表单插入到正确的位置，如果你的表单预先输出在页面上，此时就可以使用结点操作将表单移动到需要的位置（如js的appendChild、insertBefore等，以及jQuery的一些结点操作）；如果你的表单还是一窜字符串存在js变量里，则可用innerHTML方式写入到页面的位置上或者是jQuery的html()方法。当然，最重要的是向表单中的comment_post_ID和comment_parent=中填入相关参数，这两个参数值已经是作为函数的参数传递进来了，只需要将值填入即可。&lt;/p&gt;
&lt;h3&gt;4.解决嵌套问题&lt;/h3&gt;
&lt;p&gt;边栏的最新评论你并不知道是不是最后一层回复了，即使知道，我们也要想办法能够对其进行回复。如果不对嵌套做相关处理，如果是最后一层评论，你即使回复了，也是无效的，仍然会被当做主评论显示。所以我们要知道一条评论目前的所在层深。怎么取得呢？我们可以循环查询数据库中一条评论表中的commet_parent键值，如果不为0，则说明他有父级评论，则再去查询它的父级评论的comment_parent键值，依次循环。&lt;/p&gt;
&lt;div style=&quot;border-bottom: silver 1px solid; text-align: left; border-left: silver 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; font-size: 8pt; overflow: auto; border-top: silver 1px solid; cursor: text; border-right: silver 1px solid; padding-top: 4px&quot; id=&quot;codeSnippetWrapper&quot;&gt;
&lt;div style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot; id=&quot;codeSnippet&quot;&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum1&quot;&gt;   1:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt;//这段代码依然是加在后台foreach循环中&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum2&quot;&gt;   2:&lt;/span&gt; $comment_depth = 1;&lt;span style=&quot;color: #008000&quot;&gt;//层深初始化为1&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum3&quot;&gt;   3:&lt;/span&gt; $tmp_c = $comment;$comment_parent&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum4&quot;&gt;   4:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;while&lt;/span&gt;($tmp_c-&amp;gt;comment_parent != 0){&lt;span style=&quot;color: #008000&quot;&gt;//循环查询&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum5&quot;&gt;   5:&lt;/span&gt;     $comment_depth++;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum6&quot;&gt;   6:&lt;/span&gt;     $tmp_c = get_comment($tmp_c-&amp;gt;comment_parent);&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum7&quot;&gt;   7:&lt;/span&gt; }&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum8&quot;&gt;   8:&lt;/span&gt; &lt;span style=&quot;color: #008000&quot;&gt;//关键处，这里依然是用了父级ID替换方法，将对最后一层的回复替换为对倒数第二层的回复&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum9&quot;&gt;   9:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;if&lt;/span&gt;($comment_depth &amp;lt; get_option(&lt;span style=&quot;color: #006080&quot;&gt;'thread_comments_depth'&lt;/span&gt;))&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: -0.5em 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum10&quot;&gt;  10:&lt;/span&gt;     $comment_parent=$comment-&amp;gt;comment_ID;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/p&gt;
&lt;pre style=&quot;border-bottom-style: none; text-align: left; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0px; padding-left: 0px; width: 100%; padding-right: 0px; font-family: &amp;#39;Courier New&amp;#39;, courier, monospace; direction: ltr; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px&quot;&gt;&lt;span style=&quot;padding-bottom: 1px; padding-left: 1px; padding-right: 1px; background: #f4f4f4; color: #606060; margin-left: -1em; padding-top: 1px&quot; id=&quot;lnum11&quot;&gt;  11:&lt;/span&gt; &lt;span style=&quot;color: #0000ff&quot;&gt;else&lt;/span&gt; $comment_parent=get_comment($comment-&amp;gt;comment_parent)-&amp;gt;comment_ID;&lt;/pre&gt;
&lt;p&gt;&lt;!--CRLF--&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;然后你就可以用$comment_parent去替换第一步中的$comment-&amp;gt;comment_ID。&lt;br /&gt;
  &lt;/p&gt;
&lt;p&gt;做完以上四步，基本上边栏回复的雏形就完成了。当然，此时你回复后点击提交会跳转刷新页面，并不是ajax方式，其实这个也简单，你甚至可以照搬你文章评论处的ajax提交方式，只需改改相关id值即可。&lt;/p&gt;
&lt;p&gt;OK，具体中有什么问题还可以留言询问，我尽量解决。&lt;/p&gt;
&lt;p&gt;&amp;#160;&lt;img style=&quot;display: inline&quot; class=&quot;wlDisabledImage&quot; title=&quot;边栏回复&quot; alt=&quot;边栏回复&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/e7eecd6c520f.png&quot; width=&quot;321&quot; height=&quot;281&quot; /&gt;&lt;/p&gt;
&lt;h4 class=&quot;related_post_title&quot;&gt;&lt;span class=&quot;now&quot;&gt;Related Posts&lt;/span&gt;&lt;/h4&gt;&lt;div class=&quot;tags&quot;&gt;More Articles about: &lt;a href='http://www.qiqiboy.com/tags/ajax' rel='tag'&gt;ajax&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/javascript' rel='tag'&gt;javascript&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/php' rel='tag'&gt;PHP&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/wordpress' rel='tag'&gt;WordPress&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/%e8%af%84%e8%ae%ba' rel='tag'&gt;评论&lt;/a&gt;&lt;/div&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/16/visitor-information-tencent-suspended-micro-display.html&quot; title=&quot;仿腾讯微博式访客信息悬浮显示（JavaScript &amp;#038; ajax）&quot;&gt;仿腾讯微博式访客信息悬浮显示（JavaScript &amp;#038; ajax）&lt;/a&gt; (95)&lt;br /&gt;&lt;small&gt;效果如你在我博客评论列表处，你可以直接点击评论者头像，或者将鼠标放到头像上2s，就会出现loading图标，从后台获取数据后就会出现一个长方形框，显示了当前评论者的头像，姓...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/07/15/easily-create-your-own-wordpress-quote-reply-function.html&quot; title=&quot;添加引用按钮&amp;mdash;&amp;mdash;轻松打造属于你的WordPress引用回复功能&quot;&gt;添加引用按钮&amp;mdash;&amp;mdash;轻松打造属于你的WordPress引用回复功能&lt;/a&gt; (25)&lt;br /&gt;&lt;small&gt;
  之前的《完美解决WordPress嵌套回复的层深问题（无限嵌套）&amp;lt;一&amp;gt;》这篇文章中我讲了自己关于实现WordPress无限嵌套的一个思路。今天又有同学询问引用功能是如何实现的，我就简...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/14/introduce-my-blog-theme-for-you-2.html&quot; title=&quot;【SimPaled篇】Introduce My Blog Theme For You&quot;&gt;【SimPaled篇】Introduce My Blog Theme For You&lt;/a&gt; (73)&lt;br /&gt;&lt;small&gt;  声明：博客顶部仿自微软全球MSN首页(http://www.msn.com)，仅供本人学习研究之用，未用之牟利。 

  此主题支持CMS式首页与普通文章列表式首页风格。CMS首页绝大部分元素采用ajax方式装...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/10/ajax-version-comment-reply-feature-immediately-sidebar.html&quot; title=&quot;【效果测试展示篇】Ajax版即时侧边栏评论回复功能&quot;&gt;【效果测试展示篇】Ajax版即时侧边栏评论回复功能&lt;/a&gt; (68)&lt;br /&gt;&lt;small&gt;自写了《博客加入若干Ajax效果》以来，在博客上陆续添加启用了一些ajax效果，一方面丰富博客体验，一方面也当做练习学习js的一种实践吧。昨天的时候，将wilin版的侧边栏最新评论...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/07/effect-of-adding-some-ajax-blog.html&quot; title=&quot;博客加入若干Ajax效果&quot;&gt;博客加入若干Ajax效果&lt;/a&gt; (57)&lt;br /&gt;&lt;small&gt;
  

    评论框的简单计数器（无需改动模板，附带输入字数限制功能） 

    添加引用按钮——轻松打造属于你的WordPress引用回复功能 

    wordpress高亮搜索结果+实现关键字前后截断显...&lt;/small&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;声明:&lt;/strong&gt; 本站遵循 &lt;a href=&quot;http:\/\/creativecommons.org/licenses/by-nc-sa/3.0/&quot;&gt;署名-非商业性使用-相同方式共享 3.0&lt;/a&gt; 共享协议. 转载请注明转自 &lt;a href=&quot;http://www.qiqiboy.com&quot;&gt;I'm qiqiboy !&lt;/a&gt; &lt;/p&gt; &lt;p&gt;本文地址: &lt;a href=&quot;http://qiqi.boy.im/76&quot;&gt;http://qiqi.boy.im/76&lt;a&gt;&lt;/p&gt;&lt;span style=&quot;background:#cc5566;color:#fffff;&quot;&gt;&lt;h4&gt;Look, this post is replyed so hot, let's go O(∩_∩)O~.&lt;/h4&gt;&lt;/span&gt;&lt;h3&gt;Related comments&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;2010年08月16日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/13/ever-present-sidebar-instant-recovery-capabilities-comments.html#comment-4244&quot;&gt;【SimPaled篇】Introduce My Blog Theme For You - I'm qiqiboy !&lt;/a&gt;say: [...] 边栏的最新评论支持翻页浏览、单条评论查看、即时ajax回复等功能。其中最新文章(recent post)部分支持more无限下滚查看。——注：边栏回复参考《无时不在的评论 侧边栏即时回复功能》 [...]&lt;/li&gt;&lt;li&gt;2010年08月15日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/13/ever-present-sidebar-instant-recovery-capabilities-comments.html#comment-4223&quot;&gt;超人&lt;/a&gt;say: &lt;a href=&quot;#comment-4221&quot; rel=&quot;nofollow&quot;&gt;@QiQiBoY &lt;/a&gt; 
哈哈。。你在ad&lt;/li&gt;&lt;li&gt;2010年08月15日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/13/ever-present-sidebar-instant-recovery-capabilities-comments.html#comment-4221&quot;&gt;QiQiBoY&lt;/a&gt;say: &lt;a href=&quot;#comment-4218&quot; rel=&quot;nofollow&quot;&gt;@超人&lt;/a&gt;
额。。我试用后觉得很方便的功能。。
有了这个，我回复你这三条不在一个页面的评论，在侧边栏不用翻页就可以全部回复了。。&lt;/li&gt;&lt;li&gt;2010年08月15日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/13/ever-present-sidebar-instant-recovery-capabilities-comments.html#comment-4218&quot;&gt;超人&lt;/a&gt;say: 这功能有点奢侈了。。 基本用不上啦~&lt;/li&gt;&lt;li&gt;2010年08月15日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/13/ever-present-sidebar-instant-recovery-capabilities-comments.html#comment-4207&quot;&gt;小邪&lt;/a&gt;say: &lt;a href=&quot;#comment-4103&quot; rel=&quot;nofollow&quot;&gt;@liuqiqi &lt;/a&gt; 
拖出去切JJ ~  &lt;img src='http://www.qiqiboy.com/wp-includes/images/smilies/icon_cool.gif' alt=':cool:' class='wp-smiley' /&gt; &lt;/li&gt;&lt;li&gt;2010年08月14日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/13/ever-present-sidebar-instant-recovery-capabilities-comments.html#comment-4158&quot;&gt;江流&lt;/a&gt;say: 这个挺实用的 不过我不折腾了- -&lt;/li&gt;&lt;li&gt;2010年08月14日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/13/ever-present-sidebar-instant-recovery-capabilities-comments.html#comment-4136&quot;&gt;QiQiBoY&lt;/a&gt;say: &lt;a href=&quot;#comment-4133&quot; rel=&quot;nofollow&quot;&gt;@Alan &lt;/a&gt; 
哈哈，无折腾，不WP。。。&lt;/li&gt;&lt;li&gt;2010年08月14日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/13/ever-present-sidebar-instant-recovery-capabilities-comments.html#comment-4135&quot;&gt;QiQiBoY&lt;/a&gt;say: &lt;a href=&quot;#comment-4132&quot; rel=&quot;nofollow&quot;&gt;@减肥药 &lt;/a&gt; 
你减肥要吃多了？&lt;/li&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408666556/qiqiboy/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/qiqiboy/~7883632/408666556/5446216/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/qiqiboy/408666556/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/qiqiboy/408666556/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://www.qiqiboy.com/2010/08/13/ever-present-sidebar-instant-recovery-capabilities-comments.html/feed</wfw:commentRss><slash:comments>24</slash:comments><description>&lt;p&gt;这个表单插入到页面上你有两种选择，一是预先在页面上输出一个完整的评论表单，如在footer.php处，注意要在&amp;#60;body&amp;#62;标签闭合前，然后设置display:none，使之在页面上隐藏。二是直接将表单以串形式赋值到一个js变量，点击回复后直接在页面中插入。这两种方法各有各的好，我是使用第二种，这种方法·较第一种更好接受参数。&lt;/p&gt;

&lt;p&gt;一个完整的大致的表单如下：&lt;/p&gt;&lt;img style=&quot;display: inline&quot; class=&quot;wlDisabledImage&quot; title=&quot;边栏回复&quot; alt=&quot;边栏回复&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/e7eecd6c520f.png&quot; width=&quot;321&quot; height=&quot;281&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408666556/qiqiboy/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/qiqiboy/~7883632/408666556/5446216/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/qiqiboy/408666556/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/qiqiboy/408666556/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>评论</category><category>PHP</category><category>javascript</category><category>ajax</category><category>WordPress</category><pubDate>Fri, 13 Aug 2010 18:07:12 +0800</pubDate><author>QiQiBoY</author><comments>http://www.qiqiboy.com/2010/08/13/ever-present-sidebar-instant-recovery-capabilities-comments.html#comments</comments><guid isPermaLink="false">http://www.qiqiboy.com/2010/08/13/ever-present-sidebar-instant-recovery-capabilities-comments.html</guid><dc:creator>QiQiBoY</dc:creator><fs:srclink>http://www.qiqiboy.com/2010/08/13/ever-present-sidebar-instant-recovery-capabilities-comments.html</fs:srclink><fs:srcfeed>http://www.qiqiboy.com/feed</fs:srcfeed><fs:itemid>feedsky/qiqiboy/~7883632/408666556/5446216</fs:itemid></item><item><title>【效果测试展示篇】Ajax版即时侧边栏评论回复功能</title><link>http://item.feedsky.com/~feedsky/qiqiboy/~7883632/408666557/5446216/1/item.html</link><content:encoded>&lt;p&gt;自写了《&lt;a href=&quot;http://www.qiqiboy.com/2010/08/07/effect-of-adding-some-ajax-blog.html&quot; target=&quot;_blank&quot;&gt;&lt;u&gt;博客加入若干Ajax效果&lt;/u&gt;&lt;/a&gt;》以来，在博客上陆续添加启用了一些ajax效果，一方面丰富博客体验，一方面也当做练习学习js的一种实践吧。昨天的时候，将wilin版的侧边栏最新评论修改成了AJax版的，可以翻看评论列表，也可以进入单个评论查看模式（借鉴了mg12的wp-recentcomment插件），几乎就是wp-rc的精简版，效果几乎一模一样，只不过wp-rc的脚本使用jQuery，更新列表时会有渐变的过渡效果。我自己的只是给加了个自己写的滑动效果，还能凑活。&lt;/p&gt;
&lt;p&gt;只不过只是这样并不能满足我，我想既然边栏最新评论列表做成ajax可翻页形式，那么就是为了让读者去查看寻找自己感兴趣的评论，为了增进交流的便利，在侧边栏能直接回复自己感兴趣的评论那会很棒。&lt;/p&gt;
&lt;p&gt;于是着手实现了这个效果。&lt;/p&gt;
&lt;h4&gt;考虑会遇到的的难点&lt;/h4&gt;
&lt;p&gt;在页面上插入表单很容易，要注意的一点是要阻止表单提交默认行为，开发过表单提交前验证的应该都知道怎么做。有困难的一点是评论嵌套，因为嵌套的深度有深度，而在边栏显示的评论你并不知道它是不是最后一层了，如果你对嵌套的最后一层评论回复了，那么这条新评论就会被当做主评论显示。我之前写过《&lt;a href=&quot;http://www.qiqiboy.com/2010/07/07/perfect-solution-wordpress-nested-layers-deep-back-problems.html&quot;&gt;&lt;font color=&quot;#ff0000&quot;&gt;完美解决WordPress嵌套回复的层深问题（无限嵌套）&amp;lt;一&amp;gt;&lt;/font&gt;&lt;/a&gt;》，看过的应该都知道，我是通过修改js调用脚本中传递的父级评论id值来使回复最后一层的评论在实际上嵌套到倒数第二层，这样就变相的实现了无限嵌套。&lt;/p&gt;
&lt;p&gt;所以在解决边栏回复评论功能的嵌套问题是，我也是通过后台查询获取这条评论的嵌套深度，如果它是设置的最大深度了，就返回它的父一级评论的id，这样一来，也就解决了嵌套的问题。&lt;/p&gt;
&lt;p&gt;  &lt;div class=&quot;inpostad&quot;&gt;&lt;img src=&quot;http://www.qiqiboy.com/wp-content/themes/bluePaled/img/feedad.gif&quot; /&gt;&lt;a href=&quot;http://www.qiqiboy.com/bluepaled&quot; title=&quot;点击下载bluePaled&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://www.qiqiboy.com/wp-content/themes/bluePaled/img/adtest.png&quot; alt=&quot;点击下载bluePaled&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;h4&gt;这个功能的优势和局限性&lt;/h4&gt;
&lt;p&gt;&lt;img style=&quot;margin: 0px 21px 0px 8px; display: inline&quot; class=&quot;wlDisabledImage&quot; title=&quot;11&quot; alt=&quot;11&quot; align=&quot;left&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/11.png&quot; width=&quot;306&quot; height=&quot;159&quot; /&gt;这个功能会极大地方便访客间的交流，两人之间讨论某一问题，你不必一直在一个页面回复评论，你可以在博客的任何一个页面回复他人。甚至不用刷新页面，你只需要翻看边栏，最新的评论就会即时显示，你可以直接对其进行回复，并且是嵌套回复。&lt;/p&gt;
&lt;p&gt;当然，局限性也有，主要是不能回复博主的评论，因为最新评论并不显示博主的评论，所以普通访客就不能及时在侧边栏回复博主了。&lt;/p&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;p&gt;&lt;font style=&quot;background-color: #ffff00&quot;&gt;有兴趣的可以在边栏回复测试，可以在最新评论处翻看找到一个名叫&lt;strong&gt;liuqiqi&lt;/strong&gt;的发表的评论，大家可以对她进行回复测试。&lt;strong&gt;liuqiqi&lt;/strong&gt;就下面这人，一个总是第一时间发表“&lt;font color=&quot;#ff0000&quot;&gt;&lt;strong&gt;美美的沙发。。。&lt;/strong&gt;&lt;/font&gt;”的人。在最新评论处翻到她后，点击蓝色右向双箭头（如下图蓝色圆圈中），进入单条评论查看模式（如上图），再点击“reply”即可进行回复。&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style=&quot;display: inline&quot; class=&quot;wlDisabledImage&quot; title=&quot;122&quot; alt=&quot;122&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/122.png&quot; width=&quot;311&quot; height=&quot;47&quot; /&gt;&lt;/p&gt;
&lt;p&gt;想要取消回复或者回复成功后想要返回，可以点击下图中的back按钮返回最新评论列表。&lt;img style=&quot;display: block; float: none; margin-left: auto; margin-right: auto&quot; class=&quot;wlDisabledImage&quot; title=&quot;222&quot; alt=&quot;222&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/222.png&quot; width=&quot;318&quot; height=&quot;295&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;你也不用担心在边栏回复后返回记不清回复过谁了，因为你回复过的人会被记录下来，在刷新页面前，你只能对一个人回复一次。&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;另外我的日志下方的评论回复也换上了自己的，功能还很简单，原生JS的。&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;h4 class=&quot;related_post_title&quot;&gt;&lt;span class=&quot;now&quot;&gt;Related Posts&lt;/span&gt;&lt;/h4&gt;&lt;div class=&quot;tags&quot;&gt;More Articles about: &lt;a href='http://www.qiqiboy.com/tags/ajax' rel='tag'&gt;ajax&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/code' rel='tag'&gt;code&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/javascript' rel='tag'&gt;javascript&lt;/a&gt;, &lt;a href='http://www.qiqiboy.com/tags/wordpress' rel='tag'&gt;WordPress&lt;/a&gt;&lt;/div&gt;&lt;ul class=&quot;related_post&quot;&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/09/03/wall-display-of-my-readers-with-js-code-used.html&quot; title=&quot;我的读者墙展示（附所用JS代码）&quot;&gt;我的读者墙展示（附所用JS代码）&lt;/a&gt; (14)&lt;br /&gt;&lt;small&gt;好多人都在博客上弄了个读者墙，我之前也搞过，但是换了新主题之后就没再添加了。所以抽了个时间，在links页面加了读者墙，展示的是最近三个月内的评论数量在前72名的访客头像...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/16/visitor-information-tencent-suspended-micro-display.html&quot; title=&quot;仿腾讯微博式访客信息悬浮显示（JavaScript &amp;#038; ajax）&quot;&gt;仿腾讯微博式访客信息悬浮显示（JavaScript &amp;#038; ajax）&lt;/a&gt; (95)&lt;br /&gt;&lt;small&gt;效果如你在我博客评论列表处，你可以直接点击评论者头像，或者将鼠标放到头像上2s，就会出现loading图标，从后台获取数据后就会出现一个长方形框，显示了当前评论者的头像，姓...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/14/introduce-my-blog-theme-for-you-2.html&quot; title=&quot;【SimPaled篇】Introduce My Blog Theme For You&quot;&gt;【SimPaled篇】Introduce My Blog Theme For You&lt;/a&gt; (73)&lt;br /&gt;&lt;small&gt;  声明：博客顶部仿自微软全球MSN首页(http://www.msn.com)，仅供本人学习研究之用，未用之牟利。 

  此主题支持CMS式首页与普通文章列表式首页风格。CMS首页绝大部分元素采用ajax方式装...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/13/ever-present-sidebar-instant-recovery-capabilities-comments.html&quot; title=&quot;【原理指导篇】无时不在的评论 侧边栏即时回复功能&quot;&gt;【原理指导篇】无时不在的评论 侧边栏即时回复功能&lt;/a&gt; (24)&lt;br /&gt;&lt;small&gt;
这个表单插入到页面上你有两种选择，一是预先在页面上输出一个完整的评论表单，如在footer.php处，注意要在&amp;lt;body&amp;gt;标签闭合前，然后设置display:none，使之在页面上隐藏。二是直接...&lt;/small&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;http://www.qiqiboy.com/2010/08/07/effect-of-adding-some-ajax-blog.html&quot; title=&quot;博客加入若干Ajax效果&quot;&gt;博客加入若干Ajax效果&lt;/a&gt; (57)&lt;br /&gt;&lt;small&gt;
  

    评论框的简单计数器（无需改动模板，附带输入字数限制功能） 

    添加引用按钮——轻松打造属于你的WordPress引用回复功能 

    wordpress高亮搜索结果+实现关键字前后截断显...&lt;/small&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;声明:&lt;/strong&gt; 本站遵循 &lt;a href=&quot;http:\/\/creativecommons.org/licenses/by-nc-sa/3.0/&quot;&gt;署名-非商业性使用-相同方式共享 3.0&lt;/a&gt; 共享协议. 转载请注明转自 &lt;a href=&quot;http://www.qiqiboy.com&quot;&gt;I'm qiqiboy !&lt;/a&gt; &lt;/p&gt; &lt;p&gt;本文地址: &lt;a href=&quot;http://qiqi.boy.im/73&quot;&gt;http://qiqi.boy.im/73&lt;a&gt;&lt;/p&gt;&lt;span style=&quot;background:#cc5566;color:#fffff;&quot;&gt;&lt;h4&gt;Look, this post is replyed so hot, let's go O(∩_∩)O~.&lt;/h4&gt;&lt;/span&gt;&lt;h3&gt;Related comments&lt;/h3&gt;&lt;ul&gt;&lt;li&gt;2010年08月20日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/10/ajax-version-comment-reply-feature-immediately-sidebar.html#comment-4401&quot;&gt;插件发布：边栏最新评论及ajax回复插件&amp;mdash;&amp;mdash;WP RC Reply AJAX - I'm qiqiboy !&lt;/a&gt;say: [...] 之前在《Ajax版即时侧边栏评论回复功能》一文中我已经提到了我的侧边栏回复，我将其稍作改造，做成了今天的这个插件，名字叫WP RC Reply AJAX，全称是wordpress recent comments reply ajax。 [...]&lt;/li&gt;&lt;li&gt;2010年08月15日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/10/ajax-version-comment-reply-feature-immediately-sidebar.html#comment-4212&quot;&gt;小邪&lt;/a&gt;say: &lt;a href=&quot;#comment-4026&quot; rel=&quot;nofollow&quot;&gt;@QiQiBoY &lt;/a&gt; 
IE内核浏览器去屎 ~  &lt;img src='http://www.qiqiboy.com/wp-includes/images/smilies/icon_twisted.gif' alt=':twisted:' class='wp-smiley' /&gt; &lt;/li&gt;&lt;li&gt;2010年08月13日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/10/ajax-version-comment-reply-feature-immediately-sidebar.html#comment-4102&quot;&gt;【原理指导篇】无时不在的评论 侧边栏即时回复功能 - I'm qiqiboy !&lt;/a&gt;say: [...] 在上一篇《Ajax版即时侧边栏评论回复功能》中我简单介绍了我最新给博客加入的一个... [...]&lt;/li&gt;&lt;li&gt;2010年08月13日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/10/ajax-version-comment-reply-feature-immediately-sidebar.html#comment-4101&quot;&gt;透视眼镜&lt;/a&gt;say: 精辟！一语中的 。。&lt;/li&gt;&lt;li&gt;2010年08月12日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/10/ajax-version-comment-reply-feature-immediately-sidebar.html#comment-4079&quot;&gt;zwwooooo&lt;/a&gt;say: &lt;a href=&quot;#comment-4074&quot; rel=&quot;nofollow&quot;&gt;@QiQiBoY &lt;/a&gt; 
我在想，能否做个类似的插件，我看很多针对wp后台的插件&lt;/li&gt;&lt;li&gt;2010年08月12日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/10/ajax-version-comment-reply-feature-immediately-sidebar.html#comment-4074&quot;&gt;QiQiBoY&lt;/a&gt;say: &lt;a href=&quot;#comment-3990&quot; rel=&quot;nofollow&quot;&gt;@zwwooooo &lt;/a&gt; 
额。。后台翻了半天，我找不到相关功能代码在哪里。。。wp-admin里东西太多。。&lt;/li&gt;&lt;li&gt;2010年08月12日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/10/ajax-version-comment-reply-feature-immediately-sidebar.html#comment-4073&quot;&gt;QiQiBoY&lt;/a&gt;say: &lt;a href=&quot;#comment-4071&quot; rel=&quot;nofollow&quot;&gt;@winy&lt;/a&gt;
这个必须有。。。O(∩_∩)O~&lt;/li&gt;&lt;li&gt;2010年08月12日, &lt;a href=&quot;http://www.qiqiboy.com/2010/08/10/ajax-version-comment-reply-feature-immediately-sidebar.html#comment-4072&quot;&gt;QiQiBoY&lt;/a&gt;say: &lt;a href=&quot;#comment-4070&quot; rel=&quot;nofollow&quot;&gt;@winy &lt;/a&gt;  &lt;img src='http://www.qiqiboy.com/wp-includes/images/smilies/icon_exclaim.gif' alt=':!:' class='wp-smiley' /&gt;  
额。。我不喜欢页面有东西老跟着飘来飘去。。影响我注意力。。&lt;/li&gt;&lt;/ul&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408666557/qiqiboy/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/qiqiboy/~7883632/408666557/5446216/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/qiqiboy/408666557/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/qiqiboy/408666557/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded><wfw:commentRss>http://www.qiqiboy.com/2010/08/10/ajax-version-comment-reply-feature-immediately-sidebar.html/feed</wfw:commentRss><slash:comments>68</slash:comments><description>&lt;p&gt;自写了《&lt;a href=&quot;http://www.qiqiboy.com/2010/08/07/effect-of-adding-some-ajax-blog.html&quot; target=&quot;_blank&quot;&gt;&lt;u&gt;博客加入若干Ajax效果&lt;/u&gt;&lt;/a&gt;》以来，在博客上陆续添加启用了一些ajax效果，一方面丰富博客体验，一方面也当做练习学习js的一种实践吧。昨天的时候，将wilin版的侧边栏最新评论修改成了AJax版的，可以翻看评论列表，也可以进入单个评论查看模式（借鉴了mg12的wp-recentcomment插件），几乎就是wp-rc的精简版，效果几乎一模一样，只不过wp-rc的脚本使用jQuery，更新列表时会有渐变的过渡效果。我自己的只是给加了个自己写的滑动效果，还能凑活。&lt;/p&gt;

&lt;p&gt;只不过只是这样并不能满足我，我想既然边栏最新评论列表做成ajax可翻页形式，那么就是为了让读者去查看寻找自己感兴趣的评论，为了增进交流的便利，在侧边栏能直接回复自己感兴趣的评论那会很棒。&lt;/p&gt;

&lt;p&gt;于是着手实现了这个效果。&lt;/p&gt;&lt;img style=&quot;display: block; float: none; margin-left: auto; margin-right: auto&quot; class=&quot;wlDisabledImage&quot; title=&quot;222&quot; alt=&quot;222&quot; src=&quot;http://www.qiqiboy.com/wp-content/uploads/2010/08/222.png&quot; width=&quot;318&quot; height=&quot;295&quot; /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/408666557/qiqiboy/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/qiqiboy/~7883632/408666557/5446216/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;&lt;p class=&quot;fswww1&quot;&gt;&lt;a href=&quot;http://www1.feedsky.com/r/l/feedsky/qiqiboy/408666557/art01.html&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; ismap=&quot;ismap&quot; src=&quot;http://www1.feedsky.com/r/i/feedsky/qiqiboy/408666557/art01.gif&quot; onerror=&quot;this.style.display='none'&quot; /&gt;&lt;/a&gt;&lt;/p&gt;</description><category>code</category><category>javascript</category><category>ajax</category><category>WordPress</category><pubDate>Tue, 10 Aug 2010 20:35:09 +0800</pubDate><author>QiQiBoY</author><comments>http://www.qiqiboy.com/2010/08/10/ajax-version-comment-reply-feature-immediately-sidebar.html#comments</comments><guid isPermaLink="false">http://www.qiqiboy.com/2010/08/10/ajax-version-comment-reply-feature-immediately-sidebar.html</guid><dc:creator>QiQiBoY</dc:creator><fs:srclink>http://www.qiqiboy.com/2010/08/10/ajax-version-comment-reply-feature-immediately-sidebar.html</fs:srclink><fs:srcfeed>http://www.qiqiboy.com/feed</fs:srcfeed><fs:itemid>feedsky/qiqiboy/~7883632/408666557/5446216</fs:itemid></item></channel></rss>