<?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; code</title>
	<atom:link href="http://interjc.net/cats/code/feed" rel="self" type="application/rss+xml" />
	<link>http://interjc.net</link>
	<description></description>
	<lastBuildDate>Thu, 10 May 2012 01:31:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<atom:link rel='hub' href='http://interjc.net/?pushpress=hub'/>
		<item>
		<title>基于json数据的jQuery无限级下拉菜单插件</title>
		<link>http://interjc.net/archives/2011/01/24/json-data-based-jquery-navigator-plugin.html</link>
		<comments>http://interjc.net/archives/2011/01/24/json-data-based-jquery-navigator-plugin.html#comments</comments>
		<pubDate>Mon, 24 Jan 2011 10:08:35 +0000</pubDate>
		<dc:creator>interjc</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[前端]]></category>

		<guid isPermaLink="false">http://interjc.net/?p=940</guid>
		<description><![CDATA[自己写的一个小插件，基于jQuery，取得json数据以后可以生成一个下拉菜单，理论上是无限级的。 点击查看Demo 也可以通过SVN下载（由于代码无限修改中，所以暂不提供压缩包下载，还请见谅）： https://interjc.googlecode.com/svn/trunk/jquery/nav 这个小插件目前只提供了最基本的线框样式，以后会逐步完善，相关实现方法及使用说明都会后续报道的。天冷不想打字，今天先到这了.. 评论2011/02/24, liveme 说: 导航菜单还是简洁一点好……2011/03/01, weiking 说: ShadowBlue 导航栏是不是也是用这个插件呢？ 你那个压缩编译过，看不到！ 求解，谢谢2011/03/06, interjc 说: @weiking, ShadowBlue导航栏没有用这个插件，是临时写的脚本，几个都没有压缩过代码，你所说压缩过的是jquery.min.js吧？ ShadowBlue 源码在此 http://code.google.com/p/interjc/source/browse/trunk/shadowblue/javascript.js2011/03/07, power cord 说: 不错，这个功能很好，收藏了，谢谢博主分享。2011/04/16, RISEN 说: 这个功能很好2011/09/08, 皇家元林 说: 用CSS就可以搞定了，只不过不支持IE6延展阅读:jQuery.NavigatorjQuery 1.4 Released图片预读WP-Plugin:最新评论插件启用了Ajax Comments-ReplyCopyright &#169; interjc.net 2009]]></description>
			<content:encoded><![CDATA[<p>自己写的一个小插件，基于jQuery，取得json数据以后可以生成一个下拉菜单，理论上是无限级的。</p>
<p><a rel="external" href="http://d.interjc.net/nav/sample.html">点击查看Demo</a></p>
<p>也可以通过SVN下载（由于代码无限修改中，所以暂不提供压缩包下载，还请见谅）：</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">https://interjc.googlecode.com/svn/trunk/jquery/nav</pre></div></div>

<p>这个小插件目前只提供了最基本的线框样式，以后会逐步完善，相关实现方法及使用说明都会后续报道的。天冷不想打字，今天先到这了..</p>
<hr /><h2>评论</h2><ul><li><a href="http://interjc.net/archives/2011/01/24/json-data-based-jquery-navigator-plugin.html">2011/02/24</a>, <a href='http://www.liveme.org/' rel='external nofollow' class='url'>liveme</a> 说: 导航菜单还是简洁一点好……</li><li><a href="http://interjc.net/archives/2011/01/24/json-data-based-jquery-navigator-plugin.html">2011/03/01</a>, <a href='http://www.weiking.com.cn' rel='external nofollow' class='url'>weiking</a> 说: ShadowBlue 导航栏是不是也是用这个插件呢？
你那个压缩编译过，看不到！
求解，谢谢</li><li><a href="http://interjc.net/archives/2011/01/24/json-data-based-jquery-navigator-plugin.html">2011/03/06</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>interjc</a> 说: @weiking, ShadowBlue导航栏没有用这个插件，是临时写的脚本，几个都没有压缩过代码，你所说压缩过的是jquery.min.js吧？

ShadowBlue 源码在此 http://code.google.com/p/interjc/source/browse/trunk/shadowblue/javascript.js</li><li><a href="http://interjc.net/archives/2011/01/24/json-data-based-jquery-navigator-plugin.html">2011/03/07</a>, <a href='http://www.ningbo-powercord.com/' rel='external nofollow' class='url'>power cord</a> 说: 不错，这个功能很好，收藏了，谢谢博主分享。</li><li><a href="http://interjc.net/archives/2011/01/24/json-data-based-jquery-navigator-plugin.html">2011/04/16</a>, <a href='http://www.risenenergy.com' rel='external nofollow' class='url'>RISEN</a> 说: 这个功能很好</li><li><a href="http://interjc.net/archives/2011/01/24/json-data-based-jquery-navigator-plugin.html">2011/09/08</a>, <a href='http://hjyl.org' rel='external nofollow' class='url'>皇家元林</a> 说: 用CSS就可以搞定了，只不过不支持IE6</li></ul><hr /><h2>延展阅读:</h2><ul><li><a href="http://interjc.net/dev/jquery-navigator" rel="bookmark" title="Permanent Link: jQuery.Navigator">jQuery.Navigator</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/2011/04/01/images-preload.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><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/2011/01/24/json-data-based-jquery-navigator-plugin.html/feed</wfw:commentRss>
		<slash:comments>6</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>关于本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/dev/jquery-navigator" rel="bookmark" title="Permanent Link: jQuery.Navigator">jQuery.Navigator</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></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+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>在本机安装Shopex</title>
		<link>http://interjc.net/archives/2009/09/09/shopex-on-xampp.html</link>
		<comments>http://interjc.net/archives/2009/09/09/shopex-on-xampp.html#comments</comments>
		<pubDate>Wed, 09 Sep 2009 13:58:04 +0000</pubDate>
		<dc:creator>interjc</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[shopex]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://interjc.net/?p=501</guid>
		<description><![CDATA[想装一个Shopex在本机玩玩，不料还没装上就出了问题了，一片乱码，不管你更换成哪种编码都一样，貌似一盆凉水扑面而来。 遂打开浏览器Google之，发现是没有装Zend Optimizer，按教程找过去，发现官方下载还要注册，于是乎随便找了个网站下载了（下载链接那个难找啊，还好是真的而且没有毒，赞..），下载以后直接安装，直接无脑yes+next肯定是不行的，要选择正确的php及apache目录，好了，一切搞定，重启apache，我欣喜的发现，乱码还是那个乱码。 最后我用了方法若干，找到了解决办法，打开php.ini ，Ctrl+F找到[Zend]，将zend_optimizer.enable_loader = 0 中的0改为1，问题解决。 接下来再次打开Shopex安装页面，这个安装就行云流水轻车熟路了，唯一的可以称之为麻烦的东东也就是需要预先添加一个数据库了。 接下来这个Shopex就算是安装好了，要干什么请便吧。 评论2009/09/12, 孕妇注意事项 说: 主题漂亮的很2009/09/16, Bony 说: 你安装个PHP+MySQL的环境，就一切都OK了。在学校的时候，上网不方便，就自己玩，当然，那时候的论坛discuz没有这么麻烦啦。2009/09/17, jc 说: 这，回帖不看贴..2010/03/02, good 说: 这个及时雨贴，不回对不起全世界人民。 还没试，希望是行的。延展阅读:开启xampp上的curl我浏览器地址栏之A-ZCopyright &#169; interjc.net 2009]]></description>
			<content:encoded><![CDATA[<p>想装一个Shopex在本机玩玩，不料还没装上就出了问题了，一片乱码，不管你更换成哪种编码都一样，貌似一盆凉水扑面而来。<br />
遂打开浏览器Google之，发现是没有装Zend Optimizer，按教程找过去，发现官方下载还要注册，于是乎随便找了个网站下载了（下载链接那个难找啊，还好是真的而且没有毒，赞..），下载以后直接安装，直接无脑yes+next肯定是不行的，要选择正确的php及apache目录，好了，一切搞定，重启apache，我欣喜的发现，乱码还是那个乱码。<br />
最后我用了方法若干，找到了解决办法，打开php.ini ，Ctrl+F找到[Zend]，<strong>将zend_optimizer.enable_loader = 0 中的0改为1</strong>，问题解决。<br />
接下来再次打开Shopex安装页面，这个安装就行云流水轻车熟路了，唯一的可以称之为麻烦的东东也就是需要预先添加一个数据库了。<br />
接下来这个Shopex就算是安装好了，要干什么请便吧。</p>
<hr /><h2>评论</h2><ul><li><a href="http://interjc.net/archives/2009/09/09/shopex-on-xampp.html">2009/09/12</a>, <a href='http://www.787n.cn' rel='external nofollow' class='url'>孕妇注意事项</a> 说: 主题漂亮的很</li><li><a href="http://interjc.net/archives/2009/09/09/shopex-on-xampp.html">2009/09/16</a>, <a href='http://www.imbony.cn' rel='external nofollow' class='url'>Bony</a> 说: 你安装个PHP+MySQL的环境，就一切都OK了。在学校的时候，上网不方便，就自己玩，当然，那时候的论坛discuz没有这么麻烦啦。</li><li><a href="http://interjc.net/archives/2009/09/09/shopex-on-xampp.html">2009/09/17</a>, <a href='http://interjc.net' rel='external nofollow' class='url'>jc</a> 说: 这，回帖不看贴..</li><li><a href="http://interjc.net/archives/2009/09/09/shopex-on-xampp.html">2010/03/02</a>, good 说: 这个及时雨贴，不回对不起全世界人民。
还没试，希望是行的。</li></ul><hr /><h2>延展阅读:</h2><ul><li><a href="http://interjc.net/archives/2008/03/15/php-curl-xampp.html" rel="bookmark" title="Permanent Link: 开启xampp上的curl">开启xampp上的curl</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></ul><hr /><small>Copyright &copy; interjc.net 2009
<br /> </small>]]></content:encoded>
			<wfw:commentRss>http://interjc.net/archives/2009/09/09/shopex-on-xampp.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>开启xampp上的curl</title>
		<link>http://interjc.net/archives/2008/03/15/php-curl-xampp.html</link>
		<comments>http://interjc.net/archives/2008/03/15/php-curl-xampp.html#comments</comments>
		<pubDate>Sat, 15 Mar 2008 04:19:17 +0000</pubDate>
		<dc:creator>interjc</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://interjc.net/archives/2008/03/15/php-curl-xampp.html</guid>
		<description><![CDATA[一直都在本机上用xampp测试wordpress,前几天测试Twitt Twoo这个插件的时候发现怎么也无法使用，报错说是我没有开启cURL(一个利用URL语法在命令行方式下工作的文件传输工具)。 查了一下得出方法如下，打开&#8230;\xampp\apache\bin\php.ini 文件(我建议你用notepad++，因为那样你可以看见行数)，搜索curl，把第582行中的分号去掉，保存，在xmapp control中重启apache，问题就解决了，phpinfo()里也可以显示相应模块已启用。 PS：其他模块也可以用这种方式打开，基本上都在这个文件中。 PPS：改了一下coolcode的css，以前的太难看。如下: ;extension=php_bz2_filter.dll ;extension=php_classkit.dll ;extension=php_cpdf.dll ;extension=php_crack.dll ;下面这一行就是我所说的第582行了 extension=php_curl.dll ;extension=php_cvsclient.dll ;extension=php_db.dll ;extension=php_dba.dll ;extension=php_dbase.dll 延展阅读:在本机安装Shopex我浏览器地址栏之A-ZCopyright &#169; interjc.net 2009]]></description>
			<content:encoded><![CDATA[<p>一直都在本机上用<a href="http://www.apachefriends.org/zh_cn/xampp.html">xampp</a>测试wordpress,前几天测试Twitt Twoo这个插件的时候发现怎么也无法使用，报错说是我没有开启<a href="http://baike.baidu.com/view/1326315.htm">cURL</a>(一个利用URL语法在命令行方式下工作的文件传输工具)。<br />
查了一下得出方法如下，打开&#8230;\xampp\apache\bin\php.ini 文件(我建议你用notepad++，因为那样你可以看见行数)，搜索curl，把第582行中的分号去掉，保存，在xmapp control中重启apache，问题就解决了，phpinfo()里也可以显示相应模块已启用。<br />
PS：其他模块也可以用这种方式打开，基本上都在这个文件中。<br />
PPS：改了一下coolcode的css，以前的太难看。如下:</p>

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">;extension=php_bz2_filter.dll</span>
<span style="color: #666666; font-style: italic;">;extension=php_classkit.dll</span>
<span style="color: #666666; font-style: italic;">;extension=php_cpdf.dll</span>
<span style="color: #666666; font-style: italic;">;extension=php_crack.dll</span>
<span style="color: #666666; font-style: italic;">;下面这一行就是我所说的第582行了</span>
<span style="color: #000099;">extension</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">php_curl.dll</span>
<span style="color: #666666; font-style: italic;">;extension=php_cvsclient.dll</span>
<span style="color: #666666; font-style: italic;">;extension=php_db.dll</span>
<span style="color: #666666; font-style: italic;">;extension=php_dba.dll</span>
<span style="color: #666666; font-style: italic;">;extension=php_dbase.dll</span></pre></div></div>

<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/2009/11/04/a-to-z-of-my-browser-address-bar.html" rel="bookmark" title="Permanent Link: 我浏览器地址栏之A-Z">我浏览器地址栏之A-Z</a></li></ul><hr /><small>Copyright &copy; interjc.net 2009
<br /> </small>]]></content:encoded>
			<wfw:commentRss>http://interjc.net/archives/2008/03/15/php-curl-xampp.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

