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

<channel>
	<title>糖醋排骨 &#187; dev</title>
	<atom:link href="http://interjc.net/tags/dev/feed" rel="self" type="application/rss+xml" />
	<link>http://interjc.net</link>
	<description></description>
	<lastBuildDate>Mon, 30 Jan 2012 09:30:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://interjc.net/?pushpress=hub'/>
		<item>
		<title>Windows 上使用 Github 手记</title>
		<link>http://interjc.net/archives/2011/09/05/using-github-on-windows.html</link>
		<comments>http://interjc.net/archives/2011/09/05/using-github-on-windows.html#comments</comments>
		<pubDate>Mon, 05 Sep 2011 07:52:02 +0000</pubDate>
		<dc:creator>interjc</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[GitHub]]></category>

		<guid isPermaLink="false">http://interjc.net/?p=980</guid>
		<description><![CDATA[本准备玩一下 Google Code 上的 Git ，孰料 Google 提供的这个服务极其蛋疼，也许是本人才疏学浅吧，那个莫名其妙的 .netrc 文件就是不能让我免于在 pull/push 时输入密码，各种文档和解释也是含糊其辞，忍无可忍，纵然作为一名 Google 粉丝，我也只有投入 Github 的怀抱了（当然，该使用 SVN 的地方还是继续）。直接进入正题吧，首先是环境的搭建（本人使用的是 Git + msysgit + TortoiseGit + Putty 的组合）： 1. 先下载所需要的安装程序：Git、msysgit、TortoiseGit（32bit，64bit）、Putty （以上均为官方下载链接，如担心有毒请自行Google）； 2. 顺序安装以上下载的程序（先关闭所有的窗口，360会报不安全，信任就好），基本就是一路Next了，这个没啥好说的； 3. 注册一个Github帐号：https://github.com/plans，不必理会那些Plans，免费账号就可以创建无限制的开源项目了，只是容量小点（300M，不知道是每月还是总共，反正小项目来说是够用了）； 4. 创建一个新的项目：https://github.com/repositories/new； 5. 在开始菜单中找到Putty的文件夹，打开PuTTYgen（密钥生成器），点击生成，然后出来一个类似于这样的东西（公钥）： 点击保存私钥，随便起个名字随便放在哪（无视关于叫你填写密码的提示）；将图中显示的公钥复制，打开Github中Account Setting页面里的SSH Public Key 选项卡，选择 Add another public key ，将刚才复制的公钥复制进去，随便起个名字，提交； 6. 在开始菜单中找到Putty的文件夹，打开 Pageant ，选择增加密钥，把刚才保存的那个后缀名为 ppk 的私钥导进去； 7. 在 [...]]]></description>
			<content:encoded><![CDATA[<p>本准备玩一下 Google Code 上的 <a href="http://git-scm.com/" target="_blank">Git</a> ，孰料 Google 提供的这个服务极其蛋疼，也许是本人才疏学浅吧，那个莫名其妙的 .netrc 文件就是不能让我免于在 pull/push 时输入密码，各种文档和解释也是含糊其辞，忍无可忍，纵然作为一名 Google 粉丝，我也只有投入 <a href="https://github.com/" target="_blank">Github</a> 的怀抱了（当然，该使用 SVN 的地方还是继续）。直接进入正题吧，首先是环境的搭建（本人使用的是 Git + <a href="http://code.google.com/p/msysgit/" target="_blank">msysgit</a> + <a href="http://code.google.com/p/tortoisegit/" target="_blank">TortoiseGit</a> + <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">Putty</a> 的组合）：</p>
<p>1. 先下载所需要的安装程序：<a href="http://msysgit.googlecode.com/files/Git-1.7.6-preview20110708.exe">Git</a>、<a href="http://msysgit.googlecode.com/files/msysGit-fullinstall-1.7.6-preview20110708.exe">msysgit</a>、TortoiseGit（<a href="http://tortoisegit.googlecode.com/files/TortoiseGit-1.7.3.0-32bit.msi">32bit</a>，<a href="http://tortoisegit.googlecode.com/files/TortoiseGit-1.7.3.0-64bit.msi">64bit</a>）、<a href="http://the.earth.li/~sgtatham/putty/latest/x86/putty-0.61-installer.exe">Putty</a> （以上均为官方下载链接，如担心有毒请自行Google）；<br />
2. 顺序安装以上下载的程序（先关闭所有的窗口，360会报不安全，信任就好），基本就是一路Next了，这个没啥好说的；<br />
3. 注册一个Github帐号：<a href="https://github.com/plans">https://github.com/plans</a>，不必理会那些Plans，免费账号就可以创建无限制的开源项目了，只是容量小点（300M，不知道是每月还是总共，反正小项目来说是够用了）；<br />
4. 创建一个新的项目：<a href="https://github.com/repositories/new">https://github.com/repositories/new</a>；<br />
5. 在开始菜单中找到Putty的文件夹，打开PuTTYgen（密钥生成器），点击生成，然后出来一个类似于这样的东西（公钥）：<br />
<img src="http://i824.photobucket.com/albums/zz165/interjc/2011-9-515-21-18.jpg" alt="PuTTY密钥" /><br />
点击保存私钥，随便起个名字随便放在哪（无视关于叫你填写密码的提示）；将图中显示的公钥复制，打开Github中<a href="https://github.com/account" target="_blank">Account Setting</a>页面里的<a href="https://github.com/account/ssh" target="_blank">SSH Public Key</a> 选项卡，选择 Add another public key ，将刚才复制的公钥复制进去，随便起个名字，提交；<br />
6. 在开始菜单中找到Putty的文件夹，打开 Pageant ，选择增加密钥，把刚才保存的那个后缀名为 ppk 的私钥导进去；<br />
7. 在 <a href="https://github.com/" target="_blank">Dashboard</a> 页面的 Your Repositories 栏目下可以找到自己创建的那个项目，点击进去。能得到该项目的 Git 地址，比如我创建的 <a href="https://github.com/interjc/ShadowBlue" target="_blank">Shadowblue</a> 地址就是：</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">git@github.com:interjc/ShadowBlue.git</pre></div></div>

<p>找到你要放置项目的地方，右键选择 Git Clone , Url 处填入刚才那个地址，点击 “OK” ，项目就应该在本地成功建立了。</p>
<p>然后就是使用了：</p>
<p>1. 在本地项目目录中添加或进行改动以后需要先 Commit（你也可以用命令行，不过我这里示范时使用右键菜单中的 Git Commit -> “master” ）,选择需要提交的改动，点击“OK”，这个时候项目的版本就在本地维护起来了；<br />
2. 选择右键菜单中的 Git Sync .. ，在出现的界面中先选择 Pull，然后 Push，全部顺利的话，就会将本地的版本管理与服务器上的同步了。<br />
3. <del datetime="2011-09-06T07:31:45+00:00">使用的时候稍显蛋疼的是每次开机或退出Pageant以后都要重新打开它并导入密钥以后，Git的验证才能通过，不像TortoiseSVN是自动保存的（可能是我没研究透彻吧）</del>在TortoiseGit -> Setting -> Remote -> origin 下的 Putty 项中通过浏览加载先前保存的 ppk 文件并保存，Sync 的时候勾选 Autoload Putty key 选项，每次就会自动打开pageant载入key了；<br />
4. 当服务器上的代码有变更以后，本地必须先 Pull 以后才可以 Push ，有效地避免了 SVN 上你刚上传一个东西，就被别人覆盖掉的坑爹情况，麻烦就麻烦一点吧，习惯就好；<br />
5. 推荐使用 <a href="http://winmerge.org/" target="_blank">WinMerge</a> 取代 TortoiseGit 自带的 Merge 工具，因为自带那个太蛋疼了。WinMerge 安装以后，在 TortoiseGit -> Settings 中，将 External Programs 下的 Diff Viewer 及 Merge Tool 中的 TortoiseMerge 改为 External ，下面填写 WinMergeU.exe 的路径即可，比如：</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">D:\Program Files\WinMerge\WinMergeU.exe</pre></div></div>

<p>当然你如果觉得自带的 Merge 工具更好那就当我这条没说吧～<br />
6. Have fun with Git ~</p>
<p>PS：这里不想讨论 SVN 与 Git 孰优孰劣的问题，有此兴趣的朋友请绕道。</p>
<hr /><h2>评论</h2><ul><li><a href="http://interjc.net/archives/2011/09/05/using-github-on-windows.html">2011/09/13</a>, <a href='http://LouisHan.com/' rel='external nofollow' class='url'>Louis Han</a> 说: 好一个折腾的过程啊</li><li><a href="http://interjc.net/archives/2011/09/05/using-github-on-windows.html">2011/12/14</a>, <a href='http://lilydjwg.is-programmer.com/' rel='external nofollow' class='url'>依云</a> 说: 我想知道中文编码问题怎么办？commit messages 和文件名，有没有办法在 Windows 上也使用 UTF-8 编码？</li><li><a href="http://interjc.net/archives/2011/09/05/using-github-on-windows.html">2011/12/15</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @依云, 没有遇到过这种问题啊。我就经常使用中文message和文件名</li><li><a href="http://interjc.net/archives/2011/09/05/using-github-on-windows.html">2011/12/15</a>, <a href='http://lilydjwg.is-programmer.com/' rel='external nofollow' class='url'>依云</a> 说: @interjc, 我是说，跨平台的时候，以及在 github 上显示的时候，你那边都正常？嗯，还有跨平台 clone 带中文的路径的时候。</li><li><a href="http://interjc.net/archives/2011/09/05/using-github-on-windows.html">2011/12/15</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @依云, 这么复杂的情况还真没试过，我一般不使用中文路径</li><li><a href="http://interjc.net/archives/2011/09/05/using-github-on-windows.html">2011/12/15</a>, sooyoo 说: Git和msysgit，难道是不一样的啊。
我试了很多次，都没能clone成功</li><li><a href="http://interjc.net/archives/2011/09/05/using-github-on-windows.html">2011/12/15</a>, <a href='http://lilydjwg.is-programmer.com/' rel='external nofollow' class='url'>依云</a> 说: @interjc, 我也不常用。不过有人用了，而且悲剧了。。。</li><li><a href="http://interjc.net/archives/2011/09/05/using-github-on-windows.html">2011/12/15</a>, <a href='http://lilydjwg.is-programmer.com/' rel='external nofollow' class='url'>依云</a> 说: @sooyoo, 一个生活在自己亲生父母身边的孩子，和一个后爹后娘养的，不一样是正常的。</li><li><a href="http://interjc.net/archives/2011/09/05/using-github-on-windows.html">2011/12/15</a>, sooyoo 说: 泪奔，终于可以clone push了 
谢谢</li><li><a href="http://interjc.net/archives/2011/09/05/using-github-on-windows.html">2011/12/15</a>, sooyoo 说: 你的微博是多少啊？</li><li><a href="http://interjc.net/archives/2011/09/05/using-github-on-windows.html">2011/12/15</a>, sooyoo 说: 找到了，你的微博是：糖醋排骨涅</li><li><a href="http://interjc.net/archives/2011/09/05/using-github-on-windows.html">2011/12/19</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @sooyoo, 对的</li><li><a href="http://interjc.net/archives/2011/09/05/using-github-on-windows.html">2011/12/21</a>, <a href='http://forcefront.com' rel='external nofollow' class='url'>Leo</a> 说: 只需要一个msysgit就够了啊，习惯了命令行其实很爽的。</li><li><a href="http://interjc.net/archives/2011/09/05/using-github-on-windows.html">2012/01/12</a>, <a href='http://www.mxgw.info' rel='external nofollow' class='url'>独自流浪</a> 说: 总觉得Github这玩意在win下面很难驾驭~平时在win里面习惯了可视化操作~
教程不错，很多新概念了解了~</li></ul><hr /><h2>延展阅读:</h2><ul><li><a href="http://interjc.net/archives/2008/04/24/virtualbox.html" rel="bookmark" title="Permanent Link: VirtualBox">VirtualBox</a></li><li><a href="http://interjc.net/dev/waterfall" rel="bookmark" title="Permanent Link: Waterfall">Waterfall</a></li><li><a href="http://interjc.net/archives/2006/12/14/install-ie7.html" rel="bookmark" title="Permanent Link: 上贼船">上贼船</a></li><li><a href="http://interjc.net/archives/2008/02/18/windows-xp-wga.html" rel="bookmark" title="Permanent Link: 一个小工具">一个小工具</a></li><li><a href="http://interjc.net/archives/2009/09/15/chm-xml-problem.html" rel="bookmark" title="Permanent Link: 打开CHM文档中的链接出现下载问题的解决方案">打开CHM文档中的链接出现下载问题的解决方案</a></li></ul><hr /><small>Copyright &copy; interjc.net 2009
<br /> </small>]]></content:encoded>
			<wfw:commentRss>http://interjc.net/archives/2011/09/05/using-github-on-windows.html/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>图片预读</title>
		<link>http://interjc.net/archives/2011/04/01/images-preload.html</link>
		<comments>http://interjc.net/archives/2011/04/01/images-preload.html#comments</comments>
		<pubDate>Fri, 01 Apr 2011 12:32:46 +0000</pubDate>
		<dc:creator>interjc</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[js]]></category>
		<category><![CDATA[前端]]></category>

		<guid isPermaLink="false">http://interjc.net/?p=955</guid>
		<description><![CDATA[尽管我们可以使用CSS Sprites等各种CSS手段来避免页面交互时图片加载延时的问题，但有些情况下依然需要使用JS脚本的手段来实现图片预读。 以下是基于jQuery实现图片预读的方法（用jQuery只是为了方便，你也可以使用原生js或者其他类库），以下代码请放入js文件中或者 &#60;script/&#62;块里（事先请保证已加载jQuery类库）： function imagePreload&#40;images&#41;&#123; var arr = &#91;'&#60;div style=&#34;display:none;&#34;&#62;'&#93;; $.each&#40;images, function&#40;i, data&#41;&#123; arr.push&#40;'&#60;img src=&#34;'+ data +'&#34; /&#62;'&#41;; &#125;&#41;; arr.push&#40;'&#60;/div&#62;'&#41;; $&#40;'body'&#41;.append&#40;arr.join&#40;''&#41;&#41;; &#125; 调用的时候，使用以下代码： var preloadImages = &#91;&#93;, preloadDir = './img/'; //preloadDir为图片文件所在的路径 preloadImages.push&#40;preloadDir + 'a.jpg'&#41;; //这里的每一行添加一张图片，请自行修改图片文件名 preloadImages.push&#40;preloadDir + 'b.jpg'&#41;; preloadImages.push&#40;preloadDir + 'c.jpg'&#41;; imagePreload&#40;preloadImages&#41;; //调用之前写的preload方法 如果不喜欢使用jQuery，那么可以将这个方法改写为： function imagePreload&#40;images&#41;&#123; var arr = &#91;&#93;, elm = document.createElement&#40;'div'&#41;; for&#40;var [...]]]></description>
			<content:encoded><![CDATA[<p>尽管我们可以使用<a rel="external" href="http://baike.baidu.com/view/2173476.htm">CSS Sprites</a>等各种CSS手段来避免页面交互时图片加载延时的问题，但有些情况下依然需要使用JS脚本的手段来实现图片预读。</p>
<p>以下是基于jQuery实现图片预读的方法（用jQuery只是为了方便，你也可以使用原生js或者其他类库），以下代码请放入js文件中或者 &lt;script/&gt;块里（事先请保证已加载jQuery类库）：</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> imagePreload<span style="color: #009900;">&#40;</span>images<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> arr <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span><span style="color: #3366CC;">'&lt;div style=&quot;display:none;&quot;&gt;'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
    $.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span>images<span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>i<span style="color: #339933;">,</span> data<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        arr.<span style="color: #660066;">push</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;img src=&quot;'</span><span style="color: #339933;">+</span> data <span style="color: #339933;">+</span><span style="color: #3366CC;">'&quot; /&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    arr.<span style="color: #660066;">push</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;/div&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'body'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span>arr.<span style="color: #660066;">join</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>调用的时候，使用以下代码：</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> preloadImages <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> preloadDir <span style="color: #339933;">=</span> <span style="color: #3366CC;">'./img/'</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//preloadDir为图片文件所在的路径</span>
preloadImages.<span style="color: #660066;">push</span><span style="color: #009900;">&#40;</span>preloadDir <span style="color: #339933;">+</span> <span style="color: #3366CC;">'a.jpg'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//这里的每一行添加一张图片，请自行修改图片文件名</span>
preloadImages.<span style="color: #660066;">push</span><span style="color: #009900;">&#40;</span>preloadDir <span style="color: #339933;">+</span> <span style="color: #3366CC;">'b.jpg'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
preloadImages.<span style="color: #660066;">push</span><span style="color: #009900;">&#40;</span>preloadDir <span style="color: #339933;">+</span> <span style="color: #3366CC;">'c.jpg'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
imagePreload<span style="color: #009900;">&#40;</span>preloadImages<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//调用之前写的preload方法</span></pre></div></div>

<p>如果不喜欢使用jQuery，那么可以将这个方法改写为：</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> imagePreload<span style="color: #009900;">&#40;</span>images<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> arr <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> elm <span style="color: #339933;">=</span> document.<span style="color: #660066;">createElement</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'div'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> i<span style="color: #339933;">&lt;</span>images.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        arr.<span style="color: #660066;">push</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;img src=&quot;'</span><span style="color: #339933;">+</span> images<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span> <span style="color: #339933;">+</span><span style="color: #3366CC;">'&quot; /&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    elm.<span style="color: #660066;">style</span>.<span style="color: #660066;">display</span> <span style="color: #339933;">=</span><span style="color: #3366CC;">'none'</span><span style="color: #339933;">;</span>
    elm.<span style="color: #660066;">innerHTML</span> <span style="color: #339933;">=</span> arr.<span style="color: #660066;">join</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    document.<span style="color: #660066;">body</span>.<span style="color: #660066;">appendChild</span><span style="color: #009900;">&#40;</span>elm<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<hr /><h2>评论</h2><ul><li><a href="http://interjc.net/archives/2011/04/01/images-preload.html">2011/04/02</a>, <a href='http://LouisHan.com/' rel='external nofollow' class='url'>Louis Han</a> 说: 看不懂的直接用LazyLoad插件就搞定了</li><li><a href="http://interjc.net/archives/2011/04/01/images-preload.html">2011/04/03</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @Louis Han, lazyload和我这要实现的是相反的效果吧，呵呵，没看他的代码，不太了解</li><li><a href="http://interjc.net/archives/2011/04/01/images-preload.html">2011/04/04</a>, <a href='http://www.aqvip.net/' rel='external nofollow' class='url'>多情人</a> 说: 呵呵 ，学习了</li><li><a href="http://interjc.net/archives/2011/04/01/images-preload.html">2011/04/07</a>, <a href='http://www.nbled.net' rel='external nofollow' class='url'>宁波LED显示屏</a> 说: 代码应该没问题，但是这个到底是个什么样的效果啊？</li><li><a href="http://interjc.net/archives/2011/04/01/images-preload.html">2011/04/08</a>, <a href='http://ifeiyang.cn' rel='external nofollow' class='url'>老饕</a> 说: 小博客都不折腾了~~我倾向于把图片放在快的服务器+优化~</li><li><a href="http://interjc.net/archives/2011/04/01/images-preload.html">2011/04/08</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @老饕, 预读图片并不会使页面加载的更快，相反更慢..
这只是为了使还没有出现的图片，比如hover背景以及ajax加载的图片展现的更快而采取的措施罢了..主要还是为了用户体验更平滑..</li><li><a href="http://interjc.net/archives/2011/04/01/images-preload.html">2011/04/25</a>, <a href='http://www.baouwo.com' rel='external nofollow' class='url'>宝佑</a> 说: 你网站物资太多了，减点速度会更好！</li><li><a href="http://interjc.net/archives/2011/04/01/images-preload.html">2011/04/25</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @宝佑, 其实还好，主要是用了Google的Friend Connect显得比较慢而已</li><li><a href="http://interjc.net/archives/2011/04/01/images-preload.html">2011/04/26</a>, <a href='http://jn,gamfe.com' rel='external nofollow' class='url'>济南汇众</a> 说: 太强悍了！</li><li><a href="http://interjc.net/archives/2011/04/01/images-preload.html">2011/07/15</a>, <a href='http://www.superm.org' rel='external nofollow' class='url'>超人</a> 说: 主要是jq的效果很漂亮。</li><li><a href="http://interjc.net/archives/2011/04/01/images-preload.html">2011/08/14</a>, <a href='http://www.ruyixie.com' rel='external nofollow' class='url'>阳澄湖大闸蟹</a> 说: 先收藏了，可能用得上哦</li></ul><hr /><h2>延展阅读:</h2><ul><li><a href="http://interjc.net/a/sub" rel="bookmark" title="Permanent Link: 订阅">订阅</a></li><li><a href="http://interjc.net/archives/2006/10/18/%e4%bb%8a%e5%a4%a9%e6%94%b6%e5%88%b0%e4%ba%86soapbox%e9%82%80%e8%af%b7.html" rel="bookmark" title="Permanent Link: 今天收到了SoapBox邀请">今天收到了SoapBox邀请</a></li><li><a href="http://interjc.net/archives/2006/12/09/sub.html" rel="bookmark" title="Permanent Link: 订阅">订阅</a></li><li><a href="http://interjc.net/archives/2009/10/10/wibiya.html" rel="bookmark" title="Permanent Link: Wibiya">Wibiya</a></li><li><a href="http://interjc.net/archives/2009/12/17/work-offline-1-4-for-3-5-or-later.html" rel="bookmark" title="Permanent Link: 快速切换脱机状态扩展 for Firefox 3.*.*">快速切换脱机状态扩展 for Firefox 3.*.*</a></li></ul><hr /><small>Copyright &copy; interjc.net 2009
<br /> </small>]]></content:encoded>
			<wfw:commentRss>http://interjc.net/archives/2011/04/01/images-preload.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>用DD_belatedPNG插件修复IE6 PNG</title>
		<link>http://interjc.net/archives/2010/07/10/fix-ie6-png-with-dd_belatedpng.html</link>
		<comments>http://interjc.net/archives/2010/07/10/fix-ie6-png-with-dd_belatedpng.html#comments</comments>
		<pubDate>Sat, 10 Jul 2010 10:50:11 +0000</pubDate>
		<dc:creator>interjc</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[anti_ie6]]></category>
		<category><![CDATA[DD_belatedPNG]]></category>
		<category><![CDATA[dev]]></category>

		<guid isPermaLink="false">http://interjc.net/archives/2010/07/10/fix-ie6-png-with-dd_belatedpng.html</guid>
		<description><![CDATA[IE6是一个令人作呕的话题，个人极为厌恶IE6，并且恨屋及乌，不过没有办法，中国就是这么一个神奇的国度，到了2010年仍然有不少人以使用“简单、快捷”的IE6为荣，不知道浏览器为何物的也更加不提了，而这种人往往又是互联网中广告点击的生力军，消费能力强，所以你必须照顾到他们的感受。 我对IE6恨之入骨的重要原因之一，恐怕就是对PNG各种半透明的支持情况了。我们在其他浏览器可以轻松实现的图片半透明效果，到了IE6这儿就得纠结蹉跎，虽然IE6勉强的支持PNG-8格式的伪半透明，但这个和GIF图片的效果相差并不大，如果你使用PNG-32的话，你所有的半透明区域都会变成灰底。 网上有不少IE6上实现PNG半透明的工具，各有千秋，大多数使用了IE的一个滤镜：AlphaImageLoader，使用后会有各种诸如问题（比如background-position和background-repeat属性支持的不完善，有些还会擅自更改背景图片的尺寸）。DD_belatedPNG提供了一种新的选择，他使用微软的VML语言对PNG图片进行重新绘制，以达到半透明的效果，并且能支持background-position和background-repeat属性。 查看Demo &#124; 打包下载 其使用方法也不难，先在此下载DD_belatedPNG ，然后插入head标签中： &#60;!--&#91;if IE 6&#93;&#62; &#60;script type=&#34;text/javascript&#34; src=&#34;DD_belatedPNG_0.0.8a-min.js&#34;&#62;&#60;/script&#62; &#60;script type=&#34;text/javascript&#34;&#62; DD_belatedPNG.fix&#40;'.png'&#41;; &#60;/script&#62; &#60;!&#91;endif&#93;--&#62; 将所有需要需要修补的元素加上class=”png”即可 PS：对于:focus和:hover伪类，则需要将以上代码中的 : DD_belatedPNG.fix(&#8216;.png&#8217;); 修改为 : DD_belatedPNG.fix(&#8216;.png,a.png:hover,.png:focus&#8217;); BTW：虽然这样可以缓解IE6下PNG的问题，不过会带来性能问题，还有一些其他的问题，自然是不如对png半透明有原生支持的浏览器的。所以，赶快让该死的IE6下地狱吧。阿门！ 评论2010/09/05, 夏小淚 说: 我现在都推荐我身边的朋友使用chrome或是FF,有些不会用的，就把IE6直接升级IE8了~！！2010/09/08, interjc 说: @夏小淚, good job！2010/09/10, Runescapegold 说: ie6很少有人用了2010/09/10, 皇家元林 说: 你那个链接前面的图标是怎么加上去的？而且只是链接有，图片没有呢？2010/09/10, interjc 说: @皇家元林, 神奇吧，哈哈～ jquery+css...2010/09/10, 皇家元林 说: 能教教我吗？谢谢！2010/09/10, interjc 说: @皇家元林, 这个说来话长啊，你可以看我的源码中文哦style.css和javascript.js，搜索more-link看相关代码..2010/11/24, Tao [...]]]></description>
			<content:encoded><![CDATA[<p>IE6是一个令人作呕的话题，个人极为厌恶IE6，并且恨屋及乌，不过没有办法，中国就是这么一个神奇的国度，到了2010年仍然有不少人以使用“简单、快捷”的IE6为荣，不知道浏览器为何物的也更加不提了，而这种人往往又是互联网中广告点击的生力军，消费能力强，所以你必须照顾到他们的感受。</p>
<p>我对IE6恨之入骨的重要原因之一，恐怕就是对PNG各种半透明的支持情况了。我们在其他浏览器可以轻松实现的图片半透明效果，到了IE6这儿就得纠结蹉跎，虽然IE6勉强的支持PNG-8格式的伪半透明，但这个和GIF图片的效果相差并不大，如果你使用PNG-32的话，你所有的半透明区域都会变成灰底。</p>
<p>网上有不少IE6上实现PNG半透明的工具，各有千秋，大多数使用了IE的一个滤镜：AlphaImageLoader，使用后会有各种诸如问题（比如background-position和background-repeat属性支持的不完善，有些还会擅自更改背景图片的尺寸）。<a href="http://www.dillerdesign.com/experiment/DD_belatedPNG/" target="_blank">DD_belatedPNG</a>提供了一种新的选择，他使用微软的VML语言对PNG图片进行重新绘制，以达到半透明的效果，并且能支持background-position和background-repeat属性。</p>
<p><a href="http://d.interjc.net/lab/DD_belatedPNG/" target="_blank">查看Demo</a> | <a href="http://interjc.googlecode.com/files/DD_belatedPNG.zip" target="_blank">打包下载</a></p>
<p>其使用方法也不难，先在<a href="http://www.dillerdesign.com/experiment/DD_belatedPNG/DD_belatedPNG_0.0.8a-min.js">此下载DD_belatedPNG</a> ，然后插入head标签中：</p>
<div>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #339933;">&lt;!--</span><span style="color: #009900;">&#91;</span><span style="color: #000000; font-weight: bold;">if</span> IE <span style="color: #cc66cc;">6</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span> src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;DD_belatedPNG_0.0.8a-min.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span> 
DD_belatedPNG.<span style="color: #006633;">fix</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'.png'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span> 
<span style="color: #339933;">&lt;!</span><span style="color: #009900;">&#91;</span>endif<span style="color: #009900;">&#93;</span><span style="color: #339933;">--&gt;</span></pre></div></div>

</div>
<p>将所有需要需要修补的元素加上class=”png”即可</p>
<p>PS：对于:focus和:hover伪类，则需要将以上代码中的 :<br />
<strong>DD_belatedPNG.fix(&#8216;.png&#8217;);</strong><br />
修改为 :<br />
<strong>DD_belatedPNG.fix(&#8216;.png,a.png:hover,.png:focus&#8217;);</strong></p>
<p>BTW：虽然这样可以缓解IE6下PNG的问题，不过会带来性能问题，还有一些其他的问题，自然是不如对png半透明有原生支持的浏览器的。所以，赶快让该死的IE6下地狱吧。阿门！</p>
<hr /><h2>评论</h2><ul><li><a href="http://interjc.net/archives/2010/07/10/fix-ie6-png-with-dd_belatedpng.html">2010/09/05</a>, <a href='http://www.qypark.net' rel='external nofollow' class='url'>夏小淚</a> 说: 我现在都推荐我身边的朋友使用chrome或是FF,有些不会用的，就把IE6直接升级IE8了~！！</li><li><a href="http://interjc.net/archives/2010/07/10/fix-ie6-png-with-dd_belatedpng.html">2010/09/08</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @夏小淚, good job！</li><li><a href="http://interjc.net/archives/2010/07/10/fix-ie6-png-with-dd_belatedpng.html">2010/09/10</a>, <a href='http://www.gold4rs.biz' rel='external nofollow' class='url'>Runescapegold</a> 说: ie6很少有人用了</li><li><a href="http://interjc.net/archives/2010/07/10/fix-ie6-png-with-dd_belatedpng.html">2010/09/10</a>, <a href='http://hjyl.org' rel='external nofollow' class='url'>皇家元林</a> 说: 你那个链接前面的图标是怎么加上去的？而且只是链接有，图片没有呢？</li><li><a href="http://interjc.net/archives/2010/07/10/fix-ie6-png-with-dd_belatedpng.html">2010/09/10</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @皇家元林, 神奇吧，哈哈～ jquery+css...</li><li><a href="http://interjc.net/archives/2010/07/10/fix-ie6-png-with-dd_belatedpng.html">2010/09/10</a>, <a href='http://hjyl.org' rel='external nofollow' class='url'>皇家元林</a> 说: 能教教我吗？谢谢！</li><li><a href="http://interjc.net/archives/2010/07/10/fix-ie6-png-with-dd_belatedpng.html">2010/09/10</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @皇家元林, 这个说来话长啊，你可以看我的源码中文哦style.css和javascript.js，搜索more-link看相关代码..</li><li><a href="http://interjc.net/archives/2010/07/10/fix-ie6-png-with-dd_belatedpng.html">2010/11/24</a>, <a href='http://bnuzt.org' rel='external nofollow' class='url'>Tao Zhu</a> 说: 想消灭IE6的最好方法就是尽快让XP滚蛋！</li><li><a href="http://interjc.net/archives/2010/07/10/fix-ie6-png-with-dd_belatedpng.html">2011/11/07</a>, 张垒 说: 加入JS代码后，用IE8打开网页时，提示参数无效。不知道怎么解决，您有什么方法吗？</li><li><a href="http://interjc.net/archives/2010/07/10/fix-ie6-png-with-dd_belatedpng.html">2011/11/08</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @张垒, 这玩意儿只在IE6菜生效啊，检查下你代码的全角半角什么的看看。</li></ul><hr /><small>Copyright &copy; interjc.net 2009
<br /> </small>]]></content:encoded>
			<wfw:commentRss>http://interjc.net/archives/2010/07/10/fix-ie6-png-with-dd_belatedpng.html/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>一个最简单的基于PHP+jQuery的AJAX例子</title>
		<link>http://interjc.net/archives/2010/04/25/php-ajax.html</link>
		<comments>http://interjc.net/archives/2010/04/25/php-ajax.html#comments</comments>
		<pubDate>Sun, 25 Apr 2010 12:56:01 +0000</pubDate>
		<dc:creator>interjc</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://interjc.net/?p=873</guid>
		<description><![CDATA[说在前面：本文只作为一个笔记留存用以达到语言重用的效果，可能对于很多大虾过于入门级，请直接无视。 基本上一说起ajax，大家都感觉到比较神秘，我以前也是这样，总觉得这个和荷兰一家足球俱乐部同名的玩意儿是个高深莫测的东西。其实ajax之所以看上去那么蛋疼主要是为了解决各浏览器对js的兼容性问题而写了太多的代码，以至于一看见就头昏。强大简易的jquery扭转了这个局面。 首先说下个人对ajax的简单理解：html、css、js(jQuery等)是给浏览器看的，PHP是给服务器看的，js可以和php对话，而php可以生成html、css和js，以前我们浏览网页的时候，总是通过操作html，通过php告诉服务器我们需要什么内容，然后服务器会在一个新的页面将你请求的信息展示给你；而ajax，即是我们操作html时告诉js，然后js告诉php，php得到命令以后到服务器去取了你要的信息交给js，js再将此信息展示给你。这么看来ajax貌似更复杂一点，但是他带来几个好处：1. 你不需要进入一个新的页面就可以看到你所请求的信息；2.php只需要提取出产生了变化的有限信息即可，减少了重复。 简单扼要的说就是ajax模拟了提交表单的行为，但是把刷新页面这件事交由js在后台偷偷完成了。 由此可见ajax其实是一个很容易理解的过程，下面用例子来说明。首先写一个html页面： &#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#62; &#60;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&#62; &#60;head&#62; &#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; /&#62; &#60;title&#62;ajax test&#60;/title&#62; &#60;script type=&#34;text/javascript&#34; src=&#34;http://code.jquery.com/jquery-latest.js&#34;&#62;&#60;/script&#62; &#60;script type=&#34;text/javascript&#34;&#62; $(function(){ $('button').click(function(){ $name = $(this).attr('name'); $('#out').empty().load('test1.php',{ name : $name }); }); }); &#60;/script&#62; &#60;style type=&#34;text/css&#34;&#62;&#60;/style&#62; &#60;/head&#62; &#60;body&#62; &#60;button id=&#34;btn-1&#34; name=&#34;1&#34;&#62;1&#60;/button&#62; &#60;button id=&#34;btn-2&#34; name=&#34;2&#34;&#62;2&#60;/button&#62; &#60;button id=&#34;btn-3&#34; name=&#34;3&#34;&#62;3&#60;/button&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>说在前面：本文只作为一个笔记留存用以达到语言重用的效果，可能对于很多大虾过于入门级，请直接无视。</p>
<p>基本上一说起ajax，大家都感觉到比较神秘，我以前也是这样，总觉得这个和荷兰一家足球俱乐部同名的玩意儿是个高深莫测的东西。其实ajax之所以看上去那么蛋疼主要是为了解决各浏览器对js的兼容性问题而写了太多的代码，以至于一看见就头昏。强大简易的jquery扭转了这个局面。</p>
<p>首先说下个人对ajax的简单理解：html、css、js(jQuery等)是给浏览器看的，PHP是给服务器看的，js可以和php对话，而php可以生成html、css和js，以前我们浏览网页的时候，总是通过操作html，通过php告诉服务器我们需要什么内容，然后服务器会在一个新的页面将你请求的信息展示给你；而ajax，即是我们操作html时告诉js，然后js告诉php，php得到命令以后到服务器去取了你要的信息交给js，js再将此信息展示给你。这么看来ajax貌似更复杂一点，但是他带来几个好处：1. 你不需要进入一个新的页面就可以看到你所请求的信息；2.php只需要提取出产生了变化的有限信息即可，减少了重复。</p>
<p>简单扼要的说就是ajax模拟了提交表单的行为，但是把刷新页面这件事交由js在后台偷偷完成了。<br />
<span id="more-873"></span><br />
由此可见ajax其实是一个很容易理解的过程，下面用例子来说明。首先写一个html页面：</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #00bbdd;">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;html</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;http://www.w3.org/1999/xhtml&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;head<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;meta</span> <span style="color: #000066;">http-equiv</span>=<span style="color: #ff0000;">&quot;Content-Type&quot;</span> <span style="color: #000066;">content</span>=<span style="color: #ff0000;">&quot;text/html; charset=utf-8&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>ajax test<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;http://code.jquery.com/jquery-latest.js&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
$(function(){
  $('button').click(function(){
    $name = $(this).attr('name');
    $('#out').empty().load('test1.php',{ name : $name });
  });
});
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;style</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/css&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/style<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/head<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;body<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;button</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;btn-1&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;1&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>1<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/button<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;button</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;btn-2&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;2&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>2<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/button<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;button</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;btn-3&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;3&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>3<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/button<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;out&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/body<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/html<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>有一点html基础的童鞋可以看出，这里做了三个按钮，一个id为out的div，三个按钮是用来点击的，#out的div用来接收数据，每次点击button时先把#out清空，然后插入信息。</p>
<p>然后来写php：</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> 
<span style="color: #b1b100;">switch</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">case</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">:</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'1 哈哈'</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">case</span> <span style="color: #cc66cc;">2</span><span style="color: #339933;">:</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'2 呵呵'</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">case</span> <span style="color: #cc66cc;">3</span><span style="color: #339933;">:</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'3 活活'</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>这段代码使用了php的switch语句，意思就说根据post中name的值来替换输出的内容，这里只是个简单的例子，你也可以通过这个原理让php进行更复杂的运算或输出更复杂的内容。</p>
<p>js我直接写在html里面了，没有单独用一个文件，用纯js写估计得写不少，用jQuery就2句搞定，其实一句都行，只是我这儿还是写成两句比较好理解一点。<br />
第一句是吧button按钮中的name值存在一个变量里面，第二句是使用了jQuery的<a rel="external" href="http://api.jquery.com/load/">load函数</a>，告诉php需要哪些信息，然后取回这些信息插入到#out中。</p>
<p>这个ajax就这么完成了，简单吗？</p>
<p>效果见此：<a rel="external" href="http://d.interjc.net/lab/test1.html">test1.html</a></p>
<hr /><h2>评论</h2><ul><li><a href="http://interjc.net/archives/2010/04/25/php-ajax.html">2010/04/25</a>, <a href='http://www.superm.org/' rel='external nofollow' class='url'>超人</a> 说: 第三个button 是 : 活活! 哈哈</li><li><a href="http://interjc.net/archives/2010/04/25/php-ajax.html">2010/04/26</a>, <a href='http://bingu.net' rel='external nofollow' class='url'>冰古</a> 说: 先坐个板凳。</li><li><a href="http://interjc.net/archives/2010/04/25/php-ajax.html">2010/04/28</a>, <a href='http://www.amangs.com' rel='external nofollow' class='url'>阿邙</a> 说: 学习一下先。</li><li><a href="http://interjc.net/archives/2010/04/25/php-ajax.html">2010/04/29</a>, <a href='http://zeddicus.com' rel='external nofollow' class='url'>Zeddicus</a> 说: 这是融会个贯通的活啊！膜拜一下JC哥哥先！</li><li><a href="http://interjc.net/archives/2010/04/25/php-ajax.html">2010/04/29</a>, <a href='http://epile.org/blog' rel='external nofollow' class='url'>Epile</a> 说: @Zeddicus, 你昨晚重构页面到好晚啊！</li><li><a href="http://interjc.net/archives/2010/04/25/php-ajax.html">2010/04/29</a>, <a href='http://zeddicus.com' rel='external nofollow' class='url'>Zeddicus</a> 说: @Epile, 我今天才重构完的，昨晚被股神抓去吹牛皮了～</li><li><a href="http://interjc.net/archives/2010/04/25/php-ajax.html">2010/04/30</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @Zeddicus, 哪里？</li><li><a href="http://interjc.net/archives/2010/04/25/php-ajax.html">2010/06/09</a>, <a href='http://www.ekuzhan.com' rel='external nofollow' class='url'>刀哥</a> 说: jQuery的Ajax简单了很多，很好用。</li><li><a href="http://interjc.net/archives/2010/04/25/php-ajax.html">2010/08/06</a>, <a href='http://blog.haitianhome.com' rel='external nofollow' class='url'>海天</a> 说: 看起来貌似很简单的 ~</li><li><a href="http://interjc.net/archives/2010/04/25/php-ajax.html">2011/11/23</a>, <a href='http://yimi.in' rel='external nofollow' class='url'>一米</a> 说: jQuery 几句代码就把原生好大一段代码省略了，现在公司开发就用这个，很好用，呵呵。</li></ul><hr /><h2>延展阅读:</h2><ul><li><a href="http://interjc.net/archives/2008/01/26/launch-ajax-comments-reply.html" rel="bookmark" title="Permanent Link: 启用了Ajax Comments-Reply">启用了Ajax Comments-Reply</a></li><li><a href="http://interjc.net/archives/2009/09/06/anti-ie6.html" rel="bookmark" title="Permanent Link: 反IE6代码">反IE6代码</a></li><li><a href="http://interjc.net/archives/2010/01/15/jquery-1-4-released.html" rel="bookmark" title="Permanent Link: jQuery 1.4 Released">jQuery 1.4 Released</a></li><li><a href="http://interjc.net/archives/2009/10/08/js-css-slider.html" rel="bookmark" title="Permanent Link: 一个jQuery+CSS幻灯片播放器">一个jQuery+CSS幻灯片播放器</a></li></ul><hr /><small>Copyright &copy; interjc.net 2009
<br /> </small>]]></content:encoded>
			<wfw:commentRss>http://interjc.net/archives/2010/04/25/php-ajax.html/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Wdorpress 模板：ShadowBlue 0.5 Beta</title>
		<link>http://interjc.net/archives/2010/03/18/wdorpress-theme-shadowblue-0-5-beta.html</link>
		<comments>http://interjc.net/archives/2010/03/18/wdorpress-theme-shadowblue-0-5-beta.html#comments</comments>
		<pubDate>Thu, 18 Mar 2010 06:54:22 +0000</pubDate>
		<dc:creator>interjc</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[WP]]></category>
		<category><![CDATA[主题]]></category>

		<guid isPermaLink="false">http://interjc.net/?p=855</guid>
		<description><![CDATA[Shadowblue这模板发布也有一段时间了，正式发文也就是0.1 alpha 的时候，其后陆陆续续修改了一些小BUG，更新到了 0.3 。过年期间到现在一直很忙，所以一直没有什么大的更新，这两天抽空添了点儿内容，升级到 0.5 Beta ，也算是一个迟到的新年礼物吧。 Shadowblue 0.5 beta 在外观上和前面的版本没有什么太大的不同，就是增加了一个后台，可以用来控制顶部广告位、社会化链接显示的内容，切换内容部导航栏分类与标签的选项，也增加了一个底栏的开关（因为我发现有很多朋友不大喜欢底栏）。本人实属懒人，十分能理解懒人们的疾苦，有了后台朋友们就不用去改代码了。 目前后台可控的项目不多，本人会逐步改进并即时更新到 SVN 中并在Demo中体现出来，有稳定版本也会直接升级到下载地址，如果您喜欢这个主题，请关注开发页面，欢迎提供各种意见和建议，我会在后续版本中改进，谢谢！ 下载请移步开发页面 评论2010/03/18, Zeddicus 说: 好东西，持续关注了～一直想自己做皮，可是，唉～技术不行啊！只会改了～2010/03/19, interjc 说: @Zeddicus, 呵呵，这个没啥技术含量，还是东哥厉害2010/03/19, Zeddicus 说: @interjc, 您俩都强，要是双剑合璧，就更nb了～2010/03/19, 冰古 说: 啊，真不错。2010/03/20, w 说: interjc 这是造福于民 呵呵2010/03/21, interjc 说: 欢迎使用或升级，更欢迎给出意见或者建议，谢谢支持！2010/03/21, 超人 说: 上次改啊改..一下改的崩溃了.. 还是自己技术不行呀~~以后不敢折腾了.2010/03/21, interjc 说: @超人, 崩溃了推倒重来嘛，呵呵，技术都是实践出来的。2010/03/23, abc论坛 说: 谢谢楼主，楼主一席话深度十年书啊！2010/03/27, 路大侠 说: 挺好~2010/03/30, 乐扣乐扣 说: [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://interjc.net/dev/shadowblue">Shadowblue</a>这模板发布也有一段时间了，正式发文也就是0.1 alpha 的时候，其后陆陆续续修改了一些小BUG，更新到了 0.3 。过年期间到现在一直很忙，所以一直没有什么大的更新，这两天抽空添了点儿内容，升级到 0.5 Beta ，也算是一个迟到的新年礼物吧。</p>
<p>Shadowblue 0.5 beta 在外观上和前面的版本没有什么太大的不同，就是增加了一个后台，可以用来控制顶部广告位、社会化链接显示的内容，切换内容部导航栏分类与标签的选项，也增加了一个底栏的开关（因为我发现有很多朋友不大喜欢底栏）。本人实属懒人，十分能理解懒人们的疾苦，有了后台朋友们就不用去改代码了。</p>
<p>目前后台可控的项目不多，本人会逐步改进并即时更新到 <a href="http://code.google.com/p/interjc/source/browse/#svn/trunk/shadowblue">SVN</a> 中并在<a href="http://demo.interjc.net/?wptheme=ShadowBlue">Demo</a>中体现出来，有稳定版本也会直接升级到<a href="http://interjc.googlecode.com/files/shadowblue.zip">下载地址</a>，如果您喜欢这个主题，请关注<a href="http://interjc.net/dev/shadowblue">开发页面</a>，欢迎提供各种意见和建议，我会在后续版本中改进，谢谢！</p>
<p><strong>下载请移步<a href="http://interjc.net/dev/shadowblue">开发页面</a></strong> </p>
<hr /><h2>评论</h2><ul><li><a href="http://interjc.net/archives/2010/03/18/wdorpress-theme-shadowblue-0-5-beta.html">2010/03/18</a>, <a href='http://zeddicus.com' rel='external nofollow' class='url'>Zeddicus</a> 说: 好东西，持续关注了～一直想自己做皮，可是，唉～技术不行啊！只会改了～</li><li><a href="http://interjc.net/archives/2010/03/18/wdorpress-theme-shadowblue-0-5-beta.html">2010/03/19</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @Zeddicus, 呵呵，这个没啥技术含量，还是东哥厉害</li><li><a href="http://interjc.net/archives/2010/03/18/wdorpress-theme-shadowblue-0-5-beta.html">2010/03/19</a>, <a href='http://zeddicus.com' rel='external nofollow' class='url'>Zeddicus</a> 说: @interjc, 您俩都强，要是双剑合璧，就更nb了～</li><li><a href="http://interjc.net/archives/2010/03/18/wdorpress-theme-shadowblue-0-5-beta.html">2010/03/19</a>, <a href='http://bingu.net' rel='external nofollow' class='url'>冰古</a> 说: 啊，真不错。</li><li><a href="http://interjc.net/archives/2010/03/18/wdorpress-theme-shadowblue-0-5-beta.html">2010/03/20</a>, <a href='http://wpking.name' rel='external nofollow' class='url'>w</a> 说: interjc 这是造福于民 呵呵</li><li><a href="http://interjc.net/archives/2010/03/18/wdorpress-theme-shadowblue-0-5-beta.html">2010/03/21</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: 欢迎使用或升级，更欢迎给出意见或者建议，谢谢支持！</li><li><a href="http://interjc.net/archives/2010/03/18/wdorpress-theme-shadowblue-0-5-beta.html">2010/03/21</a>, <a href='http://www.superm.org/' rel='external nofollow' class='url'>超人</a> 说: 上次改啊改..一下改的崩溃了.. 还是自己技术不行呀~~以后不敢折腾了.</li><li><a href="http://interjc.net/archives/2010/03/18/wdorpress-theme-shadowblue-0-5-beta.html">2010/03/21</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @超人, 崩溃了推倒重来嘛，呵呵，技术都是实践出来的。</li><li><a href="http://interjc.net/archives/2010/03/18/wdorpress-theme-shadowblue-0-5-beta.html">2010/03/23</a>, <a href='http://www.abc.com' rel='external nofollow' class='url'>abc论坛</a> 说: 谢谢楼主，楼主一席话深度十年书啊！</li><li><a href="http://interjc.net/archives/2010/03/18/wdorpress-theme-shadowblue-0-5-beta.html">2010/03/27</a>, <a href='http://www.ludaxia.com' rel='external nofollow' class='url'>路大侠</a> 说: 挺好~</li><li><a href="http://interjc.net/archives/2010/03/18/wdorpress-theme-shadowblue-0-5-beta.html">2010/03/30</a>, <a href='http://www.qoomin.com/locklock' rel='external nofollow' class='url'>乐扣乐扣</a> 说: 这个主题还不错。</li><li><a href="http://interjc.net/archives/2010/03/18/wdorpress-theme-shadowblue-0-5-beta.html">2010/05/03</a>, <a href='http://www.cuckoos.me' rel='external nofollow' class='url'>Jest</a> 说: oh yeah
原来我用的是ShadowBlue 0.2 beta</li><li><a href="http://interjc.net/archives/2010/03/18/wdorpress-theme-shadowblue-0-5-beta.html">2010/05/04</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @Jest, 推荐你使用0.5，对于0.2用户来说，应该是一次平稳过渡</li></ul><hr /><h2>延展阅读:</h2><ul><li><a href="http://interjc.net/dev/shadowblue" rel="bookmark" title="Permanent Link: ShadowBlue">ShadowBlue</a></li><li><a href="http://interjc.net/archives/2009/12/14/usejump.html" rel="bookmark" title="Permanent Link: 我只是想看点教程，玩点游戏而已">我只是想看点教程，玩点游戏而已</a></li><li><a href="http://interjc.net/dev" rel="bookmark" title="Permanent Link: 开发">开发</a></li><li><a href="http://interjc.net/archives/2009/06/27/wordpress-theme-twittfan-10-preview.html" rel="bookmark" title="Permanent Link: WordPress Theme : TwittFan 1.0 Preview">WordPress Theme : TwittFan 1.0 Preview</a></li><li><a href="http://interjc.net/archives/2010/01/20/shadow-blue-0-1-alpha.html" rel="bookmark" title="Permanent Link: Shadow Blue 0.1 Alpha">Shadow Blue 0.1 Alpha</a></li></ul><hr /><small>Copyright &copy; interjc.net 2009
<br /> </small>]]></content:encoded>
			<wfw:commentRss>http://interjc.net/archives/2010/03/18/wdorpress-theme-shadowblue-0-5-beta.html/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Shadow Blue 0.1 Alpha</title>
		<link>http://interjc.net/archives/2010/01/20/shadow-blue-0-1-alpha.html</link>
		<comments>http://interjc.net/archives/2010/01/20/shadow-blue-0-1-alpha.html#comments</comments>
		<pubDate>Tue, 19 Jan 2010 16:02:24 +0000</pubDate>
		<dc:creator>interjc</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://interjc.net/?p=794</guid>
		<description><![CDATA[这是一个Wordpress模板，点此预览 1. 主题内已嵌入了最新的jQuery 1.4，如果你使用的插件也使用jQuery，请禁用其所内置的jQuery库载入 ，并已修正多库共存的兼容性问题； 2. 在文章自定义域，添加名称为 avatar 的域，值为需要显示的图片地址，可以自定义文章 avatar ，否则默认显示作者的 avatar ； 3. 暂不支持Ajax提交评论，不过可以很好的通过插件 WordPress Thread Comment 来很好的实现该功能； 4. Widget Ready， 后台主题小工具中可以设置4个widget bar，1～4 的widget bar 分别控制 右侧，下左，下中 和 下右 的Widget bar； 模板文件夹内的AD文件夹内的 ad_468_60.php 文件可以自行编辑， 添加规格为 468×60 像素 大小的广告代码： &#60;div class=&#34;ad-in&#34;&#62; 在此处粘贴你的广告代码，或者任何大小为468×60的页面元素 &#60;/div&#62; 5. 主题不断更新中，推荐使用SVN升级主题 &#8230;.. 感兴趣的请移步本模板开发页面，谢谢。 评论2010/01/20, Estoremap 说: 来抢你的沙发2010/01/20, zEUS. 说: 抢个板凳，相当期待这款主题～2010/01/20, Tweets [...]]]></description>
			<content:encoded><![CDATA[<p>这是一个Wordpress模板，<a rel="external" href="http://demo.interjc.net/?wptheme=ShadowBlue">点此预览</a></p>
<p>1. 主题内已嵌入了最新的jQuery 1.4，<del datetime="2010-01-21T10:16:09+00:00">如果你使用的插件也使用jQuery，请禁用其所内置的jQuery库载入</del> ，并已修正多库共存的兼容性问题；</p>
<p>2. 在文章自定义域，添加名称为 <strong>avatar</strong> 的域，值为需要显示的图片地址，可以自定义文章 avatar ，否则默认显示作者的 avatar ；</p>
<p>3. 暂不支持Ajax提交评论，不过可以很好的通过插件 <a href="http://wordpress.org/extend/plugins/wordpress-thread-comment/">WordPress Thread Comment</a> 来很好的实现该功能；</p>
<p>4. Widget Ready， 后台主题小工具中可以设置4个widget bar，1～4 的widget bar 分别控制 右侧，下左，下中 和 下右 的Widget bar；<br />
模板文件夹内的AD文件夹内的 ad_468_60.php 文件可以自行编辑， 添加规格为 468×60 像素 大小的广告代码：</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;ad-in&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
在此处粘贴你的广告代码，或者任何大小为468×60的页面元素
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>5. 主题不断更新中，推荐使用SVN升级主题<br />
&#8230;..</p>
<p>感兴趣的请移步<a href="http://interjc.net/dev/shadowblue">本模板开发页面</a>，谢谢。</p>
<hr /><h2>评论</h2><ul><li><a href="http://interjc.net/archives/2010/01/20/shadow-blue-0-1-alpha.html">2010/01/20</a>, <a href='http://www.estoremap.com' rel='external nofollow' class='url'>Estoremap</a> 说: 来抢你的沙发</li><li><a href="http://interjc.net/archives/2010/01/20/shadow-blue-0-1-alpha.html">2010/01/20</a>, <a href='http://zeuscn.net' rel='external nofollow' class='url'>zEUS.</a> 说: 抢个板凳，相当期待这款主题～</li><li><a href="http://interjc.net/archives/2010/01/20/shadow-blue-0-1-alpha.html">2010/01/20</a>, <a href='http://topsy.com/tb/bit.ly/5Ew6Su' rel='external nofollow' class='url'>Tweets that mention Shadow Blue 0.1 Alpha | 糖醋排骨 -- Topsy.com</a> 说: [...] This post was mentioned on Twitter by interjc, 虚飞. 虚飞 said: Shadow Blue 0.1 Alpha http://ff.im/-eykiS [...]</li><li><a href="http://interjc.net/archives/2010/01/20/shadow-blue-0-1-alpha.html">2010/01/20</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: 自己坐地板..</li><li><a href="http://interjc.net/archives/2010/01/20/shadow-blue-0-1-alpha.html">2010/01/20</a>, <a href='http://imn.im' rel='external nofollow' class='url'>Nox</a> 说: 很不错哦。但是还是没有单栏这个好，哇哈哈。。。</li><li><a href="http://interjc.net/archives/2010/01/20/shadow-blue-0-1-alpha.html">2010/01/21</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @Nox, 恩，单栏这个过于小众，暂不公开发布了</li><li><a href="http://interjc.net/archives/2010/01/20/shadow-blue-0-1-alpha.html">2010/01/21</a>, <a href='http://imn.im' rel='external nofollow' class='url'>Nox</a> 说: @interjc, 对了，我发现个问题，你的博客是用Ajax评论，在提交评论后，不会显示用户的留言，刷新后才能看见用户的留言，是不是有问题？</li><li><a href="http://interjc.net/archives/2010/01/20/shadow-blue-0-1-alpha.html">2010/01/21</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @Nox, 貌似是有问题，是插件的问题，有时间再看看吧..</li><li><a href="http://interjc.net/archives/2010/01/20/shadow-blue-0-1-alpha.html">2010/01/21</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @Nox, 貌似是这样的，你直接评论就有问题，回复就没问题，有时间我再来看看吧～</li><li><a href="http://interjc.net/archives/2010/01/20/shadow-blue-0-1-alpha.html">2010/01/21</a>, <a href='http://imn.im' rel='external nofollow' class='url'>Nox</a> 说: @interjc, 嗯，对，回复又正常了。呵呵，等你完善了，我在用，感觉插件不太好。。。</li><li><a href="http://interjc.net/archives/2010/01/20/shadow-blue-0-1-alpha.html">2010/01/21</a>, <a href='http://zmingcx.com' rel='external nofollow' class='url'>知更鸟</a> 说: 感谢分享你的作品，已转发到WOPUS主题</li><li><a href="http://interjc.net/archives/2010/01/20/shadow-blue-0-1-alpha.html">2010/01/21</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @知更鸟, 客气，顺便问一下，为什么我在wopus的帐号被封了呢？</li><li><a href="http://interjc.net/archives/2010/01/20/shadow-blue-0-1-alpha.html">2010/01/24</a>, <a href='http://www.superm.org/lsz/1103.html' rel='external nofollow' class='url'>又换主题了 | 超人流水账</a> 说: [...] 之前的wordpress主题换了不到一个月，折腾了我几天，把功能都给折腾上and改css。今天逛到糖醋排骨的博客，真震撼到我了，糖醋排骨的皮太漂亮了，而且提供源码下载，后来另外发现了他的另外一个主题：Shadow Blue，眼前一亮~主题内嵌入了最新的jQuery 1.4，小工具的功能强大，一共4个。分别控制 右侧，下左，下中 和 下右，下左，下中 和 下右我给去掉了，因为在底部，我一直不喜欢在底部放小工具。哈哈~ [...]</li><li><a href="http://interjc.net/archives/2010/01/20/shadow-blue-0-1-alpha.html">2010/01/29</a>, <a href='http://www.guohaibo.com/wordpress/' rel='external nofollow' class='url'>乘风归来兮</a> 说: 主题感觉很好，不过在我的显示器上字体显示让人头晕</li><li><a href="http://interjc.net/archives/2010/01/20/shadow-blue-0-1-alpha.html">2010/01/29</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @乘风归来兮, 本blog吗？最佳浏览环境是Chrome/Firefox</li><li><a href="http://interjc.net/archives/2010/01/20/shadow-blue-0-1-alpha.html">2010/01/29</a>, <a href='http://www.guohaibo.com/wordpress/index.php' rel='external nofollow' class='url'>乘风归来兮</a> 说: 对啊，我的就是火狐，有点晕
http://t.sina.com.cn/obiahoug  发了图看我新浪微博</li><li><a href="http://interjc.net/archives/2010/01/20/shadow-blue-0-1-alpha.html">2010/01/29</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @乘风归来兮, 哦，text-shadow的显示问题.. Chrome就很完美了..</li><li><a href="http://interjc.net/archives/2010/01/20/shadow-blue-0-1-alpha.html">2010/02/03</a>, <a href='http://www.alexblair.org/' rel='external nofollow' class='url'>Alexblair</a> 说: @interjc,

嗯，这个问题的确存在哦

我看了一下，可能是字体的问题，如果客户端是XP，且有雅黑，分辨率在1024x768左右的情况下，问题就会出现。

XP的引擎无法渲染出雅黑的那种感觉，或者说font-size：12的情况下雅黑在XP下表现并不理想。

此外，#main {text-shadow:0 1px 0 #FFFFFF;}
这个我觉得挺有意思，但是由于XP的糟糕渲染，反而容易产生模糊感。

哎，纠结的xp，呵呵~~</li><li><a href="http://interjc.net/archives/2010/01/20/shadow-blue-0-1-alpha.html">2010/02/03</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @Alexblair, 其实还是浏览器的问题了，Chrome就挺好，Webkit果然够先进，以后加个判断吧，除了Chrome和Safari，其他浏览器就不显示这效果了..</li><li><a href="http://interjc.net/archives/2010/01/20/shadow-blue-0-1-alpha.html">2010/02/03</a>, <a href='http://www.alexblair.org/' rel='external nofollow' class='url'>Alexblair</a> 说: @interjc, 呵呵不一定哦~
我现在就是chrome的，情况依然存在的。
嗯，不过加判断是个好点子，比我之前的一刀切要更有效一些。</li><li><a href="http://interjc.net/archives/2010/01/20/shadow-blue-0-1-alpha.html">2010/02/03</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @Alexblair, 我一直用Chrome，显示的相当完美，不然我也不会用这个效果哦～</li><li><a href="http://interjc.net/archives/2010/01/20/shadow-blue-0-1-alpha.html">2010/02/03</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @Alexblair, 可能每个人的电脑显示的都不一样吧，反正我现在用的只是我个人使用，暂时就这么着吧～</li><li><a href="http://interjc.net/archives/2010/01/20/shadow-blue-0-1-alpha.html">2010/02/06</a>, <a href='http://www.danielbody.info' rel='external nofollow' class='url'>danielbody</a> 说: 来支持下博主，加油更新，多多互动O(∩_∩)O~</li></ul><hr /><h2>延展阅读:</h2><ul><li><a href="http://interjc.net/dev/shadowblue" rel="bookmark" title="Permanent Link: ShadowBlue">ShadowBlue</a></li><li><a href="http://interjc.net/dev/greycover" rel="bookmark" title="Permanent Link: Grey Cover">Grey Cover</a></li><li><a href="http://interjc.net/dev/gbw" rel="bookmark" title="Permanent Link: GBW">GBW</a></li><li><a href="http://interjc.net/archives/2010/03/18/wdorpress-theme-shadowblue-0-5-beta.html" rel="bookmark" title="Permanent Link: Wdorpress 模板：ShadowBlue 0.5 Beta">Wdorpress 模板：ShadowBlue 0.5 Beta</a></li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html" rel="bookmark" title="Permanent Link: 关于本Blog的页面载入效果">关于本Blog的页面载入效果</a></li></ul><hr /><small>Copyright &copy; interjc.net 2009
<br /> </small>]]></content:encoded>
			<wfw:commentRss>http://interjc.net/archives/2010/01/20/shadow-blue-0-1-alpha.html/feed</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>jQuery 1.4 Released</title>
		<link>http://interjc.net/archives/2010/01/15/jquery-1-4-released.html</link>
		<comments>http://interjc.net/archives/2010/01/15/jquery-1-4-released.html#comments</comments>
		<pubDate>Fri, 15 Jan 2010 15:27:35 +0000</pubDate>
		<dc:creator>interjc</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://interjc.net/?p=784</guid>
		<description><![CDATA[这几天还在为Google的走留问题闹心的时候，就听到了这么一个好消息，jQuery总算是1.4了，还是released。 jQuery是我最喜欢的一个js库，用起来简洁明了，感觉很爷们，什么都整合在一起，不像Mootools随便实现个什么效果还得去下这个那个文件一大堆把人都搞昏头了，对于我们这种小网站也没有什么太大的性能需求，jQuery就刚好。 到底更新了什么 我还没看，不知道更新了什么东西，不过应该修复了不少bug做了很多改进吧，先给自己的主题换上再说。 评论2010/01/16, 朱珂 说: 真是一个好博客，订阅一下！2010/01/16, interjc 说: @朱珂, 感谢支持！2010/01/17, Zeddicus 说: 个人对JS八窍只通七窍。。。。。不过还是顶了！2010/01/21, interjc 说: @Zeddicus, 呵呵，这也不算是纯js了..2010/01/21, interjc 说: 测试一下..2010/01/26, 超人 说: 昨天出了1.4.1了.. 我刚给整上的~~感觉比1.4快了点~~ 可能是个心情原因!哈哈2010/01/27, interjc 说: @超人, 这么快？我也整一个～延展阅读:基于json数据的jQuery无限级下拉菜单插件反IE6代码关于本Blog的页面载入效果一个最简单的基于PHP+jQuery的AJAX例子WibiyaCopyright &#169; interjc.net 2009]]></description>
			<content:encoded><![CDATA[<p><a title="点击下载jQuery 1.4" href="http://code.jquery.com/jquery-1.4.min.js"><img class="alignright" src="http://www.ajaxonomy.com/files/jquery.jpg" alt="" /></a><br />
这几天还在为Google的走留问题闹心的时候，就听到了这么一个好消息，<a href="http://jquery.com/">jQuery</a>总算是<a href="http://blog.jquery.com/2010/01/14/jquery-14-released/">1.4</a>了，还是released。<br />
jQuery是我最喜欢的一个js库，用起来简洁明了，感觉很爷们，什么都整合在一起，不像Mootools随便实现个什么效果还得去下这个那个文件一大堆把人都搞昏头了，对于我们这种小网站也没有什么太大的性能需求，jQuery就刚好。<br />
<a href="http://net.tutsplus.com/tutorials/javascript-ajax/jquery-1-4-released-the-15-new-features-you-must-know/">到底更新了什么</a> 我还没看，不知道更新了什么东西，不过应该修复了不少bug做了很多改进吧，先给自己的<a href="http://interjc.net/dev/waterfall">主题</a>换上再说。</p>
<hr /><h2>评论</h2><ul><li><a href="http://interjc.net/archives/2010/01/15/jquery-1-4-released.html">2010/01/16</a>, <a href='http://www.zhuke.net/' rel='external nofollow' class='url'>朱珂</a> 说: 真是一个好博客，订阅一下！</li><li><a href="http://interjc.net/archives/2010/01/15/jquery-1-4-released.html">2010/01/16</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: <a href="#comment-11431" rel="nofollow">@朱珂</a>, 感谢支持！</li><li><a href="http://interjc.net/archives/2010/01/15/jquery-1-4-released.html">2010/01/17</a>, <a href='http://zeddicus.com' rel='external nofollow' class='url'>Zeddicus</a> 说: 个人对JS八窍只通七窍。。。。。不过还是顶了！</li><li><a href="http://interjc.net/archives/2010/01/15/jquery-1-4-released.html">2010/01/21</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @Zeddicus, 呵呵，这也不算是纯js了..</li><li><a href="http://interjc.net/archives/2010/01/15/jquery-1-4-released.html">2010/01/21</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: 测试一下..</li><li><a href="http://interjc.net/archives/2010/01/15/jquery-1-4-released.html">2010/01/26</a>, <a href='http://www.superm.org/' rel='external nofollow' class='url'>超人</a> 说: 昨天出了1.4.1了..
 我刚给整上的~~感觉比1.4快了点~~
可能是个心情原因!哈哈</li><li><a href="http://interjc.net/archives/2010/01/15/jquery-1-4-released.html">2010/01/27</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @超人, 这么快？我也整一个～</li></ul><hr /><h2>延展阅读:</h2><ul><li><a href="http://interjc.net/archives/2011/01/24/json-data-based-jquery-navigator-plugin.html" rel="bookmark" title="Permanent Link: 基于json数据的jQuery无限级下拉菜单插件">基于json数据的jQuery无限级下拉菜单插件</a></li><li><a href="http://interjc.net/archives/2009/09/06/anti-ie6.html" rel="bookmark" title="Permanent Link: 反IE6代码">反IE6代码</a></li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html" rel="bookmark" title="Permanent Link: 关于本Blog的页面载入效果">关于本Blog的页面载入效果</a></li><li><a href="http://interjc.net/archives/2010/04/25/php-ajax.html" rel="bookmark" title="Permanent Link: 一个最简单的基于PHP+jQuery的AJAX例子">一个最简单的基于PHP+jQuery的AJAX例子</a></li><li><a href="http://interjc.net/archives/2009/10/10/wibiya.html" rel="bookmark" title="Permanent Link: Wibiya">Wibiya</a></li></ul><hr /><small>Copyright &copy; interjc.net 2009
<br /> </small>]]></content:encoded>
			<wfw:commentRss>http://interjc.net/archives/2010/01/15/jquery-1-4-released.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>为你的评论框增加Ctrl+Enter提交功能</title>
		<link>http://interjc.net/archives/2010/01/07/ctrl-enter-comment.html</link>
		<comments>http://interjc.net/archives/2010/01/07/ctrl-enter-comment.html#comments</comments>
		<pubDate>Wed, 06 Jan 2010 17:07:45 +0000</pubDate>
		<dc:creator>interjc</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[js]]></category>

		<guid isPermaLink="false">http://interjc.net/?p=762</guid>
		<description><![CDATA[写完评论之后不能按Ctrl+回车提交，非要拿鼠标点一下，实在是痛苦的事情，不知道打消了多少懒人留言的积极性。 想给你的评论框添加这个功能么，那么就开始吧： 打开主题中comments.php文件，按Ctrl+F搜索“textarea”，然后在他的后面加上以下代码： onkeydown=&#34;if(event.ctrlKey&#38;amp;&#38;amp;event.keyCode==13) {document.getElementById('submit').click();return false};&#34; 大概改完以后就是这么个样子： 保存提交，然后就有这个功能了，经我自己测试了，基本上市面上的浏览器都可以很好的支持，爽吗？ Have fun ! 评论2010/01/07, 默默 说: 很好很强大2010/01/07, interjc 说: @默默, 貌似是这样的2010/01/07, 潘韬 说: 提示页面加载完毕，但是似乎加载还在继续2010/01/08, interjc 说: @潘韬, 加载完毕是说DOM完毕了，只能大概模拟成这样了，呵呵..2010/01/09, Nox 说: 哇，这个单栏主题实在是太帅了。。。2010/01/09, interjc 说: @Nox, 嘿嘿，多谢夸奖～2010/01/09, Nox 说: @interjc, 呵呵，这个主题是私人主题吧？有个小建议，下面友链上的搜索，美化一下。2010/01/09, interjc 说: @Nox, 是啊，因为有太多个人设置在里面，发布出来可能会给使用者造成很多不便。等以后写个后台在考虑发布吧。 感谢你的建议，下次更新就把它美化一下～2010/01/09, Nox 说: @interjc, 呵呵，发布的时候我先来试用，哇哈哈。。挺喜欢的。不知道为什么，我就是喜欢单栏的主题，呵呵！2010/01/10, 老七 说: 不错很实用~~2010/01/10, Bony 说: 还玩技术，我现在懒得啊，非常。 基本不看什么小窍门了。 唉。。。2010/01/11, interjc [...]]]></description>
			<content:encoded><![CDATA[<p>写完评论之后不能按Ctrl+回车提交，非要拿鼠标点一下，实在是痛苦的事情，不知道打消了多少懒人留言的积极性。<br />
想给你的评论框添加这个功能么，那么就开始吧：</p>
<p>打开主题中comments.php文件，按Ctrl+F搜索“textarea”，然后在他的后面加上以下代码：</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">onkeydown<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;if(event.ctrlKey&amp;amp;&amp;amp;event.keyCode==13)
{document.getElementById('submit').click();return false};&quot;</span></pre></div></div>

<p>大概改完以后就是这么个样子：</p>
<p><img src="http://i824.photobucket.com/albums/zz165/interjc/blogging/2010-1-71-05-54.png" alt="" /></p>
<p>保存提交，然后就有这个功能了，经我自己测试了，基本上市面上的浏览器都可以很好的支持，爽吗？</p>
<p>Have fun !</p>
<hr /><h2>评论</h2><ul><li><a href="http://interjc.net/archives/2010/01/07/ctrl-enter-comment.html">2010/01/07</a>, <a href='http://www.mozin.org' rel='external nofollow' class='url'>默默</a> 说: 很好很强大</li><li><a href="http://interjc.net/archives/2010/01/07/ctrl-enter-comment.html">2010/01/07</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: <a href="#comment-11363" rel="nofollow">@默默</a>, 貌似是这样的</li><li><a href="http://interjc.net/archives/2010/01/07/ctrl-enter-comment.html">2010/01/07</a>, <a href='http://pantao.name' rel='external nofollow' class='url'>潘韬</a> 说: 提示页面加载完毕，但是似乎加载还在继续</li><li><a href="http://interjc.net/archives/2010/01/07/ctrl-enter-comment.html">2010/01/08</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: <a href="#comment-11367" rel="nofollow">@潘韬</a>, 加载完毕是说DOM完毕了，只能大概模拟成这样了，呵呵..</li><li><a href="http://interjc.net/archives/2010/01/07/ctrl-enter-comment.html">2010/01/09</a>, <a href='http://imn.im' rel='external nofollow' class='url'>Nox</a> 说: 哇，这个单栏主题实在是太帅了。。。</li><li><a href="http://interjc.net/archives/2010/01/07/ctrl-enter-comment.html">2010/01/09</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: <a href="#comment-11375" rel="nofollow">@Nox</a>, 嘿嘿，多谢夸奖～</li><li><a href="http://interjc.net/archives/2010/01/07/ctrl-enter-comment.html">2010/01/09</a>, <a href='http://imn.im' rel='external nofollow' class='url'>Nox</a> 说: <a href="#comment-11376" rel="nofollow">@interjc</a>, 呵呵，这个主题是私人主题吧？有个小建议，下面友链上的搜索，美化一下。</li><li><a href="http://interjc.net/archives/2010/01/07/ctrl-enter-comment.html">2010/01/09</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: <a href="#comment-11378" rel="nofollow">@Nox</a>, 是啊，因为有太多个人设置在里面，发布出来可能会给使用者造成很多不便。等以后写个后台在考虑发布吧。
感谢你的建议，下次更新就把它美化一下～</li><li><a href="http://interjc.net/archives/2010/01/07/ctrl-enter-comment.html">2010/01/09</a>, <a href='http://imn.im' rel='external nofollow' class='url'>Nox</a> 说: <a href="#comment-11380" rel="nofollow">@interjc</a>, 呵呵，发布的时候我先来试用，哇哈哈。。挺喜欢的。不知道为什么，我就是喜欢单栏的主题，呵呵！</li><li><a href="http://interjc.net/archives/2010/01/07/ctrl-enter-comment.html">2010/01/10</a>, <a href='http://www.joyleft.com' rel='external nofollow' class='url'>老七</a> 说: 不错很实用~~</li><li><a href="http://interjc.net/archives/2010/01/07/ctrl-enter-comment.html">2010/01/10</a>, <a href='http://www.imbony.cn' rel='external nofollow' class='url'>Bony</a> 说: 还玩技术，我现在懒得啊，非常。
基本不看什么小窍门了。
唉。。。</li><li><a href="http://interjc.net/archives/2010/01/07/ctrl-enter-comment.html">2010/01/11</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: <a href="#comment-11389" rel="nofollow">@Bony</a>, 。。。</li><li><a href="http://interjc.net/archives/2010/01/07/ctrl-enter-comment.html">2010/01/11</a>, Test 说: 测试之...</li><li><a href="http://interjc.net/archives/2010/01/07/ctrl-enter-comment.html">2010/01/12</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: 测试..</li><li><a href="http://interjc.net/archives/2010/01/07/ctrl-enter-comment.html">2010/01/12</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: <a href="#comment-11394" rel="nofollow">@interjc</a>, 再次测试..</li><li><a href="http://interjc.net/archives/2010/01/07/ctrl-enter-comment.html">2010/01/17</a>, <a href='http://zeddicus.com' rel='external nofollow' class='url'>Zeddicus</a> 说: 支持！
看到keycode==13让我想起当年学的vb</li><li><a href="http://interjc.net/archives/2010/01/07/ctrl-enter-comment.html">2010/01/25</a>, <a href='http://pmlove.com.cn' rel='external nofollow' class='url'>pingcenter</a> 说: 学习了。。</li><li><a href="http://interjc.net/archives/2010/01/07/ctrl-enter-comment.html">2010/01/25</a>, <a href='http://pmlove.com.cn' rel='external nofollow' class='url'>pingcenter</a> 说: 哈哈，这个功能已经用上了。。</li><li><a href="http://interjc.net/archives/2010/01/07/ctrl-enter-comment.html">2010/01/25</a>, <a href='http://pmlove.com.cn' rel='external nofollow' class='url'>pingcenter</a> 说: 好像评论提交的速度很慢啊。。</li><li><a href="http://interjc.net/archives/2010/01/07/ctrl-enter-comment.html">2010/01/25</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @pingcenter, 那是网速或者服务器的问题吧，和这个功能应该没什么关系..</li><li><a href="http://interjc.net/archives/2010/01/07/ctrl-enter-comment.html">2010/01/28</a>, <a href='http://www.leaf-home.org/dui-shadowblue-mu-ban-de-tiao-zhen.html' rel='external nofollow' class='url'>对shadowblue模板的调整 | 枫之居</a> 说: [...] 2、对评论框增加Ctrl+Enter提交功能 因为我习惯了用Ctrl+Enter提交……方便…… 详细：为你的评论框增加Ctrl+Enter提交功能 [...]</li><li><a href="http://interjc.net/archives/2010/01/07/ctrl-enter-comment.html">2010/02/18</a>, <a href='http://www.gimpbox.com' rel='external nofollow' class='url'>lnesuper</a> 说: 很惊异这个代码兼容性怎样.</li><li><a href="http://interjc.net/archives/2010/01/07/ctrl-enter-comment.html">2010/02/18</a>, <a href='http://www.lneme.com' rel='external nofollow' class='url'>lnesuper</a> 说: 非常感谢,测试Firefox下正常.</li><li><a href="http://interjc.net/archives/2010/01/07/ctrl-enter-comment.html">2010/04/02</a>, <a href='http://www.fenxianghome.cn' rel='external nofollow' class='url'>分享之家</a> 说: 测试一下
http://www.fenxianghome.cn
分享之家</li><li><a href="http://interjc.net/archives/2010/01/07/ctrl-enter-comment.html">2010/04/05</a>, <a href='http://www.rinkaiten.com/ctrl_enter/' rel='external nofollow' class='url'>やみろぐ。 | [實用]為迴響欄添上提交快速鍵(Ctrl+Enter)</a> 说: [...] 每次寫回覆時總是要拿起滑鼠點一點才可以提交迴響，非常麻煩。  所以今天介紹的這個代碼正正就可以解決這個煩惱。(代碼來自這兒) [...]</li><li><a href="http://interjc.net/archives/2010/01/07/ctrl-enter-comment.html">2011/07/28</a>, ediini 说: 测试一下你地这个CTRL+EDTER按钮</li></ul><hr /><h2>延展阅读:</h2><ul><li><a href="http://interjc.net/archives/2009/09/09/shopex-on-xampp.html" rel="bookmark" title="Permanent Link: 在本机安装Shopex">在本机安装Shopex</a></li><li><a href="http://interjc.net/archives/2006/12/11/wp-quoter.html" rel="bookmark" title="Permanent Link: 评论引用回复插件：Quoter">评论引用回复插件：Quoter</a></li><li><a href="http://interjc.net/archives/2010/01/20/shadow-blue-0-1-alpha.html" rel="bookmark" title="Permanent Link: Shadow Blue 0.1 Alpha">Shadow Blue 0.1 Alpha</a></li><li><a href="http://interjc.net/dev/shadowblue" rel="bookmark" title="Permanent Link: ShadowBlue">ShadowBlue</a></li><li><a href="http://interjc.net/archives/2008/01/26/launch-ajax-comments-reply.html" rel="bookmark" title="Permanent Link: 启用了Ajax Comments-Reply">启用了Ajax Comments-Reply</a></li></ul><hr /><small>Copyright &copy; interjc.net 2009
<br /> </small>]]></content:encoded>
			<wfw:commentRss>http://interjc.net/archives/2010/01/07/ctrl-enter-comment.html/feed</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>关于本Blog的页面载入效果</title>
		<link>http://interjc.net/archives/2010/01/01/jquery-loding-effect.html</link>
		<comments>http://interjc.net/archives/2010/01/01/jquery-loding-effect.html#comments</comments>
		<pubDate>Fri, 01 Jan 2010 09:58:32 +0000</pubDate>
		<dc:creator>interjc</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://interjc.net/?p=740</guid>
		<description><![CDATA[Zed童鞋向我询问本站载入效果的做法，由于比较繁琐，遂写到Blog中来，一来是这样比QQ等手段更有条理性，二来可以保留下来提高重用率。 废话不多说，现在开始： 1.结果 本效果完成后的效果就是你在打开本站每一个页面的时候会出现一个半透明遮罩一个loading画面然后页面载入完以后遮罩消失的效果。 2.思路 这个半透明遮罩首先被载入，这样他才能在一开始就出现，他上面有一张图片和一段文字告诉浏览者这是在loading，而不是笔记本快没电了或者什么；然后，页面的DOM就Ready了，这个时候为了验证各种库(比如我所使用的jQuery)载入完毕，CSS也下载完了，我们使用jQuery语句来使这个遮罩层隐藏起来，这个时候这个效果就完成了。 3.准备 你需要一个已经安装好的网站，和一个可以在你自己控制之下的文件系统。说简单点，拿Wordpress举例，你得能够修改自己的模板全部代码；你需要一个jQuery库、 一个载入用的图片、和一个好用的文本编辑器(当然你可以用记事本，不过我这里推荐Notepad++)。 4.动手 以下我们以修改一个Wordpress模板为例，其他所有类型网页修改方法都大同小异，只是文件的命名方式有少许不同而已。 找到header.php文件，用编辑器打开，如果你的模板本身没有使用jQuery库，那么请在&#60;head&#62;&#60;/head&#62;标签内加入以下代码： &#60;script type=&#34;text/javascript&#34; src=&#34;http://code.jquery.com/jquery-latest.min.js&#34;&#62;&#60;/script&#62; &#60;script type=&#34;text/javascript&#34; src=&#34;&#60;?php bloginfo('stylesheet_directory'); ?&#62;/loading.js&#34;&#62;&#60;/script&#62; 还是header.php文件，找到body标签，将其修改并在其下添加遮罩层，如下： &#60;body style=&#34;height:100%; width:100%; position:relative;&#34;&#62; &#60;div id=&#34;loading&#34; style=&#34;position:fixed !important;position:absolute;top:0;left:0;height:100%; width:100%; z-index:999; background:#000 url(http://interjc.googlecode.com/svn/trunk/waterfall/img/load.gif) no-repeat center center; opacity:0.6; filter:alpha(opacity=60);font-size:14px;line-height:20px;&#34;&#62; &#60;p id=&#34;loading-one&#34; style=&#34;color:#fff;position:absolute; top:50%; left:50%; margin:20px 0 0 -50px; padding:3px 10px;&#34;&#62;页面载入中..&#60;/p&#62; &#60;/div&#62; 未达到最佳效果，请将上面代码中background里url括号内的图片下载至你的模板文件夹(比如img文件夹)内，并将此图片网址改为如下： background:#000 url&#40;&#60;?php bloginfo&#40;'stylesheet_directory'&#41;; ?&#62;/img/load.gif&#41; [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://zeddicus.com/">Zed童鞋</a>向我询问本站载入效果的做法，由于比较繁琐，遂写到Blog中来，一来是这样比QQ等手段更有条理性，二来可以保留下来提高重用率。</p>
<p>废话不多说，现在开始：</p>
<p><strong>1.结果</strong><br />
本效果完成后的效果就是你在打开本站每一个页面的时候会出现一个半透明遮罩一个loading画面然后页面载入完以后遮罩消失的效果。</p>
<p><strong>2.思路</strong><br />
这个半透明遮罩首先被载入，这样他才能在一开始就出现，他上面有一张图片和一段文字告诉浏览者这是在loading，而不是笔记本快没电了或者什么；然后，页面的DOM就Ready了，这个时候为了验证各种库(比如我所使用的jQuery)载入完毕，CSS也下载完了，我们使用jQuery语句来使这个遮罩层隐藏起来，这个时候这个效果就完成了。<span id="more-740"></span></p>
<p><strong>3.准备</strong><br />
你需要一个已经安装好的网站，和一个可以在你自己控制之下的文件系统。说简单点，拿Wordpress举例，你得能够修改自己的模板全部代码；你需要一个<a href="http://code.jquery.com/jquery-latest.min.js">jQuery库</a>、 一个<a href="http://interjc.googlecode.com/svn/trunk/waterfall/img/load.gif">载入用的图片</a>、和一个<a href="http://sourceforge.net/project/showfiles.php?group_id=95717&#038;package_id=102072">好用的文本编辑器</a>(当然你可以用记事本，不过我这里推荐Notepad++)。</p>
<p><strong>4.动手</strong><br />
以下我们以修改一个Wordpress模板为例，其他所有类型网页修改方法都大同小异，只是文件的命名方式有少许不同而已。</p>
<p>找到header.php文件，用编辑器打开，如果你的模板本身没有使用jQuery库，那么请在<strong>&lt;head&gt;&lt;/head&gt;</strong>标签内加入以下代码：</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://code.jquery.com/jquery-latest.min.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php bloginfo('stylesheet_directory'); ?&gt;</span></span>/loading.js&quot;&gt;<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></div></div>

<p>还是header.php文件，找到body标签，将其修改并在其下添加遮罩层，如下：</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;height:100%; width:100%; position:relative;&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;loading&quot;</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;position:fixed !important;position:absolute;top:0;left:0;height:100%; width:100%; z-index:999; background:#000 url(http://interjc.googlecode.com/svn/trunk/waterfall/img/load.gif) no-repeat center center; opacity:0.6; filter:alpha(opacity=60);font-size:14px;line-height:20px;&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;loading-one&quot;</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;color:#fff;position:absolute; top:50%; left:50%; margin:20px 0 0 -50px; padding:3px 10px;&quot;</span>&gt;</span>页面载入中..<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<p>未达到最佳效果，请将上面代码中background里url括号内的图片下载至你的模板文件夹(比如img文件夹)内，并将此图片网址改为如下：</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>&lt;?php bloginfo<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'stylesheet_directory'</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> ?<span style="color: #00AA00;">&gt;</span>/img/load.gif<span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #993333;">center</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span></pre></div></div>

<p>最后通过jQuery来控制整个遮罩(也就是页面载入效果)的行为：<br />
在模板文件夹随便什么地方(这里我们使用其根目录)新建一个名为loading的js文件loading.js ，在其中添加如下代码：</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">//载入中 Loding..</span>
jQuery<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
  jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#loading-one'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'页面载入完毕.'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">parent</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeOut</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'slow'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p><strong style="color:red;">Update(2010.1.9)：</strong></p>
<blockquote><p><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html#comment-11377">默默觉得</a>需要一个点击就立刻取消遮罩的功能，可以照顾到网速慢的用户&#8230;</p></blockquote>
<p>我觉得他说得很对，于是我就加上了，在此对<a href="http://mozin.org">默默童鞋</a>表示感谢。如果你也需要这样的功能，可以这么做：<br />
打开header.php文件，把刚才的那段添加在body标签之下的关于遮罩的代码替换成如下代码即可：</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;loading&quot;</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;position:fixed !important;position:absolute;top:0;left:0;height:100%; width:100%; z-index:999; background:#000 url(http://interjc.googlecode.com/svn/trunk/waterfall/img/load.gif) no-repeat center center; opacity:0.6; filter:alpha(opacity=60);font-size:14px;line-height:20px;&quot;</span> <span style="color: #000066;">onclick</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;javascript:turnoff('loading')&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;loading-one&quot;</span> <span style="color: #000066;">style</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;color:#fff;position:absolute; top:50%; left:50%; margin:20px 0 0 -50px; padding:3px 10px;&quot;</span> <span style="color: #000066;">onclick</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;javascript:turnoff('loading')&quot;</span>&gt;</span>页面载入中..<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
//<span style="color: #009900;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #009900;">  function turnoff<span style="color: #66cc66;">&#40;</span>obj<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></span>
<span style="color: #009900;">    document.getElementById<span style="color: #66cc66;">&#40;</span>obj<span style="color: #66cc66;">&#41;</span>.<span style="color: #000066;">style</span>.display<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;none&quot;</span>;</span>
<span style="color: #009900;">  <span style="color: #66cc66;">&#125;</span></span>
<span style="color: #009900;"><span style="color: #66cc66;">//</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></div></div>

<p><img class="alignleft" src="http://i824.photobucket.com/albums/zz165/interjc/blogging/2010-1-117-54-04.png" alt="" /><br />
<strong>5.完工</strong><br />
这个时候把所有修改过的文件保存，然后上传，应该就成功了。需要注意的是，如果你使用的是UTF-8编码的话，所有的文件必须使用编辑器转换为UTF-8无BOM模式之后再保存，不然也许会出现各种诸如乱码之类的问题。更改格式的办法如左图(以notepadd++为例)。</p>
<p>有意见或者建议欢迎在楼下指出，have fun！</p>
<hr /><h2>评论</h2><ul><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/01/01</a>, <a href='http://5uxy.com' rel='external nofollow' class='url'>锋子</a> 说: 耍酷用····</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/01/01</a>, <a href='http://zeddicus.com' rel='external nofollow' class='url'>Zeddicus</a> 说: 好东西啊！谢谢interjc哥哥~</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/01/01</a>, <a href='http://zeddicus.com' rel='external nofollow' class='url'>Zeddicus</a> 说: 搞定啦哈哈哈哈！谢谢啊！</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/01/01</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: <a href="#comment-11325" rel="nofollow">@Zeddicus</a>, 呵呵，搞定就好～</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/01/01</a>, <a href='http://zeddicus.com' rel='external nofollow' class='url'>Zeddicus</a> 说: <a href="#comment-11327" rel="nofollow">@interjc</a>, 感激不尽哈哈~</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/01/02</a>, <a href='http://www.99187.cn' rel='external nofollow' class='url'>珍井坊</a> 说: 深更半夜睡不着，来看看博主的文章，呵呵，有时间也记得会放下我司小站。www.99187.cn 刚做，博主不要笑话。</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/01/02</a>, <a href='http://www.zuole.net' rel='external nofollow' class='url'>macfee</a> 说: 围观，学习，飘过</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/01/07</a>, <a href='http://zeddicus.com/articles/2010/01/01/curious-thesis-of-interjc-loading-js.html' rel='external nofollow' class='url'>奇文共赏之Interjc Jquery Loding Effect - Zeddicus Blog - 设计 生活 技术 感悟 杂谈 分享</a> 说: [...] 　　马上访问：《关于本Blog的页面载入效果》      类归于： 资源分享 &#8212; Zed @ 8:00 下午  评论 (6)   版权信息 [...]</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/01/08</a>, <a href='http://www.mozin.org' rel='external nofollow' class='url'>默默</a> 说: 呵呵，有点意思。不过我总觉得这样的显示方式更注重的是花哨而不是实用。</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/01/08</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: <a href="#comment-11369" rel="nofollow">@默默</a>, 这种方式的实用处在于，不会再页面最基本的东西还没有载入完毕的时候，页面就会被点击，有些js的运行会妨碍后面的js的载入。
而且这个载入效果完毕以后，至少代表我的jQuery库和CSS载入完毕了..
另：我有时候用这个来debug..如果js写的不对，遮罩就总不会消失..</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/01/09</a>, <a href='http://www.mozin.org' rel='external nofollow' class='url'>默默</a> 说: <a href="#comment-11371" rel="nofollow">@interjc</a>, 的确，你这样是保证了页面没有载入完毕的时候页面不被点击，但是对于网速比较慢的用户来说，可能我需要的不是你的页面全部载入完毕，我只需要我想看的东西载入完毕就行了，这部分主要是文字。比如你的首页，我一打开，看到这篇文章，我有兴趣，想点击标题继续阅读，但是这个时候css和其他东西还没有载入完毕，遮罩就会阻碍我点击我想要的链接，这个时候我就必须一直等待，知道你的页面完全加载完毕。这样的情况下，无疑浪费了访客的时间，让对方下载了自己不需要的数据。</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/01/09</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: <a href="#comment-11377" rel="nofollow">@默默</a>, 你说的不错，我现在就加上点击立刻取消遮罩的功能～
多谢建议～</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/01/14</a>, <a href='http://www.anyiwa.com' rel='external nofollow' class='url'>安逸哇</a> 说: 学习了,不过我的站点速度有点慢.不太适合用这个.</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/01/14</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: <a href="#comment-11412" rel="nofollow">@安逸哇</a>, 呵呵，这个就是用来让浏览者等待时不觉得时间太长的啊～</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/01/26</a>, <a href='http://www.superm.org/wordpress/1110.html' rel='external nofollow' class='url'>WordPress jQuery页面载入进度条 | 超人流水账</a> 说: [...] 因为前几天换上这款主题之后，本身就有很多jQuery小机关。发现很多wordpress博客中都使用了jQuery页面载入进度条。觉得相当帅气，今天在糖醋排骨的博客中：关于本Blog的页面载入效果一文中找到了方法。于是马上折腾上，方法如下： [...]</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/01/28</a>, <a href='http://www.leaf-home.org/dui-shadowblue-mu-ban-de-tiao-zhen.html' rel='external nofollow' class='url'>对shadowblue模板的调整 | 枫之居</a> 说: [...] ……原谅我吧 我又对shadowblue这个模板折腾了。 通过后台的该模板作者（糖醋排骨）。我对该模板增加了2个功能： 1、在该模板的基础上新增页面载入效果。 详细请看：关于本Blog的页面载入效果 [...]</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/02/04</a>, 11 说: 怎么用在asp.net（c#）页面中呢？？</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/02/04</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @11, 一样的，这里都是html+js，什么语言都一样，只是放的文件位置不同而已..</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/02/13</a>, <a href='http://rinkaiten.zombie.jp/yamirogu/loading_jquery/' rel='external nofollow' class='url'>[jQuery]頁面載入效果★やみろぐ。</a> 说: [...] 剛剛在昨天不經意逛到糖醋排骨，他家的載入效果真的是太炫了(閃) 載入圖片(很明顯就是臉●的產物)+「頁面載入中」字句+半透明黑色背景=ネ申 [...]</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/03/01</a>, <a href='http://iover.cn/index.php/about-this-blog-page-load-effect.html' rel='external nofollow' class='url'>关于本Blog的页面载入效果 | iOver | 爱窝网</a> 说: [...] Update(2010.1.9)： 默 默觉得需要一个点击就立刻取消遮罩的功能，可以照顾到网速慢的用户… [...]</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/03/01</a>, <a href='http://www.17mad.com' rel='external nofollow' class='url'>lp452</a> 说: 非常感谢！
请教一下。
&lt;body &gt;
是改正这样吗?
&lt;body style=&quot;height:100%; width:100%; position:relative;&quot; &gt;</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/03/01</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @lp452, 是这样，没错</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/04/30</a>, <a href='http://mysoo.info' rel='external nofollow' class='url'>郑美园</a> 说: 用了这个效果，在搜索结果下方做了鸣谢链接。

谢谢:)</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/04/30</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @郑美园, 客气，感谢捧场</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/05/03</a>, <a href='http://www.cuckoos.me' rel='external nofollow' class='url'>Jest</a> 说: 为什么我在博客上测试 “页面载入”几个字消失之前要变乱码一下~~~ = =</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/05/03</a>, <a href='http://www.cuckoos.me' rel='external nofollow' class='url'>Jest</a> 说: 哦  不对 现在情况是没有乱码 但是一直在载入· ······</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/05/03</a>, <a href='http://www.cuckoos.me' rel='external nofollow' class='url'>Jest</a> 说: “如果你使用的是UTF-8编码的话，所有的文件必须使用编辑器转换为UTF-8无BOM模式之后再保存，不然也许会出现各种诸如乱码之类的问题”
“另：我有时候用这个来debug..如果js写的不对，遮罩就总不会消失..”
  我就复制的文章里提供的代码···</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/05/03</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @Jest, 我猜想是文件编码的问题</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/05/03</a>, <a href='http://www.cuckoos.me' rel='external nofollow' class='url'>Jest</a> 说: 已经按UTF-8无BOM模式保存了啊
在IE里打开 会提示loading.js 有错 缺少对象  - -</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/05/04</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @Jest, 原因有好多，看了看你的博客貌似已经去除了相应代码，所以看不出来问题原因。

如果你使用的是shadowblue的话，只需要加入
<pre lang="xml"><script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/loading.js"></script></pre> 而无需载入库文件

shadowblue的下一个版本会考虑加入这个功能，自己不想弄的话敬请等待，呵呵。</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/05/04</a>, <a href='http://www.cuckoos.me' rel='external nofollow' class='url'>Jest</a> 说: @interjc, 

嗯 用的shadowblue 之前修改的时候打开header.php 看到已经载入"jQuery.js"了  也就仅仅只加了载入loading.js的代码 我再自己捣鼓一下</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/06/04</a>, king2z 说: 用上了，但是用上了发现和willin的ajax回复评论有点冲突，那个提交loading按钮一直显示出来，又无奈去掉了。</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/06/04</a>, <a href='http://www.zzloo.net' rel='external nofollow' class='url'>天天天蓝</a> 说: 好文章，好好学学下……</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/06/04</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @king2z, 下次修改下代码，弄个更能适应恶劣代码环境的出来</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/06/27</a>, 凡小爱 说: 打开每一页都有着效果？岂不是每一页都要这样做？</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/06/28</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @凡小爱, 动态网页只用添加一处就行了</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/08/09</a>, <a href='http://me.raenclub.com/archives/33' rel='external nofollow' class='url'>开源博客 &middot; Blog的页面载入效果</a> 说: [...] 默默觉得需要一个点击就立刻取消遮罩的功能，可以照顾到网速慢的用户… [...]</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/08/09</a>, <a href='http://www.raenclub.com' rel='external nofollow' class='url'>Richard</a> 说: 使用后发现网站展示图片另外一组无法拉动，求解。
就是网站第一块使用后无法拉动</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/08/09</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @Richard, 实在看不懂你的意思</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/08/11</a>, <a href='http://snowxh.in/' rel='external nofollow' class='url'>snowxh</a> 说: 请问下这个和Ajax-comment的冲突怎么解决呢
loading的按钮会一直出现恶</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/08/17</a>, <a href='http://psfz.net' rel='external nofollow' class='url'>方丈</a> 说: @snowxh, 嘿嘿嘿……被我发现了哇……</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/08/17</a>, <a href='http://snowxh.in/' rel='external nofollow' class='url'>snowxh</a> 说: @方丈, 我贴了传送门的好不好~</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/08/17</a>, <a href='http://psfz.net' rel='external nofollow' class='url'>方丈</a> 说: @snowxh, 完了……没有看见……类目……</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/08/17</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @snowxh, 最简单直接的办法是在&lt;body>加上 onload="javascript:document.getElementById('loading').style.display='none';" 既：
<pre lang="javascript"><body onload="javascript:document.getElementById('loading').style.display='none';"></pre>
这种问题我也不知道是那里引起的，我这也装了不少插件啊，也没这个问题</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/08/17</a>, <a href='http://snowxh.in/' rel='external nofollow' class='url'>snowxh</a> 说: @interjc, 已经解决了~是跟一个 id重名了 囧</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/09/07</a>, <a href='http://dlmt8.com/blog/archives/272' rel='external nofollow' class='url'>关于本Blog的页面载入效果 - 堕落∮木头&#039;s BLOG</a> 说: [...] 默默觉得需要一个点击就立刻取消遮罩的功能，可以照顾到网速慢的用户&hellip; [...]</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/09/09</a>, <a href='http://fanr.me' rel='external nofollow' class='url'>Fanr</a> 说: 必须得收藏！超级实用，嘿嘿 ~~</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/10/15</a>, <a href='http://www.ninthday.net' rel='external nofollow' class='url'>Dawnson</a> 说: 看着不错，试一下去，谢了！</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2010/11/01</a>, <a href='http://zhaoweitian.com' rel='external nofollow' class='url'>Weitian Zhao</a> 说: 测试下回复会不会一直loading...</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2011/03/18</a>, <a href='http://www.nowpeng.com' rel='external nofollow' class='url'>leaves</a> 说: 很喜欢这个效果，用了，谢过。</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2011/04/13</a>, <a href='http://imzh.net' rel='external nofollow' class='url'>张衡</a> 说: 这个效果，学习了。。。</li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html">2011/06/02</a>, <a href='http://www.52face.net' rel='external nofollow' class='url'>雨丸</a> 说: 太厉害了！！！！果然很华丽</li></ul><hr /><h2>延展阅读:</h2><ul><li><a href="http://interjc.net/archives/2010/01/15/jquery-1-4-released.html" rel="bookmark" title="Permanent Link: jQuery 1.4 Released">jQuery 1.4 Released</a></li><li><a href="http://interjc.net/archives/2011/01/24/json-data-based-jquery-navigator-plugin.html" rel="bookmark" title="Permanent Link: 基于json数据的jQuery无限级下拉菜单插件">基于json数据的jQuery无限级下拉菜单插件</a></li><li><a href="http://interjc.net/archives/2009/09/06/anti-ie6.html" rel="bookmark" title="Permanent Link: 反IE6代码">反IE6代码</a></li><li><a href="http://interjc.net/archives/2010/04/25/php-ajax.html" rel="bookmark" title="Permanent Link: 一个最简单的基于PHP+jQuery的AJAX例子">一个最简单的基于PHP+jQuery的AJAX例子</a></li><li><a href="http://interjc.net/archives/2009/10/10/wibiya.html" rel="bookmark" title="Permanent Link: Wibiya">Wibiya</a></li></ul><hr /><small>Copyright &copy; interjc.net 2009
<br /> </small>]]></content:encoded>
			<wfw:commentRss>http://interjc.net/archives/2010/01/01/jquery-loding-effect.html/feed</wfw:commentRss>
		<slash:comments>52</slash:comments>
		</item>
		<item>
		<title>使用jquery和cookies控制select表单</title>
		<link>http://interjc.net/archives/2009/11/30/jquery-cookies-select-form.html</link>
		<comments>http://interjc.net/archives/2009/11/30/jquery-cookies-select-form.html#comments</comments>
		<pubDate>Mon, 30 Nov 2009 09:56:18 +0000</pubDate>
		<dc:creator>interjc</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[笔记]]></category>

		<guid isPermaLink="false">http://interjc.net/?p=632</guid>
		<description><![CDATA[问题源于一个群里面的提问，在一个网页上添加一个select表单，当用户选择表单的时候，内容区会显示不同的内容，并在该用户下次打开此网页的时候记住这个设置。 像这样的东东一般都会想到要用Cookies来存储设置，方便起见，对于DOM的操作就想到了jQuery（直接写js执行效率会更高，只是，人都是很懒的嘛，呵呵..）。记录下来也算是个笔记吧(Demo)。 首先写这么一个Select下拉表单，以及用来输出被选中项相应内容的块： &#60;!--以下就是一段普通的select下拉菜单--&#62; &#60;select id=&#34;choose&#34;&#62; &#60;option value=&#34;0&#34;&#62;请选择城市&#60;/option&#62; &#60;option value=&#34;beijing&#34;&#62;北京&#60;/option&#62; &#60;option value=&#34;shanghai&#34;&#62;上海&#60;/option&#62; &#60;option value=&#34;wuhan&#34;&#62;武汉&#60;/option&#62; &#60;option value=&#34;shenzhen&#34;&#62;深圳&#60;/option&#62; &#60;/select&#62; &#60;div id=&#34;output&#34; class=&#34;default&#34;&#62;&#60;/div&#62; 然后是用来处理Cookies的函数，其实jQuery有个插件是干这个的，不过貌似有点小Bug，所以我用的是以下函数： //这一大段代码你没有必要知道它的确切意思，只要复制粘贴就可以了，他们是用来提供操作Cookies的支持的 function setCookie&#40;name,value,days&#41; &#123; if &#40;days&#41; &#123; var date = new Date&#40;&#41;; date.setTime&#40;date.getTime&#40;&#41;+&#40;days*24*60*60*1000&#41;&#41;; var expires = &#34;; expires=&#34;+date.toGMTString&#40;&#41;; &#125; else var expires = &#34;&#34;; document.cookie = name+&#34;=&#34;+value+expires+&#34;; path=/&#34;; &#125; function getCookie&#40;name&#41; &#123; var nameEQ [...]]]></description>
			<content:encoded><![CDATA[<p>问题源于一个群里面的提问，在一个网页上添加一个select表单，当用户选择表单的时候，内容区会显示不同的内容，并在该用户下次打开此网页的时候记住这个设置。<br />
像这样的东东一般都会想到要用Cookies来存储设置，方便起见，对于DOM的操作就想到了jQuery（直接写js执行效率会更高，只是，人都是很懒的嘛，呵呵..）。记录下来也算是个笔记吧(<a href="http://d.interjc.net/form-select.html">Demo</a>)。</p>
<p>首先写这么一个Select下拉表单，以及用来输出被选中项相应内容的块：</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;!--以下就是一段普通的select下拉菜单--&gt;
&lt;select id=&quot;choose&quot;&gt;
		&lt;option value=&quot;0&quot;&gt;请选择城市&lt;/option&gt; 
		&lt;option value=&quot;beijing&quot;&gt;北京&lt;/option&gt; 
		&lt;option value=&quot;shanghai&quot;&gt;上海&lt;/option&gt; 
		&lt;option value=&quot;wuhan&quot;&gt;武汉&lt;/option&gt; 
		&lt;option value=&quot;shenzhen&quot;&gt;深圳&lt;/option&gt; 
  &lt;/select&gt;
&lt;div id=&quot;output&quot; class=&quot;default&quot;&gt;&lt;/div&gt;</pre></div></div>

<p>然后是用来处理Cookies的函数，其实jQuery有个插件是干这个的，不过貌似有点小Bug，所以我用的是以下函数：<br />
<span id="more-632"></span></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">//这一大段代码你没有必要知道它的确切意思，只要复制粘贴就可以了，他们是用来提供操作Cookies的支持的</span>
<span style="color: #003366; font-weight: bold;">function</span> setCookie<span style="color: #009900;">&#40;</span><span style="color: #000066;">name</span><span style="color: #339933;">,</span>value<span style="color: #339933;">,</span>days<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>days<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #003366; font-weight: bold;">var</span> date <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Date<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		date.<span style="color: #660066;">setTime</span><span style="color: #009900;">&#40;</span>date.<span style="color: #660066;">getTime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #009900;">&#40;</span>days<span style="color: #339933;">*</span><span style="color: #CC0000;">24</span><span style="color: #339933;">*</span><span style="color: #CC0000;">60</span><span style="color: #339933;">*</span><span style="color: #CC0000;">60</span><span style="color: #339933;">*</span><span style="color: #CC0000;">1000</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #003366; font-weight: bold;">var</span> expires <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;; expires=&quot;</span><span style="color: #339933;">+</span>date.<span style="color: #660066;">toGMTString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #000066; font-weight: bold;">else</span> <span style="color: #003366; font-weight: bold;">var</span> expires <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">;</span>
	document.<span style="color: #660066;">cookie</span> <span style="color: #339933;">=</span> <span style="color: #000066;">name</span><span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;=&quot;</span><span style="color: #339933;">+</span>value<span style="color: #339933;">+</span>expires<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;; path=/&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #003366; font-weight: bold;">function</span> getCookie<span style="color: #009900;">&#40;</span><span style="color: #000066;">name</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span> nameEQ <span style="color: #339933;">=</span> <span style="color: #000066;">name</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;=&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #003366; font-weight: bold;">var</span> ca <span style="color: #339933;">=</span> document.<span style="color: #660066;">cookie</span>.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">';'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>i <span style="color: #339933;">&lt;</span> ca.<span style="color: #660066;">length</span><span style="color: #339933;">;</span>i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #003366; font-weight: bold;">var</span> c <span style="color: #339933;">=</span> ca<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">while</span> <span style="color: #009900;">&#40;</span>c.<span style="color: #660066;">charAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span><span style="color: #3366CC;">' '</span><span style="color: #009900;">&#41;</span> c <span style="color: #339933;">=</span> c.<span style="color: #660066;">substring</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">1</span><span style="color: #339933;">,</span>c.<span style="color: #660066;">length</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>c.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span>nameEQ<span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #000066; font-weight: bold;">return</span> c.<span style="color: #660066;">substring</span><span style="color: #009900;">&#40;</span>nameEQ.<span style="color: #660066;">length</span><span style="color: #339933;">,</span>c.<span style="color: #660066;">length</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #003366; font-weight: bold;">function</span> dropCookie<span style="color: #009900;">&#40;</span><span style="color: #000066;">name</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	setCookie<span style="color: #009900;">&#40;</span><span style="color: #000066;">name</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">,-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>然后是用来操作表单和Cookies的js：</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #006600; font-style: italic;">//以下部分是提取Cookie并对网页内容进行预设的过程</span>
	<span style="color: #003366; font-weight: bold;">var</span> cityChosen <span style="color: #339933;">=</span> getCookie<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'citychosen'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #006600; font-style: italic;">//取得cookie中保存的值</span>
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>cityChosen<span style="color: #339933;">!=</span><span style="color: #003366; font-weight: bold;">null</span> <span style="color: #339933;">&amp;&amp;</span> cityChosen<span style="color: #339933;">!=</span><span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>    <span style="color: #006600; font-style: italic;">//如果有这个cookie值</span>
		<span style="color: #003366; font-weight: bold;">var</span> chosen <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#choose option[value=&quot;'</span><span style="color: #339933;">+</span>cityChosen<span style="color: #339933;">+</span><span style="color: #3366CC;">'&quot;]'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #006600; font-style: italic;">//绑定cookie中保存的那个城市所对应的选项</span>
		chosen.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'selected'</span><span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #006600; font-style: italic;">//使此选项变为选定状态</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#output&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span>cityChosen<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;你上次选择了&lt;br /&gt;&quot;</span> <span style="color: #339933;">+</span> chosen.<span style="color: #660066;">text</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #006600; font-style: italic;">//为id为output的div添加class为相应城市名称的类，以便在css中分别定义样式，并输出相应文字</span>
	<span style="color: #009900;">&#125;</span>
    <span style="color: #006600; font-style: italic;">//以下部分是用户对下拉菜单进行选取的时候，将设置存到Cookie，并对相应内容部分进行设定</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#choose&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">change</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #003366; font-weight: bold;">var</span> selected <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#choose option:selected&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #006600; font-style: italic;">//浏览者选中一个选项	</span>
		<span style="color: #003366; font-weight: bold;">var</span> output <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">;</span>
		<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>selected.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!=</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>  <span style="color: #006600; font-style: italic;">//如果选项的值不为0</span>
			setCookie<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'citychosen'</span><span style="color: #339933;">,</span>selected.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #CC0000;">365</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #006600; font-style: italic;">//将被选中选项的value值存在名为citychosen的cookie里面，有效期一年</span>
			output <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;你这次选择了&lt;br /&gt;&quot;</span> <span style="color: #339933;">+</span> selected.<span style="color: #660066;">text</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #006600; font-style: italic;">//设定output中的内容</span>
		<span style="color: #009900;">&#125;</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#output&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span>selected.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span>output<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #006600; font-style: italic;">//在id为output的div里面输出相应的内容</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>想要效果看得更清楚明白一点，写了一点点小CSS：</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #00AA00;">*</span><span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
body<span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span><span style="color: #933;">24px</span> Verdana<span style="color: #00AA00;">,</span> Geneva<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">100px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#output</span><span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">50px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">200px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">200px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
.<span style="color: #993333;">default</span><span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#CCC</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.beijing</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">red</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.shanghai</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">blue</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.wuhan</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span>orange<span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.shenzhen</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span>plum<span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>它们整合起来以后，大概就是如下代码了：</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #00bbdd;">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">html</span> xmlns<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.w3.org/1999/xhtml&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">meta</span> <span style="color: #000066;">http-equiv</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Content-Type&quot;</span> <span style="color: #000066;">content</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/html; charset=utf-8&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">style</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span>&gt;</span>
<span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">*{ margin:0; padding:0;}</span>
<span style="color: #808080; font-style: italic;">body{ font:24px Verdana, Geneva, sans-serif; margin:100px;}</span>
<span style="color: #808080; font-style: italic;">#output{ color:#fff; margin:20px 0; padding:50px; height:200px; width:200px;}</span>
<span style="color: #808080; font-style: italic;">.default{ background:#CCC;}</span>
<span style="color: #808080; font-style: italic;">.beijing{background:red;}</span>
<span style="color: #808080; font-style: italic;">.shanghai{background:blue;}</span>
<span style="color: #808080; font-style: italic;">.wuhan{background:orange;}</span>
<span style="color: #808080; font-style: italic;">.shenzhen{background:plum;}</span>
<span style="color: #808080; font-style: italic;">--&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">style</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;lib/jquery-1.3.2.min.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
//<span style="color: #009900;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #009900;">$<span style="color: #66cc66;">&#40;</span>function<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></span>
<span style="color: #009900;">	var cityChosen <span style="color: #66cc66;">=</span> getCookie<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'citychosen'</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #009900;">	if<span style="color: #66cc66;">&#40;</span>cityChosen!<span style="color: #66cc66;">=</span>null &amp;&amp; cityChosen!<span style="color: #66cc66;">=</span><span style="color: #ff0000;">''</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></span>
<span style="color: #009900;">		var chosen <span style="color: #66cc66;">=</span> $<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'#choose option[value=&quot;'</span>+cityChosen+<span style="color: #ff0000;">'&quot;]'</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #009900;">		chosen.attr<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'selected'</span>,true<span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #009900;">		$<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;#output&quot;</span><span style="color: #66cc66;">&#41;</span>.removeClass<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.addClass<span style="color: #66cc66;">&#40;</span>cityChosen<span style="color: #66cc66;">&#41;</span>.html<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;你上次选择了&lt;br /&gt;</span></span>&quot; + chosen.text());
	}
	$(&quot;#choose&quot;).change(function(){
		var selected = $(&quot;#choose option:selected&quot;);		
		var output = &quot;&quot;;
		if(selected.val() != 0){
			setCookie('citychosen',selected.val(),365);
			output = &quot;你这次选择了<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">br</span> <span style="color: #66cc66;">/</span>&gt;</span>&quot; + selected.text();
		}
		$(&quot;#output&quot;).removeClass().addClass(selected.val()).html(output);
	});
});
//以下是用来处理Cookies的函数
function setCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = &quot;; expires=&quot;+date.toGMTString();
	}
	else var expires = &quot;&quot;;
	document.cookie = name+&quot;=&quot;+value+expires+&quot;; path=/&quot;;
}
function getCookie(name) {
	var nameEQ = name + &quot;=&quot;;
	var ca = document.cookie.split(';');
	for(var i=0;i <span style="color: #009900;">&lt; ca.length;i++<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #009900;">		var c <span style="color: #66cc66;">=</span> ca<span style="color: #66cc66;">&#91;</span>i<span style="color: #66cc66;">&#93;</span>;</span>
<span style="color: #009900;">		while <span style="color: #66cc66;">&#40;</span>c.charAt<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">==</span><span style="color: #ff0000;">' '</span><span style="color: #66cc66;">&#41;</span> c <span style="color: #66cc66;">=</span> c.substring<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">1</span>,c.length<span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #009900;">		if <span style="color: #66cc66;">&#40;</span>c.indexOf<span style="color: #66cc66;">&#40;</span>nameEQ<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">==</span> <span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span> return c.substring<span style="color: #66cc66;">&#40;</span>nameEQ.length,c.length<span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #009900;">	<span style="color: #66cc66;">&#125;</span></span>
<span style="color: #009900;">	return null;</span>
<span style="color: #009900;"><span style="color: #66cc66;">&#125;</span></span>
<span style="color: #009900;">function dropCookie<span style="color: #66cc66;">&#40;</span><span style="color: #000066;">name</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></span>
<span style="color: #009900;">	createCookie<span style="color: #66cc66;">&#40;</span><span style="color: #000066;">name</span>,<span style="color: #ff0000;">&quot;&quot;</span>,-<span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>;</span>
<span style="color: #009900;"><span style="color: #66cc66;">&#125;</span></span>
<span style="color: #009900;"><span style="color: #66cc66;">//</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">title</span>&gt;</span>选择表单<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">title</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">select</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;choose&quot;</span>&gt;</span>
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">option</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;0&quot;</span>&gt;</span>请选择城市<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">option</span>&gt;</span> 
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">option</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;beijing&quot;</span>&gt;</span>北京<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">option</span>&gt;</span> 
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">option</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;shanghai&quot;</span>&gt;</span>上海<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">option</span>&gt;</span> 
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">option</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;wuhan&quot;</span>&gt;</span>武汉<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">option</span>&gt;</span> 
		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">option</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;shenzhen&quot;</span>&gt;</span>深圳<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">option</span>&gt;</span> 
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">select</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;output&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;default&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">html</span>&gt;</span></pre></div></div>

<p>效果演示可以看这个：<a href="http://d.interjc.net/form-select.html">Demo</a></p>
<p>PS：Chrome的安全工作做得可真够彻底的，本地文件居然不可以操作Cookies，害我测试了好久..</p>
<hr /><h2>评论</h2><ul><li><a href="http://interjc.net/archives/2009/11/30/jquery-cookies-select-form.html">2009/11/30</a>, 刀哥 说: 很好，俺收下了，只是个中的原理很是不清楚。</li><li><a href="http://interjc.net/archives/2009/11/30/jquery-cookies-select-form.html">2009/11/30</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: <a href="#comment-10997" rel="nofollow">@刀哥</a>, 写的时候急着出门没写说明，以后有时间加上。</li></ul><hr /><h2>延展阅读:</h2><ul><li><a href="http://interjc.net/archives/2010/01/15/jquery-1-4-released.html" rel="bookmark" title="Permanent Link: jQuery 1.4 Released">jQuery 1.4 Released</a></li><li><a href="http://interjc.net/archives/2006/11/26/sitescore.html" rel="bookmark" title="Permanent Link: 本站的sitescore评分">本站的sitescore评分</a></li><li><a href="http://interjc.net/archives/2011/01/24/json-data-based-jquery-navigator-plugin.html" rel="bookmark" title="Permanent Link: 基于json数据的jQuery无限级下拉菜单插件">基于json数据的jQuery无限级下拉菜单插件</a></li><li><a href="http://interjc.net/archives/2009/09/06/anti-ie6.html" rel="bookmark" title="Permanent Link: 反IE6代码">反IE6代码</a></li><li><a href="http://interjc.net/archives/2010/01/01/jquery-loding-effect.html" rel="bookmark" title="Permanent Link: 关于本Blog的页面载入效果">关于本Blog的页面载入效果</a></li></ul><hr /><small>Copyright &copy; interjc.net 2009
<br /> </small>]]></content:encoded>
			<wfw:commentRss>http://interjc.net/archives/2009/11/30/jquery-cookies-select-form.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CMS.txt &#8211; 超简易的内容管理系统</title>
		<link>http://interjc.net/archives/2009/11/28/cms-txt.html</link>
		<comments>http://interjc.net/archives/2009/11/28/cms-txt.html#comments</comments>
		<pubDate>Sat, 28 Nov 2009 11:54:41 +0000</pubDate>
		<dc:creator>interjc</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[CMS.txt]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://interjc.net/?p=627</guid>
		<description><![CDATA[CMS并不是一种离我们遥远的东西，从字面上(Content Management System)就可以知道，他只是一个用来管理网页内容的东东而已，比如我现在所使用的Wordpress就是其中的一种，这里我要介绍的是一个核心程序2K不到，即便加上所有示例文件和模板打包起来也才442K的CMS系统，他的名字叫做 CMS.txt 。 使用起来也很简单，根目录的index.php是核心文件基本不用修改，CMS.txt是配置文件，用来管理网站的结构，内有两个文件夹pages和thems，前者用来存放内容，后者存放模板，如果你只是要发布一些内容的话，只需要动配置文件和pages文件夹里的内容就可以了。 如此简洁的东东，最适合用来制作内容不多的小网站了。 废话不多说，马上做了一个，有兴趣的可以到这里看看，以下是截图： PS：安装和使用CMS.txt需要PHP以及mod_rewrite组件的支持(一般的PHP空间服务商都会提供此功能)。 评论2009/11/29, FORRSS 说: 不错，我也喜欢简约清爽的东西。2009/11/29, Louis Han 说: 内容比较少的话这个还是不错的，txt存储配置简单2009/11/29, interjc 说: @FORRSS, 恩，化繁为简是一种态度2009/11/29, interjc 说: @Louis Han, 呵呵，用来做小项目的homepage会很不错2009/12/30, test 说: 为啥子我用了之后how这些页都是404错误呢？我是在本机测试的！没研究过php所以不太会！2009/12/31, interjc 说: @test, 是不是mod_rewrite组件没有打开.. php.ini里面看看..2010/01/16, 动漫360 说: Parse error: syntax error, unexpected '&#38;', expecting T_VARIABLE or '$' in /home/xxx/index.php on line 1 这个是怎么回事啊?我的主机支持rewrite的啊！为啥子不能用啊？2010/01/16, 动漫360 说: 有人碰到和我一样的问题吗？谁能帮忙解决一下？2010/01/16, [...]]]></description>
			<content:encoded><![CDATA[<p>CMS并不是一种离我们遥远的东西，从字面上(Content Management System)就可以知道，他只是一个用来管理网页内容的东东而已，比如我现在所使用的Wordpress就是其中的一种，这里我要介绍的是一个核心程序2K不到，即便加上所有示例文件和模板打包起来也才442K的CMS系统，他的名字叫做 <strong><a href="http://cms.thewikies.com">CMS.txt</a></strong> 。<br />
使用起来也很简单，根目录的index.php是核心文件基本不用修改，CMS.txt是配置文件，用来管理网站的结构，内有两个文件夹pages和thems，前者用来存放内容，后者存放模板，如果你只是要发布一些内容的话，只需要动配置文件和pages文件夹里的内容就可以了。<br />
如此简洁的东东，最适合用来制作内容不多的小网站了。</p>
<p>废话不多说，马上做了一个，有兴趣的可以<strong><a href="http://d.interjc.net/cms.txt/">到这里看看</a></strong>，以下是截图：</p>
<p><a href="http://s824.photobucket.com/albums/zz165/interjc/?action=view&#038;current=cmstxt.png" target="_blank"><img src="http://i824.photobucket.com/albums/zz165/interjc/cmstxt.png" alt="Photobucket"></a></p>
<p>PS：安装和使用CMS.txt需要PHP以及mod_rewrite组件的支持(一般的PHP空间服务商都会提供此功能)。</p>
<hr /><h2>评论</h2><ul><li><a href="http://interjc.net/archives/2009/11/28/cms-txt.html">2009/11/29</a>, <a href='http://forrss.com/' rel='external nofollow' class='url'>FORRSS</a> 说: 不错，我也喜欢简约清爽的东西。</li><li><a href="http://interjc.net/archives/2009/11/28/cms-txt.html">2009/11/29</a>, <a href='http://louishan.com/' rel='external nofollow' class='url'>Louis Han</a> 说: 内容比较少的话这个还是不错的，txt存储配置简单</li><li><a href="http://interjc.net/archives/2009/11/28/cms-txt.html">2009/11/29</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: <a href="#comment-10960" rel="nofollow">@FORRSS</a>, 恩，化繁为简是一种态度</li><li><a href="http://interjc.net/archives/2009/11/28/cms-txt.html">2009/11/29</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: <a href="#comment-10974" rel="nofollow">@Louis Han</a>, 呵呵，用来做小项目的homepage会很不错</li><li><a href="http://interjc.net/archives/2009/11/28/cms-txt.html">2009/12/30</a>, <a href='http://www.etst.com' rel='external nofollow' class='url'>test</a> 说: 为啥子我用了之后how这些页都是404错误呢？我是在本机测试的！没研究过php所以不太会！</li><li><a href="http://interjc.net/archives/2009/11/28/cms-txt.html">2009/12/31</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: <a href="#comment-11307" rel="nofollow">@test</a>, 是不是mod_rewrite组件没有打开.. php.ini里面看看..</li><li><a href="http://interjc.net/archives/2009/11/28/cms-txt.html">2010/01/16</a>, <a href='http://www.dongman360.com' rel='external nofollow' class='url'>动漫360</a> 说: Parse error: syntax error, unexpected '&amp;', expecting T_VARIABLE or '$' in /home/xxx/index.php on line 1
这个是怎么回事啊?我的主机支持rewrite的啊！为啥子不能用啊？</li><li><a href="http://interjc.net/archives/2009/11/28/cms-txt.html">2010/01/16</a>, <a href='http://www.dongman360.com' rel='external nofollow' class='url'>动漫360</a> 说: 有人碰到和我一样的问题吗？谁能帮忙解决一下？</li><li><a href="http://interjc.net/archives/2009/11/28/cms-txt.html">2010/01/16</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: <a href="#comment-11428" rel="nofollow">@动漫360</a>, 没遇见过这个问题</li><li><a href="http://interjc.net/archives/2009/11/28/cms-txt.html">2010/01/16</a>, <a href='http://www.dongman360.com' rel='external nofollow' class='url'>动漫360</a> 说: 我很想用你这个程序！不过报错用不了啊！郁闷死我了！现在特需要这个程序！</li><li><a href="http://interjc.net/archives/2009/11/28/cms-txt.html">2010/01/16</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: <a href="#comment-11430" rel="nofollow">@动漫360</a>, 你确定你用的是PHP主机么？LAMP？</li><li><a href="http://interjc.net/archives/2009/11/28/cms-txt.html">2010/01/16</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: <a href="#comment-11430" rel="nofollow">@动漫360</a>, 我用的很正常哦，LAMP主机..</li><li><a href="http://interjc.net/archives/2009/11/28/cms-txt.html">2010/01/18</a>, <a href='http://www.dongman360.com' rel='external nofollow' class='url'>动漫360</a> 说: 我用的是php主机，我上面还有其他的网站呢！而且那些网站也都在使用Rewrite功能，我是学.net的初学者对php不是很懂</li><li><a href="http://interjc.net/archives/2009/11/28/cms-txt.html">2010/01/18</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @动漫360, 那我就帮不了你了..</li><li><a href="http://interjc.net/archives/2009/11/28/cms-txt.html">2010/01/18</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @动漫360, 你重新下载一个源程序试试，到他官网下载 http://cms.thewikies.com/</li><li><a href="http://interjc.net/archives/2009/11/28/cms-txt.html">2010/01/18</a>, <a href='http://www.zuole.net' rel='external nofollow' class='url'>macfee</a> 说: 让我想到了tsys</li><li><a href="http://interjc.net/archives/2009/11/28/cms-txt.html">2010/01/18</a>, <a href='http://www.dongman360.com' rel='external nofollow' class='url'>动漫360</a> 说: @interjc, 非常感谢！我自己在研究一下吧！</li><li><a href="http://interjc.net/archives/2009/11/28/cms-txt.html">2010/01/21</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: tsys是什么呢？</li></ul><hr /><small>Copyright &copy; interjc.net 2009
<br /> </small>]]></content:encoded>
			<wfw:commentRss>http://interjc.net/archives/2009/11/28/cms-txt.html/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>WordPress主题：Grey Cover</title>
		<link>http://interjc.net/archives/2009/10/26/wordpress-theme-grey-cover.html</link>
		<comments>http://interjc.net/archives/2009/10/26/wordpress-theme-grey-cover.html#comments</comments>
		<pubDate>Mon, 26 Oct 2009 09:31:31 +0000</pubDate>
		<dc:creator>interjc</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[Grey Cover]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://interjc.net/?p=587</guid>
		<description><![CDATA[做了一个Wordpress主题，根据其配色方案起名为Grey Cover，顾名思义就是灰不隆咚的一主题，颜色不大鲜艳，侧边栏还是左侧的，还用的是直角，应该算是比较小众吧，希望喜欢这种风格主题的人能够喜欢。 点击下载 &#124; 预览 这个主题有几个特点： 1. 主题内置分类Widget模块，后台小工具(widgets)面板中有可重复使用的模块“分类 Widget”，可以任意拖放至左中右三个Widget Bar中使用，这样就算是一个可随意定制的CMS主题了； 2. 首页及分类、Tag、存档页都使用幻灯片来展示文章列表，这样就可以把下面的大片区域让出来放置更丰富的内容； 3. 幻灯片中可以为每篇文章分别配图(最佳规格为200×100，单位为PX)，添加方法为：在该文章的自定义域添加一个名为 simg 的域，值为你要显示的图片地址； 4. 简单SEO优化、留言回复支持Ctrl+Enter、Widget Ready、通过标准…… 等等必要特性都是有的。 有任何意见和建议欢迎在此或在本主题开发页面留言。 有图有真相： 点击下载 &#124; 预览 PS：欢迎任意转载此主题，但不要修改制作者信息或用于商业用途。 评论2009/10/28, Louis Han 说: 这个主题比较怪异2009/10/28, interjc 说: 呵呵，也不算是怪异吧，有点小众吧。延展阅读:开发Grey CoverWordPress Theme : TwittFan 1.0 PreviewTwittFanShadowBlueCopyright &#169; interjc.net 2009]]></description>
			<content:encoded><![CDATA[<p>做了一个Wordpress主题，根据其配色方案起名为Grey Cover，顾名思义就是灰不隆咚的一主题，颜色不大鲜艳，侧边栏还是左侧的，还用的是直角，应该算是比较小众吧，希望喜欢这种风格主题的人能够喜欢。</p>
<p><strong><a style="color:red;" href="http://interjc.googlecode.com/files/grey-cover.zip">点击下载</a> | <a style="color:red;" rel="external" href="http://demo.interjc.net/?wptheme=GreyCover">预览</a></strong></p>
<p>这个主题有几个特点：</p>
<p><strong>1.</strong> 主题内置分类Widget模块，后台小工具(widgets)面板中有可重复使用的模块“分类 Widget”，可以任意拖放至左中右三个Widget Bar中使用，这样就算是一个可随意定制的CMS主题了；</p>
<p><strong>2.</strong> 首页及分类、Tag、存档页都使用幻灯片来展示文章列表，这样就可以把下面的大片区域让出来放置更丰富的内容；</p>
<p><strong>3.</strong> 幻灯片中可以为每篇文章分别配图(最佳规格为200×100，单位为PX)，添加方法为：在该文章的自定义域添加一个名为 <strong>simg</strong> 的域，值为你要显示的图片地址；</p>
<p><strong>4.</strong> 简单SEO优化、留言回复支持Ctrl+Enter、Widget Ready、通过标准…… 等等必要特性都是有的。</p>
<p><strong>有任何意见和建议欢迎在此或在<a href="http://interjc.net/dev/greycover">本主题开发页面</a>留言。</strong></p>
<p>有图有真相：<br />
<img src="http://clip2net.com/clip/m4525/1256549255-grey-cover2-429kb.png" alt="" /></p>
<p><strong><a style="color:red;" href="http://interjc.googlecode.com/files/grey-cover.zip">点击下载</a> | <a style="color:red;" rel="external" href="http://demo.interjc.net/?wptheme=GreyCover">预览</a></strong></p>
<p>PS：欢迎任意转载此主题，但不要修改制作者信息或用于商业用途。</p>
<hr /><h2>评论</h2><ul><li><a href="http://interjc.net/archives/2009/10/26/wordpress-theme-grey-cover.html">2009/10/28</a>, <a href='http://louishan.com/' rel='external nofollow' class='url'>Louis Han</a> 说: 这个主题比较怪异</li><li><a href="http://interjc.net/archives/2009/10/26/wordpress-theme-grey-cover.html">2009/10/28</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: 呵呵，也不算是怪异吧，有点小众吧。</li></ul><hr /><h2>延展阅读:</h2><ul><li><a href="http://interjc.net/dev" rel="bookmark" title="Permanent Link: 开发">开发</a></li><li><a href="http://interjc.net/dev/greycover" rel="bookmark" title="Permanent Link: Grey Cover">Grey Cover</a></li><li><a href="http://interjc.net/archives/2009/06/27/wordpress-theme-twittfan-10-preview.html" rel="bookmark" title="Permanent Link: WordPress Theme : TwittFan 1.0 Preview">WordPress Theme : TwittFan 1.0 Preview</a></li><li><a href="http://interjc.net/dev/twittfan" rel="bookmark" title="Permanent Link: TwittFan">TwittFan</a></li><li><a href="http://interjc.net/dev/shadowblue" rel="bookmark" title="Permanent Link: ShadowBlue">ShadowBlue</a></li></ul><hr /><small>Copyright &copy; interjc.net 2009
<br /> </small>]]></content:encoded>
			<wfw:commentRss>http://interjc.net/archives/2009/10/26/wordpress-theme-grey-cover.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Wibiya</title>
		<link>http://interjc.net/archives/2009/10/10/wibiya.html</link>
		<comments>http://interjc.net/archives/2009/10/10/wibiya.html#comments</comments>
		<pubDate>Sat, 10 Oct 2009 10:19:00 +0000</pubDate>
		<dc:creator>interjc</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[Wibiya]]></category>

		<guid isPermaLink="false">http://interjc.net/?p=555</guid>
		<description><![CDATA[Wibiya是一个华丽的blog挂件（如我blog底部所示），其注册貌似是需要人工审核并由工作人员邀请的。 今天装了一个之后发现其与我所用的jQuery类库有所冲突。找到所有写有jQuery语句的代码，将其中 $ 全部替换为 jQuery ，问题解决。 BTW：这个工具条貌似很好的解决了腿特和脸书翻不过墙的问题。 评论2009/10/11, Louis Han 说: 太华丽了，拖累速度2009/10/11, interjc 说: 这玩意儿特意放在了所有js的最后面，即使拖速度也是他自己出不来罢了，呵呵。2009/10/26, voasia 说: 那个中文名叫作"非撕不可"2009/11/07, 同城 说: 目前刚装上去，速度感觉还可以吧，因为是门户型的网站，所以一些功能去掉了，目前因为Wibiya还不支持GB2312编码，而网站已经成型，整站改成UTF-8比较麻烦，所以语言选择了英文。 如果以后速度比较慢的话可以用jQuery的ready等所有DOM对象加载完毕再加载他的脚本，这样应该就不会太影响速度了，当然这需要我们自己再加载一次jQuery脚本，这个也会影响点速度，不过对本身就有用到jQuery的应该没什么太大影响，实在不行也可以把里面的ready函数提取出来单独使用，这样影响会更小吧。 台州同城派送（ http://www.tztcps.com ）网站已经装上了Wibiya工具条，欢迎大家围观2009/11/07, 骨头软件工作室 说: 我换新域名了,换下新链接!2009/11/07, interjc 说: 呵呵，和我用的方法差不多，我是用jQuery在DOMReady以后才在页尾插入这个Wibiya代码的..2009/11/07, interjc 说: 抱歉，你以前的网址是？还有你貌似没有链接到我把2009/11/09, 城市之岛 说: 写的文章不错。互访中Copyright &#169; interjc.net 2009]]></description>
			<content:encoded><![CDATA[<p><a href="http://wibiya.com/"><strong>Wibiya</strong></a>是一个华丽的blog挂件（<del datetime="2009-11-16T11:30:13+00:00">如我blog底部所示</del>），其注册貌似是需要人工审核并由工作人员邀请的。</p>
<p><img src="http://wibiya.com/images/hp/page1_image.jpg" alt="" /></p>
<p>今天装了一个之后发现其与我所用的jQuery类库有所冲突。找到所有写有jQuery语句的代码，将其中 <strong>$</strong> 全部替换为 <strong>jQuery</strong> ，问题解决。</p>
<p>BTW：这个工具条貌似很好的解决了<strong>腿特</strong>和<strong>脸书</strong>翻不过墙的问题。</p>
<hr /><h2>评论</h2><ul><li><a href="http://interjc.net/archives/2009/10/10/wibiya.html">2009/10/11</a>, <a href='http://louishan.com/' rel='external nofollow' class='url'>Louis Han</a> 说: 太华丽了，拖累速度</li><li><a href="http://interjc.net/archives/2009/10/10/wibiya.html">2009/10/11</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: 这玩意儿特意放在了所有js的最后面，即使拖速度也是他自己出不来罢了，呵呵。</li><li><a href="http://interjc.net/archives/2009/10/10/wibiya.html">2009/10/26</a>, <a href='http://voasian.info' rel='external nofollow' class='url'>voasia</a> 说: 那个中文名叫作"非撕不可"</li><li><a href="http://interjc.net/archives/2009/10/10/wibiya.html">2009/11/07</a>, <a href='http://www.tztcps.com' rel='external nofollow' class='url'>同城</a> 说: 目前刚装上去，速度感觉还可以吧，因为是门户型的网站，所以一些功能去掉了，目前因为Wibiya还不支持GB2312编码，而网站已经成型，整站改成UTF-8比较麻烦，所以语言选择了英文。
如果以后速度比较慢的话可以用jQuery的ready等所有DOM对象加载完毕再加载他的脚本，这样应该就不会太影响速度了，当然这需要我们自己再加载一次jQuery脚本，这个也会影响点速度，不过对本身就有用到jQuery的应该没什么太大影响，实在不行也可以把里面的ready函数提取出来单独使用，这样影响会更小吧。
台州同城派送（ http://www.tztcps.com  ）网站已经装上了Wibiya工具条，欢迎大家围观</li><li><a href="http://interjc.net/archives/2009/10/10/wibiya.html">2009/11/07</a>, <a href='http://www.gutou.cc' rel='external nofollow' class='url'>骨头软件工作室</a> 说: 我换新域名了,换下新链接!</li><li><a href="http://interjc.net/archives/2009/10/10/wibiya.html">2009/11/07</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: 呵呵，和我用的方法差不多，我是用jQuery在DOMReady以后才在页尾插入这个Wibiya代码的..</li><li><a href="http://interjc.net/archives/2009/10/10/wibiya.html">2009/11/07</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: 抱歉，你以前的网址是？还有你貌似没有链接到我把</li><li><a href="http://interjc.net/archives/2009/10/10/wibiya.html">2009/11/09</a>, <a href='http://www.ygysdlx.cn' rel='external nofollow' class='url'>城市之岛</a> 说: 写的文章不错。互访中</li></ul><hr /><small>Copyright &copy; interjc.net 2009
<br /> </small>]]></content:encoded>
			<wfw:commentRss>http://interjc.net/archives/2009/10/10/wibiya.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>一个jQuery+CSS幻灯片播放器</title>
		<link>http://interjc.net/archives/2009/10/08/js-css-slider.html</link>
		<comments>http://interjc.net/archives/2009/10/08/js-css-slider.html#comments</comments>
		<pubDate>Thu, 08 Oct 2009 15:48:34 +0000</pubDate>
		<dc:creator>interjc</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[slider]]></category>

		<guid isPermaLink="false">http://interjc.net/?p=540</guid>
		<description><![CDATA[写了一个幻灯片播放器，是用纯jQuery+CSS写的，如果你不喜欢Flash幻灯片播放器可以试试这个。其主要特点是高度宽度可以自由重新设定，幻灯片的数量也可以自由增减（当然也不能过于离谱..），使用jquery+css节省了代码，使载入更迅速..等等.. 效果是这样的，请点击这里。 安装方法很简单，首先在合适的地方（你想要插入幻灯片的地方）插入以下代码： &#60;div id=&#34;box&#34; class=&#34;t1&#34;&#62; &#60;div id=&#34;nav&#34;&#62; &#60;p class=&#34;nav_title&#34;&#62; &#60;!--以下的a标签是你可以修改的地方（你可以按照对应的格式修改href值及内容、增减a标签数量等）--&#62; &#60;a class=&#34;t1 nav_title_checked&#34; href=&#34;#&#34;&#62;Test One&#60;/a&#62; &#60;a class=&#34;t2&#34; href=&#34;#&#34;&#62;Test Two&#60;/a&#62; &#60;a class=&#34;t3&#34; href=&#34;#&#34;&#62;Test Three&#60;/a&#62; &#60;a class=&#34;t4&#34; href=&#34;#&#34;&#62;Test Four&#60;/a&#62; &#60;a class=&#34;t5&#34; href=&#34;#&#34;&#62;Test Five&#60;/a&#62; &#60;!--可修改区域结束--&#62; &#60;/p&#62; &#60;p class=&#34;nav_button&#34;&#62; &#60;a class=&#34;nav_button_checked&#34; title=&#34;t1&#34; href=&#34;#&#34;&#62;1&#60;/a&#62; &#60;a title=&#34;t2&#34; href=&#34;#&#34;&#62;2&#60;/a&#62; &#60;a title=&#34;t3&#34; href=&#34;#&#34;&#62;3&#60;/a&#62; &#60;a title=&#34;t4&#34; href=&#34;#&#34;&#62;4&#60;/a&#62; &#60;a title=&#34;t5&#34; href=&#34;#&#34;&#62;5&#60;/a&#62; &#60;br class=&#34;clear&#34; /&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>写了一个幻灯片播放器，是用纯jQuery+CSS写的，如果你不喜欢Flash幻灯片播放器可以试试这个。其主要特点是高度宽度可以自由重新设定，幻灯片的数量也可以自由增减（当然也不能过于离谱..），使用jquery+css节省了代码，使载入更迅速..等等..</p>
<p>效果是这样的，<a target="_blank" href="http://d.interjc.net/slider.html"><strong>请点击这里</strong></a>。<br />
<span id="more-540"></span><br />
安装方法很简单，首先在合适的地方（你想要插入幻灯片的地方）插入以下代码：</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;box&quot; class=&quot;t1&quot;&gt;
    &lt;div id=&quot;nav&quot;&gt;
        &lt;p class=&quot;nav_title&quot;&gt;
            &lt;!--以下的a标签是你可以修改的地方（你可以按照对应的格式修改href值及内容、增减a标签数量等）--&gt;
            &lt;a class=&quot;t1 nav_title_checked&quot; href=&quot;#&quot;&gt;Test One&lt;/a&gt; 
            &lt;a class=&quot;t2&quot; href=&quot;#&quot;&gt;Test Two&lt;/a&gt; 
            &lt;a class=&quot;t3&quot; href=&quot;#&quot;&gt;Test Three&lt;/a&gt; 
            &lt;a class=&quot;t4&quot; href=&quot;#&quot;&gt;Test Four&lt;/a&gt; 
            &lt;a class=&quot;t5&quot; href=&quot;#&quot;&gt;Test Five&lt;/a&gt; 
            &lt;!--可修改区域结束--&gt;
        &lt;/p&gt;
        &lt;p class=&quot;nav_button&quot;&gt; 
            &lt;a class=&quot;nav_button_checked&quot; title=&quot;t1&quot; href=&quot;#&quot;&gt;1&lt;/a&gt; 
            &lt;a title=&quot;t2&quot; href=&quot;#&quot;&gt;2&lt;/a&gt; 
            &lt;a title=&quot;t3&quot; href=&quot;#&quot;&gt;3&lt;/a&gt; 
            &lt;a title=&quot;t4&quot; href=&quot;#&quot;&gt;4&lt;/a&gt;
            &lt;a title=&quot;t5&quot; href=&quot;#&quot;&gt;5&lt;/a&gt;
        &lt;br class=&quot;clear&quot; /&gt;
        &lt;/p&gt;
    &lt;/div&gt;
&lt;/div&gt;</pre></div></div>

<p>然后找到你的header.php（假设你使用Wordpress），在/head标签之前添加如下代码：</p>
<pre><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js"></script>
<script type="text/javascript">
	$(function(){
		$('p.nav_button a').click(function(){
			var attrTitle;
			$('p.nav_button a').removeClass();
			attrTitle = $(this).addClass('nav_button_checked').attr('title');
			$('p.nav_title a').hide();
			$('.'+attrTitle).addClass('nav_title_checked').fadeIn();
			$('#box').removeClass().addClass(attrTitle);
		});
	});
</script></pre>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">&lt;style type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span><span style="color: #00AA00;">&gt;</span>
<span style="color: #cc00cc;">#box</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">500px</span><span style="color: #00AA00;">;</span>   <span style="color: #808080; font-style: italic;">/*此处设置幻灯片的整体宽度*/</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">400px</span><span style="color: #00AA00;">;</span>  <span style="color: #808080; font-style: italic;">/*此处设置幻灯片的整体高度*/</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#EEFAFF</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-repeat</span><span style="color: #00AA00;">:</span><span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #808080; font-style: italic;">/*编辑以下的类更换背景图片
你可以按照规律增减图片数量，将http://d.interjc.net/slider/t1.jpg等图片地址更换为你的背景地址*/</span>
<span style="color: #6666ff;">.t1</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>http<span style="color: #00AA00;">:</span>//d<span style="color: #6666ff;">.interjc</span>.net/slider/t1.jpg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.t2</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>http<span style="color: #00AA00;">:</span>//d<span style="color: #6666ff;">.interjc</span>.net/slider/t2.jpg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.t3</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>http<span style="color: #00AA00;">:</span>//d<span style="color: #6666ff;">.interjc</span>.net/slider/t3.jpg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.t4</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>http<span style="color: #00AA00;">:</span>//d<span style="color: #6666ff;">.interjc</span>.net/slider/t4.jpg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.t5</span><span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>http<span style="color: #00AA00;">:</span>//d<span style="color: #6666ff;">.interjc</span>.net/slider/t5.jpg<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #808080; font-style: italic;">/*编辑以上的类更换背景图片*/</span>
<span style="color: #cc00cc;">#nav</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">100%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#80D6FF</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#nav</span> p<span style="color: #6666ff;">.nav_button</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">:</span><span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#nav</span> p<span style="color: #6666ff;">.nav_button</span> a <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">3px</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#AB1205</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#FFF</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#nav</span> p<span style="color: #6666ff;">.nav_button</span> a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#nav</span> p<span style="color: #6666ff;">.nav_button</span> a<span style="color: #6666ff;">.nav_button_checked</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#004E73</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#nav</span> p<span style="color: #6666ff;">.nav_title</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">24px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#nav</span> p<span style="color: #6666ff;">.nav_title</span> a <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#005279</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#nav</span> p<span style="color: #6666ff;">.nav_title</span> a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">underline</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
.<span style="color: #000000; font-weight: bold;">clear</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span><span style="color: #993333;">both</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#nav</span> p<span style="color: #6666ff;">.nav_title</span> a<span style="color: #6666ff;">.nav_title_checked</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">inline</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#80D6FF</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&lt;/style<span style="color: #00AA00;">&gt;</span>
&nbsp;
&lt;!--<span style="color: #00AA00;">&#91;</span>if IE<span style="color: #00AA00;">&#93;</span><span style="color: #00AA00;">&gt;</span>
&lt;style type<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span><span style="color: #00AA00;">&gt;</span>
p<span style="color: #6666ff;">.nav_button</span> a<span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">2px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
&lt;/style<span style="color: #00AA00;">&gt;</span>
&lt;!<span style="color: #00AA00;">&#91;</span>endif<span style="color: #00AA00;">&#93;</span>--<span style="color: #00AA00;">&gt;</span></pre></div></div>

<p>修改完成后保存，刷新页面，看看是不是完成了？have fun！</p>
<p>欢迎在此提交BUG，或提出宝贵的意见或建议。</p>
<hr /><h2>评论</h2><ul><li><a href="http://interjc.net/archives/2009/10/08/js-css-slider.html">2009/10/09</a>, <a href='http://voasian.info' rel='external nofollow' class='url'>voasia</a> 说: 华丽</li><li><a href="http://interjc.net/archives/2009/10/08/js-css-slider.html">2009/11/25</a>, xiboo 说: 图片地址要不停更换？这个wordpress主题fotofolio，里好像不用自己设置图片地址的，每次幻灯显示的是最后上传的几张图。但是不知道这个主题该怎么设置，请教请教。主题地址说明在http://pupungbp.erastica.com/wordpress-theme/fotofolio-wordpress-theme-for-your-online-portfolio/</li><li><a href="http://interjc.net/archives/2009/10/08/js-css-slider.html">2009/11/25</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: <a href="#comment-10901" rel="nofollow">@xiboo</a>, 我这个是静态网页的做法，如果你需要图片自动更换的话，嵌入动态程序就可以了，比如PHP..</li></ul><hr /><small>Copyright &copy; interjc.net 2009
<br /> </small>]]></content:encoded>
			<wfw:commentRss>http://interjc.net/archives/2009/10/08/js-css-slider.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Google Chrome Frame 来了</title>
		<link>http://interjc.net/archives/2009/09/25/google-chrome-frame-come.html</link>
		<comments>http://interjc.net/archives/2009/09/25/google-chrome-frame-come.html#comments</comments>
		<pubDate>Fri, 25 Sep 2009 13:57:13 +0000</pubDate>
		<dc:creator>interjc</dc:creator>
				<category><![CDATA[Tools]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Chrome Frame]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[W3C]]></category>

		<guid isPermaLink="false">http://interjc.net/?p=528</guid>
		<description><![CDATA[刚听说了Google Chrome Frame这个新玩意，确实挺让人兴奋的，它的功效简而言之就是让IE及IE内核（世界之窗、Maxthon等）的浏览器在浏览指定的页面时使用Chrome所用的WebKit内核和他的Javascript引擎，内核的无缝切换使你可以不必因为网银必须使用的IE和更合标准更高效的Chrome/FF而举棋不定或者被迫安装多个浏览器，而作为网页开发/设计者的你，所要做的只不过是加一条如下代码而已 &#60;meta http-equiv=&#34;X-UA-Compatible&#34; content=&#34;chrome=1&#34;&#62; 作为一个对IE6深恶痛绝的人来说，这东东确实比较诱惑人，着实激动了一阵。 不过这个东西也不是无懈可击的，他的缺点也正是他的致命弱点——需要用户下载安装控件，而知道这个控件好处的早就不用IE了，至少也不用IE6了，不知道这个控件用途的压根就不会去下载并安装他，说不定还以为是病毒/流氓软件啥的，挺尴尬。希望Google能想个好办法来好好推广一下吧。 话说能不能让这事不由浏览者来决定，咱自己写网页的时候就把这事给办了呢？答案还是有的，不过估计是提升不了什么浏览器性能了，但至少能让IE系列也almost接近标准一把吧，这玩意儿就叫ie7-js，只要下载那个压缩包放在网站随意的位子，然后引用之，就可以解决很多问题了（经测试PNG的半透明效果依然没法在IE6实现），但至少写CSS的时候就省心多了。 也许想要IE6彻底消失，的等到Win7/8/9 出来并出现极其诱人的游戏或者应用吧，期待那一天的到来。 BTW:新浪围脖邀请，注册请猛击这里.. 评论2009/09/26, Louis Han 说: 微软慌了 哈哈2009/09/26, jc 说: 呵呵，微软绑架了用户，也绑架了自己2009/10/02, 默志 说: 如果真的要搞，说不定又如当年“带有 Google 工具栏的 Firefox ”一样流氓一阵。2009/10/04, interjc 说: 这东西必须大部分人装了才有用，再说捆绑也不现实延展阅读:Chrome 降级我浏览器地址栏之A-ZChrome版Firebug你能访问绑定后的Google Apps吗Google BuzzCopyright &#169; interjc.net 2009]]></description>
			<content:encoded><![CDATA[<p>刚听说了<a rel="external" href="http://code.google.com/intl/zh-CN/chrome/chromeframe/faq.html">Google Chrome Frame</a>这个新玩意，确实挺让人兴奋的，它的功效简而言之就是让IE及IE内核（世界之窗、Maxthon等）的浏览器在浏览指定的页面时使用Chrome所用的WebKit内核和他的Javascript引擎，内核的无缝切换使你可以不必因为网银必须使用的IE和更合标准更高效的Chrome/FF而举棋不定或者被迫安装多个浏览器，而作为网页开发/设计者的你，所要做的只不过是加一条如下代码而已</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;chrome=1&quot;&gt;</pre></div></div>

<p>作为一个<a href="http://interjc.net/archives/2009/09/06/anti-ie6.html">对IE6深恶痛绝</a>的人来说，这东东确实比较诱惑人，着实激动了一阵。<br />
不过这个东西也不是无懈可击的，他的缺点也正是他的致命弱点——需要用户下载安装控件，而知道这个控件好处的早就不用IE了，至少也不用IE6了，不知道这个控件用途的压根就不会去下载并安装他，说不定还以为是病毒/流氓软件啥的，挺尴尬。希望Google能想个好办法来好好推广一下吧。<br />
话说能不能让这事不由浏览者来决定，咱自己写网页的时候就把这事给办了呢？答案还是有的，不过估计是提升不了什么浏览器性能了，但至少能让IE系列也almost接近标准一把吧，这玩意儿就叫<a href="http://code.google.com/p/ie7-js/">ie7-js</a>，只要下载那个压缩包放在网站随意的位子，然后引用之，就可以解决很多问题了（经测试PNG的半透明效果依然没法在IE6实现），但至少写CSS的时候就省心多了。<br />
也许想要IE6彻底消失，的等到Win7/8/9 出来并出现极其诱人的游戏或者应用吧，期待那一天的到来。</p>
<p>BTW:新浪围脖邀请，注册请<strong><a href="http://t.sina.com.cn/invite/att_reqback.php?code=5UVjn17">猛击这里</a></strong>..</p>
<hr /><h2>评论</h2><ul><li><a href="http://interjc.net/archives/2009/09/25/google-chrome-frame-come.html">2009/09/26</a>, <a href='http://louishan.com' rel='external nofollow' class='url'>Louis Han</a> 说: 微软慌了 哈哈</li><li><a href="http://interjc.net/archives/2009/09/25/google-chrome-frame-come.html">2009/09/26</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>jc</a> 说: 呵呵，微软绑架了用户，也绑架了自己</li><li><a href="http://interjc.net/archives/2009/09/25/google-chrome-frame-come.html">2009/10/02</a>, <a href='http://www.mozin.org' rel='external nofollow' class='url'>默志</a> 说: 如果真的要搞，说不定又如当年“带有 Google 工具栏的 Firefox ”一样流氓一阵。</li><li><a href="http://interjc.net/archives/2009/09/25/google-chrome-frame-come.html">2009/10/04</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: 这东西必须大部分人装了才有用，再说捆绑也不现实</li></ul><hr /><h2>延展阅读:</h2><ul><li><a href="http://interjc.net/archives/2011/09/28/chrome-downgrade.html" rel="bookmark" title="Permanent Link: Chrome 降级">Chrome 降级</a></li><li><a href="http://interjc.net/archives/2009/11/04/a-to-z-of-my-browser-address-bar.html" rel="bookmark" title="Permanent Link: 我浏览器地址栏之A-Z">我浏览器地址栏之A-Z</a></li><li><a href="http://interjc.net/archives/2010/02/08/chrome-firebug.html" rel="bookmark" title="Permanent Link: Chrome版Firebug">Chrome版Firebug</a></li><li><a href="http://interjc.net/archives/2008/03/03/gfw-cnamed-google-apps.html" rel="bookmark" title="Permanent Link: 你能访问绑定后的Google Apps吗">你能访问绑定后的Google Apps吗</a></li><li><a href="http://interjc.net/archives/2010/02/11/google-buzz.html" rel="bookmark" title="Permanent Link: Google Buzz">Google Buzz</a></li></ul><hr /><small>Copyright &copy; interjc.net 2009
<br /> </small>]]></content:encoded>
			<wfw:commentRss>http://interjc.net/archives/2009/09/25/google-chrome-frame-come.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>河蟹博文</title>
		<link>http://interjc.net/archives/2009/04/11/harmony-content-01.html</link>
		<comments>http://interjc.net/archives/2009/04/11/harmony-content-01.html#comments</comments>
		<pubDate>Sat, 11 Apr 2009 02:52:18 +0000</pubDate>
		<dc:creator>interjc</dc:creator>
				<category><![CDATA[Harmony]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[me]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://interjc.net/?p=308</guid>
		<description><![CDATA[做了一个简陋无比的Wordpress小插件，虽说功能单一，但怎么说也算是我的第一个插件了。以后伴随我的学习我会不断完善它。 插件的名字叫做“河蟹博文”，顾名思义就是帮你“河蟹”你自己的文章，把敏感字变为“*”.. 示例：(原文用空格隔开) 原文:我说了一句兰 州 烧 饼，号就被封了。 使用插件后：我说了一句*，号就被封了。 恩，就是这么多了，解压上传启用就可以用了.. 下载 评论2009/04/12, shooven 说: 这个插件不错 可以考虑大力推广2009/04/12, jc 说: 呵呵，现在功能还很不完善哦2009/04/17, jc 说: 装了个新插件，测试一下2009/04/18, Bony 说: 哈哈，好玩的东西。看来你很注意这个啊。延展阅读:和谐测试器和谐换名字构建社会主义和谐社会WP-Plugin:最新评论插件Copyright &#169; interjc.net 2009]]></description>
			<content:encoded><![CDATA[<p>做了一个简陋无比的Wordpress小插件，虽说功能单一，但怎么说也算是我的第一个插件了。以后伴随我的学习我会不断完善它。<br />
插件的名字叫做“河蟹博文”，顾名思义就是帮你“河蟹”你自己的文章，把敏感字变为“*”..<br />
示例：(原文用空格隔开)<br />
原文:我说了一句兰 州 烧 饼，号就被封了。<br />
使用插件后：我说了一句*，号就被封了。</p>
<p>恩，就是这么多了，解压上传启用就可以用了..</p>
<p><a href="http://interjc.googlecode.com/files/harmonyContent.zip">下载</a></p>
<hr /><h2>评论</h2><ul><li><a href="http://interjc.net/archives/2009/04/11/harmony-content-01.html">2009/04/12</a>, <a href='http://shooven.com' rel='external nofollow' class='url'>shooven</a> 说: 这个插件不错
可以考虑大力推广</li><li><a href="http://interjc.net/archives/2009/04/11/harmony-content-01.html">2009/04/12</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>jc</a> 说: 呵呵，现在功能还很不完善哦</li><li><a href="http://interjc.net/archives/2009/04/11/harmony-content-01.html">2009/04/17</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>jc</a> 说: 装了个新插件，测试一下</li><li><a href="http://interjc.net/archives/2009/04/11/harmony-content-01.html">2009/04/18</a>, <a href='http://www.imbony.cn' rel='external nofollow' class='url'>Bony</a> 说: 哈哈，好玩的东西。看来你很注意这个啊。</li></ul><hr /><h2>延展阅读:</h2><ul><li><a href="http://interjc.net/archives/2009/05/27/harmony-test.html" rel="bookmark" title="Permanent Link: 和谐测试器">和谐测试器</a></li><li><a href="http://interjc.net/archives/2007/08/31/harmony.html" rel="bookmark" title="Permanent Link: 和谐">和谐</a></li><li><a href="http://interjc.net/archives/2008/04/12/blog-name-changed.html" rel="bookmark" title="Permanent Link: 换名字">换名字</a></li><li><a href="http://interjc.net/archives/2009/06/03/all-harmony.html" rel="bookmark" title="Permanent Link: 构建社会主义和谐社会">构建社会主义和谐社会</a></li><li><a href="http://interjc.net/archives/2006/12/13/brians-latest-comments.html" rel="bookmark" title="Permanent Link: WP-Plugin:最新评论插件">WP-Plugin:最新评论插件</a></li></ul><hr /><small>Copyright &copy; interjc.net 2009
<br /> </small>]]></content:encoded>
			<wfw:commentRss>http://interjc.net/archives/2009/04/11/harmony-content-01.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

