<?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>飞鱼 ^_^ 浆抱罗斯‘s blog &#187; 乱翻乱教</title>
	<atom:link href="http://qilei.org/category/tutorial/feed/" rel="self" type="application/rss+xml" />
	<link>http://qilei.org</link>
	<description>这里是一个非专业交互设计师 - 飞鱼 的blog。飞鱼的生活就像吃一盘螺丝, 你得努力吸才能品尝到快乐^_^</description>
	<lastBuildDate>Mon, 09 Apr 2012 07:01: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>
		<item>
		<title>乱翻乱教 &#8211; iOS5 通知栏背景制作</title>
		<link>http://qilei.org/201110/make-the-ios-5-notification-center-bg-with-photoshop/</link>
		<comments>http://qilei.org/201110/make-the-ios-5-notification-center-bg-with-photoshop/#comments</comments>
		<pubDate>Sun, 16 Oct 2011 08:23:20 +0000</pubDate>
		<dc:creator>飞鱼</dc:creator>
				<category><![CDATA[乱翻乱教]]></category>
		<category><![CDATA[iOS5]]></category>
		<category><![CDATA[photoshop]]></category>

		<guid isPermaLink="false">http://qilei.org/?p=1321</guid>
		<description><![CDATA[Photoshop 制作ios5通知栏背景 制作工具：Adobe Photoshop cs5 作者：飞鱼 iOS5发布后评价都说很棒，于是毫不犹豫的刷了，算是纪念Jobs的临终大作。改进的功能很多，其中一个大功能就是有了一个跟android几乎一样的通知栏，同事看了说：我擦，这功能跟android 的下拉框有啥区别？完全抄袭么&#8230; 然后就有人说了：那不是，瞧，对比一下，明显&#8230; iOS5的通知栏帅多了，瞧这背景，瞧这细节&#8230;。 好吧，仔细看了下的确很酷，细节纹理做得很棒，像一块布。发现做起来也不复杂就几步就可以了^__^。 最终效果 步骤 1 新建psd，大小800*600，填充背景色(#45454c)。如下图。飞鱼：填充神马的不用我教了吧 XD 步骤 2 新建图层, 填充黑色(#000000)，选择 滤镜-杂色-添加杂色，杂色数量20%左右。然后将图层模式改为：滤色。如下图。 步骤 3 分别选择 滤镜-模糊-动感模糊，角度90，距离30左右。然后选择 滤镜-锐化-锐化，如下图： 这个时候基本有点感觉了吧^__^ 继续。 步骤 4 接下来只要做横向的效果就差不多了，新建一个图层，按照步骤2，只是角度变为45度。结果如下图： 这里其实还有另外一个办法就是复制一层，ctrl+t 旋转一下就可以了，不过长度会不够。 步骤 5 到这里效果基本都出来了，只要加个图层，做一下内阴影，或者黑白渐变，然后叠加一下就有效果了。 总结 可以发现，做这个东西只要几种滤镜就可以轻松达到效果，具体细节需要仔细去调，比如颜色，阴影等。 个人觉得主要的难点在于如何做成可以平铺的图案，抽空研究一下。^__^ 您可能还对这些日志感兴趣仿制品 &#8211; apple icon &#8211; camera乱翻乱教 &#8211; 制作可爱的小鸟勃起图标乱翻乱教 – 小鸡快跑 &#8211; Photoshop 超级可爱小鸡乱翻乱教-编号004-用photoshop制作绚丽的星球设计部培训第二课]]></description>
			<content:encoded><![CDATA[<p><img class="janblus-preview" title="ios-nb-sml" src="http://qilei.org/wp-content/uploads/2011/10/ios-nb-sml.jpg" alt="" width="100" height="100" /></p>
<h2>Photoshop 制作ios5通知栏背景</h2>
<p>制作工具：Adobe Photoshop cs5<br />
作者：飞鱼<br />
iOS5发布后评价都说很棒，于是毫不犹豫的刷了，算是纪念Jobs的临终大作。改进的功能很多，其中一个大功能就是有了一个跟android几乎一样的通知栏，同事看了说：我擦，这功能跟android 的下拉框有啥区别？完全抄袭么&#8230; 然后就有人说了：那不是，瞧，对比一下，明显&#8230; <em>iOS5的通知栏帅多了，瞧这背景，瞧这细节&#8230;</em>。<br />
好吧，仔细看了下的确很酷，细节纹理做得很棒，像一块布。发现做起来也不复杂就几步就可以了^__^。</p>
<h3>最终效果</h3>
<p><img src="http://qilei.org/wp-content/uploads/2011/10/ios-nb-05.jpg" alt="" width="500" height="350" /><br />
<span id="more-1321"></span></p>
<h3>步骤 1</h3>
<p>新建psd，大小800*600，填充背景色(#45454c)。如下图。<em>飞鱼：填充神马的不用我教了吧 XD</em><br />
<img src="http://qilei.org/wp-content/uploads/2011/10/ios-nb-01.jpg" alt="" width="500" height="350" /></p>
<h3>步骤 2</h3>
<p>新建图层, 填充黑色(#000000)，选择 <strong>滤镜-杂色-添加杂色</strong>，杂色数量20%左右。然后将图层模式改为：<strong>滤色</strong>。如下图。<br />
<img src="http://qilei.org/wp-content/uploads/2011/10/ios-nb-02.jpg" alt="" width="500" height="350" /></p>
<h3>步骤 3</h3>
<p>分别选择 <strong>滤镜-模糊-动感模糊</strong>，角度90，距离30左右。然后选择 <strong>滤镜-锐化-锐化</strong>，如下图：<br />
<em>这个时候基本有点感觉了吧^__^ 继续。</em><br />
<img src="http://qilei.org/wp-content/uploads/2011/10/ios-nb-03.jpg" alt="" width="500" height="350" /></p>
<h3>步骤 4</h3>
<p>接下来只要做横向的效果就差不多了，新建一个图层，按照步骤2，只是角度变为45度。结果如下图：<br />
<em>这里其实还有另外一个办法就是复制一层，ctrl+t 旋转一下就可以了，不过长度会不够。<br />
</em><br />
<img src="http://qilei.org/wp-content/uploads/2011/10/ios-nb-04.jpg" alt="" width="500" height="350" /></p>
<h3>步骤 5</h3>
<p>到这里效果基本都出来了，只要加个图层，做一下内阴影，或者黑白渐变，然后叠加一下就有效果了。<br />
<img src="http://qilei.org/wp-content/uploads/2011/10/ios-nb-05.jpg" alt="" width="500" height="350" /></p>
<h3>总结</h3>
<p>可以发现，做这个东西只要几种滤镜就可以轻松达到效果，具体细节需要仔细去调，比如颜色，阴影等。<br />
<em>个人觉得主要的难点在于如何做成可以平铺的图案，抽空研究一下。^__^</em></p>
<h2  class="related_post_title">您可能还对这些日志感兴趣</h2><ul class="related_post"><li><a href="http://qilei.org/201112/copy-with-apple-icon-camera/" title="仿制品 &#8211; apple icon &#8211; camera">仿制品 &#8211; apple icon &#8211; camera</a></li><li><a href="http://qilei.org/201103/create-a-cute-bird-icon-in-photoshop/" title="乱翻乱教 &#8211; 制作可爱的小鸟勃起图标">乱翻乱教 &#8211; 制作可爱的小鸟勃起图标</a></li><li><a href="http://qilei.org/201003/photoshop-made-an-cute-chick/" title="乱翻乱教 – 小鸡快跑 &#8211;  Photoshop 超级可爱小鸡">乱翻乱教 – 小鸡快跑 &#8211;  Photoshop 超级可爱小鸡</a></li><li><a href="http://qilei.org/200906/making-a-planet-by-photoshop/" title="乱翻乱教-编号004-用photoshop制作绚丽的星球">乱翻乱教-编号004-用photoshop制作绚丽的星球</a></li><li><a href="http://qilei.org/200903/web-design-training-class-two/" title="设计部培训第二课">设计部培训第二课</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://qilei.org/201110/make-the-ios-5-notification-center-bg-with-photoshop/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>乱翻乱教 &#8211; 制作可爱的小鸟勃起图标</title>
		<link>http://qilei.org/201103/create-a-cute-bird-icon-in-photoshop/</link>
		<comments>http://qilei.org/201103/create-a-cute-bird-icon-in-photoshop/#comments</comments>
		<pubDate>Wed, 09 Mar 2011 15:06:43 +0000</pubDate>
		<dc:creator>飞鱼</dc:creator>
				<category><![CDATA[乱翻乱教]]></category>
		<category><![CDATA[photoshop]]></category>
		<category><![CDATA[PSDTUTS]]></category>

		<guid isPermaLink="false">http://qilei.org/?p=1163</guid>
		<description><![CDATA[Photoshop 超级可爱的勃起小鸟图标 制作工具：Adobe Photoshop cs3 原文地址：猛击此链接 飞鱼:这只小鸟教程好久前就想做了, 但是发现篇幅太长, 每次看到我都 无语的叹了口气哈. 这个个教程原文描述的难度是初学者, 但是有些小细节还是比较难的. 不过这个教程精髓就是在 成充分利用ps 里的 图层混合选项 这个东东, 做完之后可以发现仅仅用 混合选项 调出来的颜色 也是非常有质感的. 最终效果 步骤很多, 但是每步都比较简单, 只要按照步骤一下一下来一定能做出好东西^__^ 步骤 1 新建psd 文件,尺寸 800*600 , 72dpi, RGB, 白色背景, 使用圆圈形状工具, 颜色#0099ff, 在图上画蓝色的圈圈, 大小适当即可. 给图层命名: 身体. 如下图. 步骤 2 使用路径选择工(A) 选中圆圈路径, 同时按住 alt + shift 往下拖动路径, 就可以在同一个图层复制一份圆圈路径出来 , 注意: 图片里是拖动的时候截的图, 复制完后 [...]]]></description>
			<content:encoded><![CDATA[<p><img class="janblus-preview" title="bird-sml" src="http://qilei.org/wp-content/uploads/2011/03/bird_sml.jpg" alt="" width="100" height="100" /></p>
<h2>Photoshop 超级可爱的勃起小鸟图标</h2>
<p>制作工具：Adobe Photoshop cs3<br />
原文地址：<a title="Super Cute Easter Wallpaper Illustration Tutorial" href="http://psd.tutsplus.com/tutorials/icon-design/create-a-cute-twitter-bird-icon-in-photoshop/" target="_blank">猛击此链接</a><br />
<em>飞鱼:这只小鸟教程好久前就想做了, 但是发现篇幅太长, 每次看到我都 无语的叹了口气哈. </em><br />
这个个教程原文描述的难度是初学者, 但是有些小细节还是比较难的.<br />
不过这个教程精髓就是在 <del datetime="2011-03-10T02:44:46+00:00">成</del>充分利用ps 里的<strong> 图层混合选项</strong> 这个东东,<br />
做完之后可以发现仅仅用 混合选项 调出来的颜色 也是非常有质感的.</p>
<h3>最终效果</h3>
<p><img class="alignnone size-full wp-image-1164" title="20110309-bird" src="http://qilei.org/wp-content/uploads/2011/03/20110309-bird.jpg" alt="" width="600" height="240" /><br />
步骤很多, 但是每步都比较简单,<br />
只要按照步骤一下一下来一定能做出好东西^__^</p>
<p><span id="more-1163"></span></p>
<h3>步骤 1</h3>
<p>新建psd 文件,尺寸 800*600 , 72dpi, RGB, 白色背景,  使用圆圈形状工具, 颜色#0099ff, 在图上画蓝色的圈圈, 大小适当即可. 给图层命名: 身体. 如下图.<br />
<img src="http://qilei.org/wp-content/uploads/2011/03/bird_01.jpg" alt="" title="bird_01" width="500" height="400" class="alignnone size-full wp-image-1174" /></p>
<h3>步骤 2</h3>
<p>使用路径选择工(A) 选中圆圈路径, 同时按住 alt + shift 往下拖动路径, 就可以在同一个图层复制一份圆圈路径出来 , <em>注意: 图片里是拖动的时候截的图, 复制完后 应该有两个圈. </em><br />
<img src="http://qilei.org/wp-content/uploads/2011/03/bird_02.jpg" alt="" title="bird_02" width="500" height="430" class="alignnone size-full wp-image-1175" /></p>
<h3>步骤 3</h3>
<p>用(A)选中下面的圆圈路径 ctrl +T 对下面的圆圈 修改 调整其大小.</p>
<h3>步骤 4</h3>
<p>使用直接选择工具(也是A, 空心的箭头) 选择 圆圈上面的节点, 调整节点 , 将 圆圈形状调成下图所示.<br />
注意: 调整节点左右弧度的时候,按住 shift 可以保持不会上下偏移.<br />
<img src="http://qilei.org/wp-content/uploads/2011/03/bird_04.jpg" alt="" title="bird_04" width="500" height="400" class="alignnone size-full wp-image-1176" /></p>
<h3>步骤 5</h3>
<p>使用圆圈形状工具, . 在 身体 图层上方, 画 长条的圆圈, 图层命名为 眼圈, 图层面板 中修改形状颜色为白色, 使用同样的方法,复制一只眼睛. 注意眼睛比例.<br />
<img src="http://qilei.org/wp-content/uploads/2011/03/bird_05.jpg" alt="" title="bird_05" width="500" height="400" class="alignnone size-full wp-image-1177" /></p>
<h3>步骤 6</h3>
<p>然后用钢笔工具在头部制作 小鸟头发的形状.<br />
<img src="http://qilei.org/wp-content/uploads/2011/03/bird_06.jpg" alt="" title="bird_06" width="500" height="400" class="alignnone size-full wp-image-1178" /></p>
<p>PS: 这里原文似乎少了一步,就是 画眼珠子的图层 , 其实跟上一步一样,只不过是两个小的正圆, 就不用教了吧 嘎嘎. 眼珠的颜色值为: #5e3b11<br />
<img src="http://qilei.org/wp-content/uploads/2011/03/bird_06a.jpg" alt="" title="bird_06a" width="500" height="400" class="alignnone size-full wp-image-1185" /></p>
<p><em>reader用户想继续阅读请猛击标题. 图片太多,于是分段</em></p>
<h2  class="related_post_title">您可能还对这些日志感兴趣</h2><ul class="related_post"><li><a href="http://qilei.org/200810/how-to-create-a-delicious-green-apple-illustration/" title="飞鱼的乱翻乱教-编号002-美味青苹果">飞鱼的乱翻乱教-编号002-美味青苹果</a></li><li><a href="http://qilei.org/201110/make-the-ios-5-notification-center-bg-with-photoshop/" title="乱翻乱教 &#8211; iOS5 通知栏背景制作">乱翻乱教 &#8211; iOS5 通知栏背景制作</a></li><li><a href="http://qilei.org/201003/photoshop-made-an-cute-chick/" title="乱翻乱教 – 小鸡快跑 &#8211;  Photoshop 超级可爱小鸡">乱翻乱教 – 小鸡快跑 &#8211;  Photoshop 超级可爱小鸡</a></li><li><a href="http://qilei.org/200906/making-a-planet-by-photoshop/" title="乱翻乱教-编号004-用photoshop制作绚丽的星球">乱翻乱教-编号004-用photoshop制作绚丽的星球</a></li><li><a href="http://qilei.org/200903/web-design-training-class-two/" title="设计部培训第二课">设计部培训第二课</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://qilei.org/201103/create-a-cute-bird-icon-in-photoshop/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>乱翻乱教 – M8开发环境(vs2008)配置 [菜鸟版]</title>
		<link>http://qilei.org/201005/m8-developer-starting-with-vs2008/</link>
		<comments>http://qilei.org/201005/m8-developer-starting-with-vs2008/#comments</comments>
		<pubDate>Fri, 07 May 2010 16:04:56 +0000</pubDate>
		<dc:creator>飞鱼</dc:creator>
				<category><![CDATA[乱翻乱教]]></category>
		<category><![CDATA[小八日记]]></category>
		<category><![CDATA[M8]]></category>
		<category><![CDATA[教程]]></category>

		<guid isPermaLink="false">http://www.qilei.org/?p=788</guid>
		<description><![CDATA[每天看着[魅族论坛]的开发者版块那寥寥一百左右的帖子，真是揪心啊，并且里面大好多问题都是平台搭建的问题，这个问题很严重，并且非常打击初学者的积极性呢。于是乎，折腾了几天把平台搭建及同步调试等常见的问题及细节都跑了一遍，希望有所帮助。 准备活动 都说我解说技术比较银荡，那就更银荡一些 ^_^ 要大干一场，那是需要一系列性情道具的···· M8的系统是 基于wince 封装出来的，这个大家应该都知道。所以咱们需要的东西 如下： 1. Visual Studio 2008 下载地址 点进去 捡专业版 下载 2. M8SDK 下载地址 是魅族的开发社区的下载地址 3. M8SDK中文版文档 同楼上 4. M8 一只 （选填） 如果你真的想开发M8应用，去整一个，因为同步调试比模拟器调试要真实多了。 5. 同步驱动 下载地址 官网有的下 6. 电脑一只 不要告诉我你想在M8上开发 =，= 我用的win7 64位，很销魂 7. .NET Framework 3.5 下载地址 win7 就不用装了。 前戏 前戏一定要有不然怎么OOXX，是安装软件，且顺序如下： .NET Framework 3.5 (win7)可以忽略 Visual Studio 2008 [...]]]></description>
			<content:encoded><![CDATA[<p><img alt="" src="http://www.qilei.org/wp-content/uploads/2010/03/100328.jpg" class="alignnone" width="500" height="200" /><br />
每天看着[<a target="_blank" rel="nofollow"  href="http://bbs.meizu.com/index.php">魅族论坛</a>]的开发者版块那寥寥一百左右的帖子，真是揪心啊，并且里面大好多问题都是平台搭建的问题，这个问题很严重，并且非常打击初学者的积极性呢。于是乎，折腾了几天把平台搭建及同步调试等常见的问题及细节都跑了一遍，希望有所帮助。</p>
<h3>准备活动</h3>
<p>都说我解说技术比较银荡，那就更银荡一些 ^_^ <em>要大干一场，那是需要一系列性情道具的····</em><br />
M8的系统是 基于wince 封装出来的，<em>这个大家应该都知道</em>。所以咱们需要的东西 如下：</p>
<ul>
<li>1. <strong>Visual Studio 2008 </strong> <a target="_blank" rel="nofollow" href="http://www.zu14.cn/2009/02/18/vs2008-collection/">下载地址</a> <em> 点进去 捡<strong>专业版</strong> 下载</em></li>
<li>2. <strong>M8SDK</strong>  <a target="_blank" rel="nofollow"  href="http://developer.meizu.com/m8sdkhelp/sdk.jsp">下载地址</a> <em>是魅族的开发社区的下载地址</em></li>
<li>3. <strong>M8SDK中文版文档</strong> 同楼上</li>
<li>4. <strong>M8 一只</strong> （选填） <em>如果你真的想开发M8应用，去整一个，因为同步调试比模拟器调试要真实多了。</em></li>
<li>5. <strong>同步驱动</strong> <a target="_blank" rel="nofollow" href="http://www.meizu.com/service/downs.html?id=64">下载地址</a> 官网有的下 </li>
<li>6. <strong>电脑一只</strong> 不要告诉我你想在M8上开发 =，=  我用的win7 64位，很销魂</li>
<li>7.  <strong>.NET Framework 3.5</strong> <a target="_blank" rel="nofollow" href="http://www.zu14.cn/2009/02/18/vs2008-collection/">下载地址</a> win7 就不用装了。</li>
</ul>
<p><span id="more-788"></span></p>
<h3>前戏</h3>
<p>前戏一定要有不然怎么OOXX，是安装软件，且顺序如下：<br />
<strong>.NET Framework 3.5</strong> (win7)可以忽略<br />
<strong>Visual Studio 2008</strong> 选择自定义安装，除了C++意外的都不要勾选(除非你还要开发其他东西)，我就是这么干的，当然MSDN也不要装了，有问题google 吧，然后是耐心等待，<em>看看X片吧</em>。<br />
<img src="http://www.qilei.org/wp-content/uploads/2010/05/m8-001.png" alt="" title="m8-001" width="500" height="250" class="alignnone size-full wp-image-789" /></p>
<p>然后装 <strong>M8SDK</strong>(<em>SDK要在vs之后装，不然是装不上的</em>)，这里要注意一下，论坛里有老多人卡在这里，<em>多少也要先看看SDK文档再下手么，文档里写得还是蛮清楚的，虽然有些地方要误导人</em>。如下图，装的时候，不要勾选 文档部分。<br />
<img src="http://www.qilei.org/wp-content/uploads/2010/05/m8-002.png" alt="" title="m8-002" width="450" height="150" class="alignnone size-full wp-image-790" /></p>
<p>接着是装驱动，叉p 跟win7 要装的东东不一样，去文档里看吧。这里就不说了。确保同步成功就ok。</p>
<p>前戏结束， 应该湿了~~~~~ 哼哼~~~</p>
<h3>剥橘子，带TT</h3>
<p>论坛里好多初学者碰到了N多关于怎样开始这个hello M8 的项目。这个灰常蛋疼，虽然SDK文档里 有步骤但是却很蛋疼的漏掉点什么，总是调试不成功，同步不成功。就像 正要OOXX 的时候同事来电话一样，立马倒塌~~~~</p>
<p>那么开始我们的hello M8 的项目，<br />
1. <strong>新建项目，智能设备</strong> &#8211; win32智能设备项目 <em>见文档 &#8211; 创建基本MZFC程序</em><br />
    按照文档里说的 复制 hello M8的程序到cpp里。</p>
<p>2. 项目建好后， 选择 项目 &#8211; XX属性 配置(重要) ，这里文档虽然有步骤，但是似乎漏了点，<br />
    首先是 <strong>添加依赖项</strong> 选择[链接器]-[输入]-[附加依赖项]  写入： mzfcs.lib platformApi.lib (文档里有说明) 如下图：<br />
    <img src="http://www.qilei.org/wp-content/uploads/2010/05/m8-003.png" alt="" title="m8-003" width="500" height="200" class="alignnone size-full wp-image-791" /> </p>
<p>3. 接下来是<strong>设置预处理器</strong>，[项目]-[属性]-[C/C++]-[预处理器]-[预处理定义]，添加 MZFC_STATIC，<strong>这里文档的图片容易误导人</strong>，因为文档中图片中只有一个MZFC_STATIC，很多人以为是吧其他都删掉，其实不是，是在前面追加一个。不然后面<strong>编译</strong>的时候会出现如下图的错误。<br />
<img src="http://www.qilei.org/wp-content/uploads/2010/05/m8-004.png" alt="" title="m8-004" width="500" height="200" class="alignnone size-full wp-image-792" /><br />
<img src="http://www.qilei.org/wp-content/uploads/2010/05/m8-005.png" alt="" title="m8-005" width="500" height="130" class="alignnone size-full wp-image-793" /></p>
<p>4. 然后是设置 <strong>不使用预编译头</strong>，这一步文档里没说，但是论坛里好多帖子都在问这个问题，不下十个，觉得官方有必要改改文档了，<br />
[项目]-[属性]-[C/C++]-[预编译头] 设置成 不使用预编译头，顺便贴一个没设置这一项编译不成功的截图。<br />
<img src="http://www.qilei.org/wp-content/uploads/2010/05/m8-006.png" alt="" title="m8-006" width="500" height="235" class="alignnone size-full wp-image-794" /><br />
<img src="http://www.qilei.org/wp-content/uploads/2010/05/m8-007.png" alt="" title="m8-007" width="500" height="150" class="alignnone size-full wp-image-795" /></p>
<p>5. 使用<strong>模拟器调试</strong>，如下图 M8SDK Emulator 代表模拟器 模式(<em>默认就是这个</em>)。 选择[生成] &#8211; [编译] Ctrl+F7，看到下方成功了之后，再按(F5)[调试] 应该就跳出个 恶心的模拟器，<em>为什么恶心呢？因为一开始是黑屏的以为模拟失败，等了10秒，丫才开机·· 囧rz 还要开机啊······</em>，并且效果不好，感觉怪怪的速度也不很慢。有大虾知道如何优化，请留言告诉我下，我补上。<br />
<img src="http://www.qilei.org/wp-content/uploads/2010/05/m8-009.png" alt="" title="m8-009" width="500" height="140" class="alignnone size-full wp-image-796" /><br />
<img src="http://www.qilei.org/wp-content/uploads/2010/05/m8-010.png" alt="" title="m8-010" width="500" height="250" class="alignnone size-full wp-image-805" /></p>
<p>6. <strong>同步调试</strong>。这一步留给有小八的童鞋们。连上小8后，(确保同步驱动装好，同步模式可以跑)，然后将 M8SDK Emulator 下拉 选为 M8SDK ARMV4I Device，然后点击右侧的小手机按钮进行手机同步测试。看看是否同步，<br />
<img src="http://www.qilei.org/wp-content/uploads/2010/05/m8-011.png" alt="" title="m8-011" width="500" height="200" class="alignnone size-full wp-image-797" /></p>
<p>7. 配置<strong>远程目录</strong>，这个文档里也有说明，选择 [项目]-[属性]-[部署] <strong>设置远程目录</strong>，<em>建议：</em> 将目录设置成Disk目录下的某文件夹，如\Disk\MM ，<em> 文档里的说明是Windows 生成之后找都找不到</em>，<br />
<img src="http://www.qilei.org/wp-content/uploads/2010/05/m8-012.png" alt="" title="m8-012" width="500" height="170" class="alignnone size-full wp-image-798" /><br />
同样，设置<strong>远程调试文件</strong>  [项目]-[属性]-[调试] ，远程文件，如下：<br />
<img src="http://www.qilei.org/wp-content/uploads/2010/05/m8-013.png" alt="" title="m8-013" width="500" height="150" class="alignnone size-full wp-image-799" /></p>
<p>8. 编译<strong>生成文件</strong> 这个是关键的一步，因为之前刚开始整的时候一直连接不到手机，都是直接弹出个调试器，或者提示找不到远程文件。<br />
<img src="http://www.qilei.org/wp-content/uploads/2010/05/m8-014.png" alt="" title="m8-014" width="500" height="150" class="alignnone size-full wp-image-800" /></p>
<p>9. <strong>屡试不爽，久久不放</strong>，然后按下F5 应该就能在你的小八上看到运行的软件了。</p>
<p>好吧，开始你的M8之旅吧。</p>
<p>有问题可以留言欢迎讨论。</p>
<h2  class="related_post_title">您可能还对这些日志感兴趣</h2><ul class="related_post"><li><a href="http://qilei.org/201003/program-for-m8/" title="不走寻常路–Win7下vs2008搭建M8开发平台">不走寻常路–Win7下vs2008搭建M8开发平台</a></li><li><a href="http://qilei.org/201002/tryout-m8-system-969/" title="整得连妈都不认识了 – M8 新固件9.6.X 试用体验">整得连妈都不认识了 – M8 新固件9.6.X 试用体验</a></li><li><a href="http://qilei.org/201001/become-a-m8-owner/" title="M8 到手 内牛满面">M8 到手 内牛满面</a></li><li><a href="http://qilei.org/200911/site-header/" title="乱翻乱教 – 时尚导航设计 &#8211; 傻瓜版教程">乱翻乱教 – 时尚导航设计 &#8211; 傻瓜版教程</a></li><li><a href="http://qilei.org/200909/jquery-fade-picture/" title="乱翻乱教 &#8211; jQuery图片轮播插件 &#8211; 菜鸟版">乱翻乱教 &#8211; jQuery图片轮播插件 &#8211; 菜鸟版</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://qilei.org/201005/m8-developer-starting-with-vs2008/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>乱翻乱教 – 小鸡快跑 &#8211;  Photoshop 超级可爱小鸡</title>
		<link>http://qilei.org/201003/photoshop-made-an-cute-chick/</link>
		<comments>http://qilei.org/201003/photoshop-made-an-cute-chick/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 15:15:38 +0000</pubDate>
		<dc:creator>飞鱼</dc:creator>
				<category><![CDATA[乱翻乱教]]></category>
		<category><![CDATA[photoshop]]></category>

		<guid isPermaLink="false">http://www.qilei.org/?p=729</guid>
		<description><![CDATA[Photoshop 超级可爱小鸡 作者：Vaclav 此人的blog 很帅气··· 膜拜ing 制作工具：Adobe Photoshop cs3 原文地址：猛击此链接 (英文强悍的可以参考原文) 发现工作后就没有好好的干过自己爱干的事情(不想说做爱做的事)，reader上的tutorial 堆积如山，不过有人说的好，时间挤挤还是有的。 想到不知不觉订阅快200了，还是多写写吧，就当自己前进的动力，最近还是有挺多东西要写的，听飞鱼娓娓道来 ^___^ 今天更新的东西是tutorial 上一个小鸡的制作，总体比较简单，有点小技巧，简单不简单。相信对初学者会有很大的帮助，像我这样的菜鸟也就做做小教程吧，谁让我爱分享，咩哈哈哈·~ 最终效果 步骤1 新建一个文档，多大无所谓，够大就行，我用的是500×400，用形状工具画两个圈(按住shift 可以在同一个图层画两个圆)。用钢笔工具按住ctrl点击下图中的节点适当修一下形状。这个应该很简单吧，不用我教，什么？ 钢笔怎么修不会？ =，= 往下看 效果如下： 钢笔工具(P) 在使用的时候 可以配合ctrl，shift，alt  可以完成很多好玩的东东，你可以自己试试看，自己总结。  步骤2 接下来用选择工具(A)选中头部的圈，按住shift 选中另外一个圈，(或者直接在界面拖动选中两个也可以)，点击上面 “组合” 就可以把两个圈圈合并，当然是不能分开的，所以要细心 接下来要使用钢笔工具将接口部分变得平滑。 如下图，钢笔工具在线上的3钟状态如下图中右侧的样子， 分别是添加节点，删除节点，和重置平滑 (重置平滑，是按住alt在线上出现的，单击就是不平滑(角)，可以拖动重新拉平滑度，这个东西在调整曲线的时候非常有用。) 调整后的效果如下： 您可能还对这些日志感兴趣乱翻乱教 &#8211; iOS5 通知栏背景制作乱翻乱教 &#8211; 制作可爱的小鸟勃起图标乱翻乱教-编号004-用photoshop制作绚丽的星球设计部培训第二课乱翻乱教-Photoshop-剪贴蒙版妙用]]></description>
			<content:encoded><![CDATA[<p><img class="janblus-preview" title="chick-sml" src="http://www.qilei.org/wp-content/uploads/2010/03/chick-sml.png" alt="" width="100" height="100" /></p>
<h2>Photoshop 超级可爱小鸡</h2>
<p>作者：<a title="check to see Vaclav’s site" rel="no-follow" href="http://www.upir.org/" target="_blank">Vaclav </a> <em>此人的blog 很帅气··· 膜拜ing</em><br />
制作工具：Adobe Photoshop cs3<br />
原文地址：<a title="Super Cute Easter Wallpaper Illustration Tutorial" href="http://psd.tutsplus.com/tutorials/drawing/super-cute-easter-wallpaper-illustration-tutorial/" target="_blank">猛击此链接</a> (英文强悍的可以参考原文)<br />
发现工作后就没有好好的干过自己爱干的事情(<em>不想说做爱做的事</em>)，reader上的tutorial 堆积如山，不过有人说的好，时间挤挤还是有的。<br />
想到不知不觉订阅快200了，还是多写写吧，就当自己前进的动力，最近还是有挺多东西要写的，听飞鱼娓娓道来 ^___^</p>
<p>今天更新的东西是tutorial 上一个小鸡的制作，总体比较简单，有点小技巧，简单不简单。相信对初学者会有很大的帮助，像我这样的菜鸟也就做做小教程吧，谁让我爱分享，咩哈哈哈·~</p>
<h3>最终效果</h3>
<p><img class="alignnone size-full wp-image-737" title="chick-preview" src="http://www.qilei.org/wp-content/uploads/2010/03/chick-preview.png" alt="" width="500" height="350" /><br />
<span id="more-729"></span></p>
<h3>步骤1</h3>
<p>新建一个文档，多大无所谓，够大就行，我用的是500×400，用形状工具画两个圈(按住shift 可以在同一个图层画两个圆)。用钢笔工具按住ctrl点击下图中的节点适当修一下形状。<em>这个应该很简单吧，不用我教，什么？ 钢笔怎么修不会？ =，= 往下看</em><br />
效果如下：<br />
<img class="alignnone size-full wp-image-734" title="chick-001" src="http://www.qilei.org/wp-content/uploads/2010/03/chick-001.png" alt="" width="500" height="350" /><br />
钢笔工具(P) 在使用的时候 可以配合ctrl，shift，alt  可以完成很多好玩的东东，你可以自己试试看，自己总结。 <img title="chick-002" src="http://www.qilei.org/wp-content/uploads/2010/03/chick-002.png" alt="" width="500" height="350" /></p>
<h3>步骤2</h3>
<p>接下来用选择工具(A)选中头部的圈，按住shift 选中另外一个圈，(或者直接在界面拖动选中两个也可以)，点击上面 “组合” 就可以把两个圈圈合并，<em>当然是不能分开的，所以要细心</em> 接下来要使用钢笔工具将接口部分变得平滑。<br />
如下图，钢笔工具在线上的3钟状态如下图中右侧的样子， 分别是添加节点，删除节点，和重置平滑 (<em>重置平滑，是按住alt在线上出现的，单击就是不平滑(角)，可以拖动重新拉平滑度，这个东西在调整曲线的时候非常有用。</em>)<br />
<img class="alignnone size-full wp-image-736" title="chick-003" src="http://www.qilei.org/wp-content/uploads/2010/03/chick-003.png" alt="" width="500" height="350" /><br />
调整后的效果如下：<br />
<img class="alignnone size-full wp-image-739" title="chick-004" src="http://www.qilei.org/wp-content/uploads/2010/03/chick-004.png" alt="" width="500" height="350" /></p>
<h2  class="related_post_title">您可能还对这些日志感兴趣</h2><ul class="related_post"><li><a href="http://qilei.org/201110/make-the-ios-5-notification-center-bg-with-photoshop/" title="乱翻乱教 &#8211; iOS5 通知栏背景制作">乱翻乱教 &#8211; iOS5 通知栏背景制作</a></li><li><a href="http://qilei.org/201103/create-a-cute-bird-icon-in-photoshop/" title="乱翻乱教 &#8211; 制作可爱的小鸟勃起图标">乱翻乱教 &#8211; 制作可爱的小鸟勃起图标</a></li><li><a href="http://qilei.org/200906/making-a-planet-by-photoshop/" title="乱翻乱教-编号004-用photoshop制作绚丽的星球">乱翻乱教-编号004-用photoshop制作绚丽的星球</a></li><li><a href="http://qilei.org/200903/web-design-training-class-two/" title="设计部培训第二课">设计部培训第二课</a></li><li><a href="http://qilei.org/200902/photoshop-clip-mask-tip/" title="乱翻乱教-Photoshop-剪贴蒙版妙用">乱翻乱教-Photoshop-剪贴蒙版妙用</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://qilei.org/201003/photoshop-made-an-cute-chick/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>乱翻乱教 – 时尚导航设计 &#8211; 傻瓜版教程</title>
		<link>http://qilei.org/200911/site-header/</link>
		<comments>http://qilei.org/200911/site-header/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 11:59:19 +0000</pubDate>
		<dc:creator>飞鱼</dc:creator>
				<category><![CDATA[乱翻乱教]]></category>
		<category><![CDATA[教程]]></category>

		<guid isPermaLink="false">http://www.qilei.org/?p=589</guid>
		<description><![CDATA[时尚导航设计 &#8211; 傻瓜版教程 作者：飞鱼 制作工具：Photoshop cs3 最近给一个朋友的一个教育类的网站 做了个设计稿，后来因为公司开始忙了，就只弄了个设计稿，就这么停掉了，说来也惭愧，人懒啊~，不过也不吝啬，整理了一下这个头部的制作过程放出来分享给大家。希望有所收获 最近yupoo，发神经了，然后又被花花教导了一下，把图片放在MT上了。 = = 最终效果 步骤1 准备工作 首先当然是新建文件啦，尺寸为 1150*1000， 按ctrl+R调出标尺。设置标尺的单位为“像素”(在标尺上右键)，然后在左边的标尺上拖动，拉出参考线 分别拉一条参考线在100px，和1050px 飞鱼：我比较喜欢950px的布局，两边各留100px的留白。 拉好参考线的效果图 如下： 步骤2 制作顶部导航 通常一个网站的头部包括一个 顶部的导航，显示欢迎， 登录，帮助等信息。 新建一个图层(topline)，使用矩形工具，在顶部，画一个颜色为#e9e9e9 的矩形，高度为25像素左右。(可以根据自己喜好调整) 您可能还对这些日志感兴趣乱翻乱教 – M8开发环境(vs2008)配置 [菜鸟版]乱翻乱教 &#8211; jQuery图片轮播插件 &#8211; 菜鸟版发现一个jQuery初学者的天堂飞鱼的乱翻乱教-编号002-美味青苹果飞鱼的乱翻乱教-编号001-水晶质感icon]]></description>
			<content:encoded><![CDATA[<p><img class="janblus-preview" src="http://www.qilei.org/wp-content/uploads/2009/11/small.jpg" alt="时尚网站头部设计small" width="100" height="100" /></p>
<h2>时尚导航设计 &#8211; 傻瓜版教程</h2>
<p>作者：飞鱼<br />
制作工具：Photoshop cs3<br />
最近给一个朋友的一个教育类的网站 做了个设计稿，后来因为公司开始忙了，就只弄了个设计稿，就这么停掉了，说来也惭愧，人懒啊~，不过也不吝啬，整理了一下这个头部的制作过程放出来分享给大家。希望有所收获<br />
<em>最近yupoo，发神经了，然后又被花花教导了一下，把图片放在MT上了。 = =</em></p>
<h3>最终效果</h3>
<p><img src="http://www.qilei.org/wp-content/uploads/2009/11/header_000.gif" alt="时尚网站头部设计_000" width="500" height="300" /></p>
<p><span id="more-589"></span></p>
<h3>步骤1 准备工作</h3>
<p>首先当然是新建文件啦，尺寸为 1150*1000，<br />
<img src="http://www.qilei.org/wp-content/uploads/2009/11/header_001_1.gif" alt="时尚网站头部设计_001_1" width="500" height="300" /><br />
按ctrl+R调出标尺。设置标尺的单位为“像素”(在标尺上右键)，然后在左边的标尺上拖动，拉出参考线<br />
分别拉一条参考线在100px，和1050px<br />
<em>飞鱼：我比较喜欢950px的布局，两边各留100px的留白。</em><br />
<img src="http://www.qilei.org/wp-content/uploads/2009/11/header_001_2.gif" alt="时尚网站头部设计_001_2" width="500" height="300" /><br />
拉好参考线的效果图 如下：<br />
<img src="http://www.qilei.org/wp-content/uploads/2009/11/header_001_3.gif" alt="时尚网站头部设计_001_3" width="500" height="300" /></p>
<h3>步骤2 制作顶部导航</h3>
<p>通常一个网站的头部包括一个 顶部的导航，显示欢迎， 登录，帮助等信息。<br />
新建一个图层(topline)，使用矩形工具，在顶部，画一个颜色为#e9e9e9 的矩形，高度为25像素左右。(可以根据自己喜好调整)<br />
<img src="http://www.qilei.org/wp-content/uploads/2009/11/header_002_1.gif" alt="时尚网站头部设计_002_1" width="500" height="300" /></p>
<h2  class="related_post_title">您可能还对这些日志感兴趣</h2><ul class="related_post"><li><a href="http://qilei.org/201005/m8-developer-starting-with-vs2008/" title="乱翻乱教 – M8开发环境(vs2008)配置 [菜鸟版]">乱翻乱教 – M8开发环境(vs2008)配置 [菜鸟版]</a></li><li><a href="http://qilei.org/200909/jquery-fade-picture/" title="乱翻乱教 &#8211; jQuery图片轮播插件 &#8211; 菜鸟版">乱翻乱教 &#8211; jQuery图片轮播插件 &#8211; 菜鸟版</a></li><li><a href="http://qilei.org/200810/a-site-about-learn-jquery/" title="发现一个jQuery初学者的天堂">发现一个jQuery初学者的天堂</a></li><li><a href="http://qilei.org/200810/how-to-create-a-delicious-green-apple-illustration/" title="飞鱼的乱翻乱教-编号002-美味青苹果">飞鱼的乱翻乱教-编号002-美味青苹果</a></li><li><a href="http://qilei.org/200809/how-to-create-a-transparent-battery-icon/" title="飞鱼的乱翻乱教-编号001-水晶质感icon">飞鱼的乱翻乱教-编号001-水晶质感icon</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://qilei.org/200911/site-header/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>乱翻乱教 &#8211; jQuery图片轮播插件 &#8211; 菜鸟版</title>
		<link>http://qilei.org/200909/jquery-fade-picture/</link>
		<comments>http://qilei.org/200909/jquery-fade-picture/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 11:49:02 +0000</pubDate>
		<dc:creator>飞鱼</dc:creator>
				<category><![CDATA[乱翻乱教]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[教程]]></category>

		<guid isPermaLink="false">http://www.qilei.org/?p=551</guid>
		<description><![CDATA[jQuery图片轮播插件 作者：飞鱼 制作工具：notpad++ 使用语言：javascript 最近写的这个图片轮播插件，于是乎拿出来晒晒，分享点菜鸟心得。大虾可以旁观^_^ 功能描述 就是一个简单的js轮播，第一张图变白，然后切换成第二张图。鼠标放上去后图片不切换，移开又开始了。 可以给组图片加效果，并且不冲突。 有空补一下 代码注释，以及 setInterval 的应用 演示效果图 演示地址： 跳转地址 js 代码 (function($) { $.fn.fadPicture = function(d) { var df = 3000; delay = d ? (d &#60; df ? df : d) : df; $(this).each(function(i){ var t = $(this), mc = function(){ var ul = t, first = ul.find('li:first'); [...]]]></description>
			<content:encoded><![CDATA[<p><img class="janblus-preview" src="http://pic.yupoo.com/2-fish/2499881ffc9b/thumb.jpg" alt="jQuery图片轮播插件" width="100" height="100" /></p>
<h2>jQuery图片轮播插件</h2>
<p>作者：飞鱼<br />
制作工具：notpad++<br />
使用语言：javascript<br />
<em>最近写的这个图片轮播插件，于是乎拿出来晒晒，分享点菜鸟心得。大虾可以旁观^_^</em></p>
<h3>功能描述</h3>
<p>就是一个简单的js轮播，第一张图变白，然后切换成第二张图。鼠标放上去后图片不切换，移开又开始了。 可以给组图片加效果，并且不冲突。<br />
<em>有空补一下 代码注释，以及 setInterval 的应用</em></p>
<h3>演示效果图</h3>
<p><img alt="" src="http://pic.yupoo.com/2-fish/4479964c1756/small.jpg" class="alignnone" width="240" height="212" /><br />
演示地址： <a href="http://code.qilei.org/jquery/jquery_fadPicture.html" target="_blank">跳转地址</a></p>
<p><span id="more-551"></span></p>
<h3>js 代码</h3>
<pre><code>(function($) {
  $.fn.fadPicture = function(d) {
    var df = 3000;
    delay = d ? (d &lt; df ? df : d) : df;
    $(this).each(function(i){
      var t = $(this),
        mc = function(){
          var  ul = t,
            first = ul.find('li:first');
          ul.fadeOut('show',
            function(){
              first.appendTo(ul);
            }
          );
          ul.fadeIn();
        };
      var interval = setInterval(function(){
        mc();
      }, delay);
      t.hover(
        function(){
          clearInterval(interval);
          t.data('start',false);
        },
        function(){
          interval = setInterval(function(){
            mc();
          }, delay);
        }
      );
    });
  };
})(jQuery);</code></pre>
<h3>使用方法</h3>
<pre><code>$(document).ready(function(){
  $('.fadPicture').fadPicture();
  // $('.fadPicture').fadPicture(5000);  //时间5秒
});
</code></pre>
<h3>html写法</h3>
<pre><code>&lt;ul class="fadPicture"&gt;
      &lt;li&gt;&lt;img src="http://001.jpg" alt="001" /&gt;&lt;/li&gt;
      &lt;li&gt;&lt;img src="http://002.jpg" alt="001" /&gt;&lt;/li&gt;
      &lt;li&gt;&lt;img src="http://003.jpg" alt="001" /&gt;&lt;/li&gt;
    &lt;/ul&gt;</code></pre>
<h2  class="related_post_title">您可能还对这些日志感兴趣</h2><ul class="related_post"><li><a href="http://qilei.org/200810/a-site-about-learn-jquery/" title="发现一个jQuery初学者的天堂">发现一个jQuery初学者的天堂</a></li><li><a href="http://qilei.org/201105/the-closure-alike-javascript-platform/" title="闭包式 js架构 前端书写心得(上)">闭包式 js架构 前端书写心得(上)</a></li><li><a href="http://qilei.org/201101/ternary-tip-for-javascript/" title=" 三元运算符 使用小技巧一则 &#8211; javascript"> 三元运算符 使用小技巧一则 &#8211; javascript</a></li><li><a href="http://qilei.org/201009/jquery-plugin-of-lazyhover/" title="神经特长 &#8211; lazy hover  延迟激活jquery 插件">神经特长 &#8211; lazy hover  延迟激活jquery 插件</a></li><li><a href="http://qilei.org/201005/m8-developer-starting-with-vs2008/" title="乱翻乱教 – M8开发环境(vs2008)配置 [菜鸟版]">乱翻乱教 – M8开发环境(vs2008)配置 [菜鸟版]</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://qilei.org/200909/jquery-fade-picture/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>乱翻乱教- jQuery 制作N级导航菜单 &#8211; 插件版</title>
		<link>http://qilei.org/200907/jquery-menu-plugin/</link>
		<comments>http://qilei.org/200907/jquery-menu-plugin/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 09:32:00 +0000</pubDate>
		<dc:creator>飞鱼</dc:creator>
				<category><![CDATA[乱翻乱教]]></category>
		<category><![CDATA[代码浅谈]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.qilei.org/?p=516</guid>
		<description><![CDATA[前几天做的jQuery实现N级导航菜单，实现起来超级简单，但是如果要将效果更丰富化的话，可能就不止这么点代码了。 于是乎，向笨笨先生(我哥)讨教了几番，得出了这么一个jquery menu 插件。代码依然很简单，稍微复杂点，可以在按钮放上去的时候触发一个动画效果，离开也可以触发一个动画效果，还添加了延迟释放效果(鼠标移开后有个缓冲，再消失) 代码如下： (function($) { //N级导航插件 $.fn.menu = function(options) { options = $.extend({ delay: false }, options); this.find('li:has(ul)').hover( function() { var t = $(this); t.data('hide_menu', false); t.find('>ul').css('display', 'block'); // 可以换成动画效果 }, function() { var t = $(this); t.data('hide_menu', true); var hide_menu = function() { if (t.data('hide_menu')) { t.find('>ul').css('display', 'none'); // 可以换成动画效果 } }; [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" src="http://pic.yupoo.com/2-fish/991487bb8013/medium.jpg" alt="" width="500" height="375" /><br />
前几天做的<a href="http://www.qilei.org/200907/jquery-navbar/">jQuery实现N级导航菜单</a>，实现起来超级简单，但是如果要将效果更丰富化的话，可能就不止这么点代码了。</p>
<p>于是乎，向笨笨先生(我哥)讨教了几番，得出了这么一个jquery menu 插件。代码依然很简单，稍微复杂点，可以在按钮放上去的时候触发一个动画效果，离开也可以触发一个动画效果，还添加了延迟释放效果(<em>鼠标移开后有个缓冲，再消失</em>)</p>
<p><strong>代码如下：</strong><span id="more-516"></span></p>
<pre><code>(function($) { //N级导航插件
  $.fn.menu = function(options) {
    options = $.extend({
      delay: false
    }, options);

    this.find('li:has(ul)').hover(
      function() {
        var t = $(this);
        t.data('hide_menu', false);
        t.find('>ul').css('display', 'block'); // 可以换成动画效果
      },

      function() {
        var t = $(this);
        t.data('hide_menu', true);
        var hide_menu = function() {
          if (t.data('hide_menu')) {
            t.find('>ul').css('display', 'none'); // 可以换成动画效果
          }
        };
        options.delay ? setTimeout(hide_menu, options.delay)
            : hide_menu();
      }
    );
  };
})(jQuery);</code></pre>
<p>代码非常简练，可以根据实际需求增加其他效果。<br />
使用方法如下：</p>
<pre><code>
jQuery(function($) {  //调用插件
  //$('.menu').menu() //默认调用语法;
  $('.menu').menu({delay: 500}); //延迟500ms释放
})</code></pre>
<p>PS：<a target="_blank" href="http://code.qilei.org/jquery/jquery_menu.html">演示地址</a></p>
<h2  class="related_post_title">您可能还对这些日志感兴趣</h2><ul class="related_post"><li><a href="http://qilei.org/201105/the-closure-alike-javascript-platform/" title="闭包式 js架构 前端书写心得(上)">闭包式 js架构 前端书写心得(上)</a></li><li><a href="http://qilei.org/201101/ternary-tip-for-javascript/" title=" 三元运算符 使用小技巧一则 &#8211; javascript"> 三元运算符 使用小技巧一则 &#8211; javascript</a></li><li><a href="http://qilei.org/201009/jquery-plugin-of-lazyhover/" title="神经特长 &#8211; lazy hover  延迟激活jquery 插件">神经特长 &#8211; lazy hover  延迟激活jquery 插件</a></li><li><a href="http://qilei.org/201005/how-to-make-the-func-name-no-clrash/" title="系统级应用项目中的函数命名冲突问题">系统级应用项目中的函数命名冲突问题</a></li><li><a href="http://qilei.org/201004/jquery-pad/" title="走马观花 &#8211; jQuery调试工具- jQuery pad">走马观花 &#8211; jQuery调试工具- jQuery pad</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://qilei.org/200907/jquery-menu-plugin/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>乱翻乱教- jQuery 制作N级导航菜单</title>
		<link>http://qilei.org/200907/jquery-navbar/</link>
		<comments>http://qilei.org/200907/jquery-navbar/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 05:09:52 +0000</pubDate>
		<dc:creator>飞鱼</dc:creator>
				<category><![CDATA[乱翻乱教]]></category>
		<category><![CDATA[代码浅谈]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.qilei.org/?p=503</guid>
		<description><![CDATA[突然发现将近一个月没写东东了(拜托就是一个月好伐)。飞鱼：额，最近在做月子= = jQuery 制作仿DNF首页导航菜单效果 作者：飞鱼原创 飞鱼: 偶然发现这个东东很实用，就手把手写了个。 DNF首页的那只导航，似乎纯手写的。我这次要写的是用jquery来制作，制作代码非常极其简单，看了就知道怎么做(老鸟可以绕过哈，谁让咱们都是菜鸟 = =) 最终效果图 支持N级导航(添加子导航无需另外添加代码)。 html代码 首先当然是html啦，代码如下，没有什么技术含量， &#60;div class="menu" &#62; &#60;ul&#62; &#60;li&#62; &#60;a href="#"&#62;游戏介绍&#60;/a&#62; &#60;ul&#62; &#60;li&#62;&#60;a href="#"&#62;升级体验&#60;/a&#62;&#60;/li&#62; &#60;li class="sub"&#62; &#60;a href="#"&#62;游戏2&#60;/a&#62; &#60;ul&#62; &#60;li&#62;&#60;a href="#"&#62;天赋系统&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href="#"&#62;升级体验&#60;/a&#62;&#60;/li&#62; &#60;/ul&#62; &#60;/li&#62; &#60;li&#62;&#60;a href="#"&#62;故事背景&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href="#"&#62;职业介绍&#60;/a&#62;&#60;/li&#62; &#60;/ul&#62; &#60;/li&#62; &#60;li&#62;&#60;a href="#"&#62;天赋系统&#60;/a&#62;&#60;/li&#62; &#60;/ul&#62; &#60;/div&#62; css代码 因为是仿dnf官方首页导航，所以样式也多少参考了一下它的样式，(图片我也给扣过来了 嘎嘎) .menu{ height:27px; float:left; background:#1d1d1d url(http://ossweb-img.qq.com/images/dnf/web200812/box_bg1.gif) repeat; border:2px [...]]]></description>
			<content:encoded><![CDATA[<p>突然发现将近一个月没写东东了(拜托就是一个月好伐)。<em>飞鱼：额，最近在做月子= =</em><br />
<img class="janblus-preview" src="http://pic.yupoo.com/2-fish/2499881ffc9b/thumb.jpg" alt="jQuery 制作仿DNF首页导航菜单效果" width="100" height="100" /></p>
<h2>jQuery 制作仿DNF首页导航菜单效果</h2>
<p>作者：飞鱼原创<br />
<em>飞鱼: 偶然发现这个东东很实用，就手把手写了个。</em><br />
<a href="http://dnf.qq.com/" target="_blank">DNF首页</a>的那只导航，似乎纯手写的。我这次要写的是用jquery来制作，制作代码非常极其简单，看了就知道怎么做(老鸟可以绕过哈，谁让咱们都是菜鸟 = =)</p>
<h3>最终效果图</h3>
<p>支持N级导航(<em>添加子导航无需另外添加代码</em>)。<br />
<img class="alignnone" src="http://pic.yupoo.com/2-fish/988277bb9406/medium.jpg" alt="" width="500" height="230" /><br />
<span id="more-503"></span></p>
<h3>html代码</h3>
<p>首先当然是html啦，代码如下，没有什么技术含量，</p>
<pre><code>&lt;div class="menu" &gt;
    &lt;ul&gt;
      &lt;li&gt;
        &lt;a href="#"&gt;游戏介绍&lt;/a&gt;
        &lt;ul&gt;
          &lt;li&gt;&lt;a href="#"&gt;升级体验&lt;/a&gt;&lt;/li&gt;
          &lt;li class="sub"&gt;
            &lt;a href="#"&gt;游戏2&lt;/a&gt;
            &lt;ul&gt;
              &lt;li&gt;&lt;a href="#"&gt;天赋系统&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;升级体验&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
          &lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;故事背景&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#"&gt;职业介绍&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;天赋系统&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;</code></pre>
<h3>css代码</h3>
<p>因为是仿dnf官方首页导航，所以样式也多少参考了一下它的样式，(<em>图片我也给扣过来了 嘎嘎</em>)</p>
<pre><code>.menu{
  height:27px;
  float:left;
  background:#1d1d1d url(http://ossweb-img.qq.com/images/dnf/web200812/box_bg1.gif) repeat;
  border:2px solid #000;
}
.menu ul{
    border:1px solid #3f3f37;
    height:25px;
    float:left;
}
.menu li{
  float:left;
  position:relative;
  text-align:center;
  width:70px;
  background:url(http://ossweb-img.qq.com/images/dnf/web200812/img.gif) no-repeat -480px 9px;
}
.menu li .sub{
  background:url(http://ossweb-img.qq.com/images/dnf/web200812/img.gif) no-repeat -420px 9px;
}
.menu li a{
  color:#b29056;
  display:block;
  height:25px;
  line-height:25px;
}
  .menu li a:hover{
    color:#fff;
    text-decoration:none;
  }
  .menu li ul{
    position:absolute;
    top:25px;
    left:-1px;
    display:none;
    width:68px;
    height:auto;
    float:none;
    border-bottom:none;
    background:#1d1d1d url(http://ossweb-img.qq.com/images/dnf/web200812/box_bg1.gif) repeat;
  }
  .menu li ul a{
    display:block;
    height:25px;
    line-height:25px;
  }
    .menu li ul a:hover{
      background:#070707 url(http://ossweb-img.qq.com/images/dnf/web200812/r_linkbg.gif) repeat;
    }
  .menu li ul li{
    position:relative;
    width:68px;
    border-bottom:1px solid #3f3f37;
    background:none;
  }
  .menu li li ul{
    position:absolute;
    top:-1px;
    left:68px;
  }</code></pre>
<h3>js代码</h3>
<p>这个代码，可以说是相当滴简单，只用了一只语法(.hover)。<br />
说明一下代码的用处细节：(菜鸟专用，老鸟请跨过去 = =)</p>
<pre><code>$(document).ready(function(){
  $('.menu li').hover(  //给menu 下的所有li 添加 hover 动作
    function () {   //鼠标在li 上时让 li 下的ul 显示出来
      $(this).children('ul:first').css('display', 'block');
    },
    function () {  //鼠标在离开li 上时让 li 下的ul 隐藏掉
      $(this).children('ul:first').css('display', 'none');
    }
  );
});</code></pre>
<p>上面代码中我用:first 来只取第一个来提高效率(不知道我这样做对不对，感觉上应该是对的 &#8211; -)。</p>
<p>PS：代码演示，因为最近用的都不是自个儿的电脑，FTP上不去，就委曲下自己 尝试一下呢，效果还是不错的。</p>
<p>PS2：可以在这基础上增加其他功能：<em>比如鼠标离开后，过半秒中导航才消失</em>，这个需要用到setTimeout 函数来解决。有空我写个。^_^</p>
<h2  class="related_post_title">您可能还对这些日志感兴趣</h2><ul class="related_post"><li><a href="http://qilei.org/201105/the-closure-alike-javascript-platform/" title="闭包式 js架构 前端书写心得(上)">闭包式 js架构 前端书写心得(上)</a></li><li><a href="http://qilei.org/200903/jquery-for-tab-change-effect/" title="菜鸟级: 标签切换效果 &#8211; JQuery实现">菜鸟级: 标签切换效果 &#8211; JQuery实现</a></li><li><a href="http://qilei.org/200903/jquery-extend-scroll/" title="滚动新闻 &#8211; jquery 扩展插件">滚动新闻 &#8211; jquery 扩展插件</a></li><li><a href="http://qilei.org/201101/ternary-tip-for-javascript/" title=" 三元运算符 使用小技巧一则 &#8211; javascript"> 三元运算符 使用小技巧一则 &#8211; javascript</a></li><li><a href="http://qilei.org/201009/jquery-plugin-of-lazyhover/" title="神经特长 &#8211; lazy hover  延迟激活jquery 插件">神经特长 &#8211; lazy hover  延迟激活jquery 插件</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://qilei.org/200907/jquery-navbar/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>乱翻乱教-编号004-用photoshop制作绚丽的星球</title>
		<link>http://qilei.org/200906/making-a-planet-by-photoshop/</link>
		<comments>http://qilei.org/200906/making-a-planet-by-photoshop/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 04:31:39 +0000</pubDate>
		<dc:creator>飞鱼</dc:creator>
				<category><![CDATA[乱翻乱教]]></category>
		<category><![CDATA[photoshop]]></category>

		<guid isPermaLink="false">http://www.qilei.org/?p=481</guid>
		<description><![CDATA[用photoshop制作一个星球 作者：Greg Martin 制作工具：Adobe Photoshop 原文地址：猛击此链接 (英文强悍的可以参考原文) 飞鱼: 偶然发现这个东东非常绚丽，就狠下心来把它啃下来分享大伙。 由于笔者用的是photoshop7的跟我现在的cs3相去甚远，于是我就简单看了一下原文，做了一下，然后自己整理出这个教程。步骤相当简单，但意义深远，亲手做过一遍才能领会。 最终效果 步骤1：绘制背景 首先当然是新建一个600*500左右的文件。填充背景为黑色，新建一层“星球”，在场景中绘制一个白色正圆。如下图： 飞鱼：可能你会纳闷为什么要画个白色的？继续往下看 新建一层“光照”，在“光照”层上右键- 创建剪贴蒙版，然后用选区工具圈出如下图的选区(当然你可以不圈，不影响)，使用渐变工具在“光照”层拉出如下图的渐变，渐变颜色为“#774c2f”~“#ffffff”。效果如下： 这时候大概有个星球的阴影啦^_^，那么继续。由于发现这个“阴影”渐变太平滑，看着有点假，于是加了如下步骤来解决这个问题。选择“光照”层，自由变换(ctrl+T)，在图上右键，选择变形，将中间部分的黑色阴影稍微往上扯一下，这样就比先前好多了。如下图： 好的看下效果图，嗯~这还是不像星球 =。= 不急，后面还有 您可能还对这些日志感兴趣乱翻乱教 &#8211; iOS5 通知栏背景制作乱翻乱教 &#8211; 制作可爱的小鸟勃起图标乱翻乱教 – 小鸡快跑 &#8211; Photoshop 超级可爱小鸡设计部培训第二课乱翻乱教-Photoshop-剪贴蒙版妙用]]></description>
			<content:encoded><![CDATA[<p><img class="janblus-preview" src="http://pic.yupoo.com/2-fish/0095378feba4/medium.jpg" alt="制作简单绚丽的星球" width="100" height="100" /></p>
<h2>用photoshop制作一个星球</h2>
<p>作者：<a title="check to see Greg Martin’s site" href="http://gallery.artofgregmartin.com/" target="_blank">Greg Martin </a><br />
制作工具：Adobe Photoshop<br />
原文地址：<a title="making_a_planet" href="http://gallery.artofgregmartin.com/tuts_arts/making_a_planet.html" target="_blank">猛击此链接</a> (英文强悍的可以参考原文)<br />
<em>飞鱼: 偶然发现这个东东非常绚丽，就狠下心来把它啃下来分享大伙。</em><br />
由于笔者用的是photoshop7的跟我现在的cs3相去甚远，于是我就简单看了一下原文，做了一下，然后自己整理出这个教程。步骤相当简单，但意义深远，亲手做过一遍才能领会。</p>
<h3>最终效果</h3>
<p><img alt="" src="http://pic.yupoo.com/2-fish/7248178feba6/medium.jpg" class="alignnone" width="500" height="417" /></p>
<p><span id="more-481"></span></p>
<h3>步骤1：绘制背景</h3>
<p>首先当然是新建一个600*500左右的文件。填充背景为黑色，新建一层“星球”，在场景中绘制一个白色正圆。如下图：<br />
<img alt="" src="http://pic.yupoo.com/2-fish/0755978fef1c/medium.jpg" class="alignnone" width="500" height="417" /><br />
<em>飞鱼：可能你会纳闷为什么要画个白色的？继续往下看</em><br />
新建一层“光照”，在“光照”层上右键- <a href="http://www.qilei.org/200902/photoshop-clip-mask-tip/" title="点击查看 剪贴蒙版 的使用方法">创建剪贴蒙版</a>，然后用选区工具圈出如下图的选区(<em>当然你可以不圈，不影响</em>)，使用渐变工具在“光照”层拉出如下图的渐变，渐变颜色为“#774c2f”~“#ffffff”。效果如下：<br />
<img alt="" src="http://pic.yupoo.com/2-fish/4762278ff0ef/medium.jpg" class="alignnone" width="500" height="417" /><br />
这时候大概有个星球的阴影啦^_^，那么继续。<em>由于发现这个“阴影”渐变太平滑，看着有点假，于是加了如下步骤来解决这个问题。</em>选择“光照”层，自由变换(ctrl+T)，在图上右键，选择变形，将中间部分的黑色阴影稍微往上扯一下，这样就比先前好多了。如下图：<br />
<img alt="" src="http://pic.yupoo.com/2-fish/1389478ff278/medium.jpg" class="alignnone" width="500" height="417" /><br />
好的看下效果图，嗯~这还是不像星球 =。=  <em>不急，后面还有</em><br />
<img alt="" src="http://pic.yupoo.com/2-fish/9350778ff278/medium.jpg" class="alignnone" width="500" height="417" /></p>
<h2  class="related_post_title">您可能还对这些日志感兴趣</h2><ul class="related_post"><li><a href="http://qilei.org/201110/make-the-ios-5-notification-center-bg-with-photoshop/" title="乱翻乱教 &#8211; iOS5 通知栏背景制作">乱翻乱教 &#8211; iOS5 通知栏背景制作</a></li><li><a href="http://qilei.org/201103/create-a-cute-bird-icon-in-photoshop/" title="乱翻乱教 &#8211; 制作可爱的小鸟勃起图标">乱翻乱教 &#8211; 制作可爱的小鸟勃起图标</a></li><li><a href="http://qilei.org/201003/photoshop-made-an-cute-chick/" title="乱翻乱教 – 小鸡快跑 &#8211;  Photoshop 超级可爱小鸡">乱翻乱教 – 小鸡快跑 &#8211;  Photoshop 超级可爱小鸡</a></li><li><a href="http://qilei.org/200903/web-design-training-class-two/" title="设计部培训第二课">设计部培训第二课</a></li><li><a href="http://qilei.org/200902/photoshop-clip-mask-tip/" title="乱翻乱教-Photoshop-剪贴蒙版妙用">乱翻乱教-Photoshop-剪贴蒙版妙用</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://qilei.org/200906/making-a-planet-by-photoshop/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>乱翻乱教-使用JS输出HTML串最快的方法</title>
		<link>http://qilei.org/200906/fastest-way-to-build-an-html-string/</link>
		<comments>http://qilei.org/200906/fastest-way-to-build-an-html-string/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 04:11:40 +0000</pubDate>
		<dc:creator>飞鱼</dc:creator>
				<category><![CDATA[乱翻乱教]]></category>
		<category><![CDATA[代码浅谈]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.qilei.org/?p=468</guid>
		<description><![CDATA[无数次滴被丫头说“没更新”,最近刚答辩完，整个人像吃了蓝色小药丸一样，不想动不=。= 最近开始狂啃JS，因为上个月去淘宝UED撞墙了，因为那边的“叔叔”们，一直都强调技术，特别是JS @_@ 。然后就被派遣回来了。 飞鱼：如果你跟我有同样遭遇的话，那么，一起学JS吧 嘎嘎··· 得···切如正题。 =========== 华丽的分割线 ============= 这文章是james.padolsey那看得，觉得挺有启发的，于是就翻译过来给大伙看看。 使用JS输出HTML串最快的方法 作者：James Padolsey 原文地址：猛击此链接(英文强悍的可以参考原文) 当需要将一大堆数组转换成固定格式的html，以下有几种实现方法。 注意：当然你可以直接手动将数组转换成html，如果那样的话，你就很有前途了^_^ 方法一，拼接法 这种写法虽说不是最慢的，但是用的人却是最多的。额，貌似我以前都这么用 var arr = ['item 1', 'item 2', 'item 3', ...], list = ''; for (var i = 0, l = arr.length; i &#60; l; i++) { list += '&#60;li&#62;' + arr[i] + '&#60;/li&#62;'; } list = [...]]]></description>
			<content:encoded><![CDATA[<p>无数次滴被<a href="http://7-leaf.cn/" target="_blank">丫头</a>说“没更新”,最近刚答辩完，整个人像吃了蓝色小药丸一样，不想动不=。=</p>
<p>最近开始狂啃JS，因为上个月去淘宝UED撞墙了，因为那边的“叔叔”们，一直都强调技术，特别是JS @_@ 。然后就被派遣回来了。</p>
<p><em>飞鱼：如果你跟我有同样遭遇的话，那么，一起学JS吧 嘎嘎···</em></p>
<p>得···切如正题。<br />
=========== 华丽的分割线 =============</p>
<p>这文章是<a href="http://james.padolsey.com/javascript/fastest-way-to-build-an-html-string/" target="_blank">james.padolsey</a>那看得，觉得挺有启发的，于是就翻译过来给大伙看看。</p>
<p><img class="janblus-preview" src="http://www.qilei.org/img/sorts/js.gif" alt="" width="100" height="100" /></p>
<h2>使用JS输出HTML串最快的方法</h2>
<p>作者：<a title="James Padolsey" href="http://james.padolsey.com/about/" target="_blank">James Padolsey</a><br />
原文地址：<a title="Fastest way to build an HTML string" href="http://james.padolsey.com/javascript/fastest-way-to-build-an-html-string/" target="_blank">猛击此链接</a>(英文强悍的可以参考原文)<br />
当需要将一大堆数组转换成固定格式的html，以下有几种实现方法。<br />
<em>注意：当然你可以直接手动将数组转换成html，如果那样的话，你就很有前途了^_^</em><br />
<span id="more-468"></span></p>
<h3>方法一，拼接法</h3>
<p>这种写法虽说不是最慢的，但是用的人却是最多的。<em>额，貌似我以前都这么用</em></p>
<p><code></p>
<pre class="javascript">var arr = ['item 1', 'item 2', 'item 3', ...],
    list = '';

for (var i = 0, l = arr.length; i &lt; l; i++) {
    list += '&lt;li&gt;' + arr[i] + '&lt;/li&gt;';
}

list = '&lt;ul&gt;' + list + '&lt;/ul&gt;';</pre>
<p></code></p>
<p><em>就是使用for循环将每个数组使用字符串拼接起来的意思。</em></p>
<p>以后千万不要用这种啦，<strong>又丑又慢</strong>=。=</p>
<h3>方法二，堆栈法(我起的名，=。=)</h3>
<p><code></p>
<pre class="javascript">var arr = ['item 1', 'item 2', 'item 3', ...],
    list = [];

for (var i = 0, l = arr.length; i &lt; l; i++) {
    list[list.length] = '&lt;li&gt;' + arr[i] + '&lt;/li&gt;';
}

list = '&lt;ul&gt;' + list.join('') + '&lt;/ul&gt;';</pre>
<p></code></p>
<p>稍微比拼接法快些，但还不够完美。<em>这次的代码使用了</em><a title="点击查看join方法" href="http://www.w3school.com.cn/js/jsref_join.asp" target="_blank"><em>.join 方法</em></a><em> 比上一种稍微高级了点，但是还是有万恶的for循环 </em></p>
<h3>方法三，圣杯(应该是说最佳办法吧)</h3>
<p><code></p>
<pre class="javascript">var arr = ['item 1', 'item 2', 'item 3', ...];

var list = '&lt;ul&gt;&lt;li&gt;' + arr.join('&lt;/li&gt;&lt;li&gt;') + '&lt;/li&gt;&lt;/ul&gt;';</pre>
<p></code><br />
看过后面的测试结果，你就会相信我说的，这是最快的方法。当然你也可以最近去测试一下。<br />
<em>作者很有自信，说这方法是最快速的。因为使用了join方法并且去掉了for循环，代码相当简洁，相比我以前老用的方法一，不禁大叫：oh 屎~~</em></p>
<h3>浏览器测试</h3>
<p><strong>有图有真相</strong><br />
<img alt="" src="http://pic.yupoo.com/2-fish/98255786c9c0/medium.jpg" class="alignnone" width="500" height="184" /><br />
原文我就不翻译了，我的个人水平有限，从上图可以看出，大部分浏览器在处理以上代码时，第三种方法相对最快，但是chrome浏览器优点变态，估计是他独有的js 引擎在起作用吧。果然BT。</p>
<p>======补充======</p>
<p>原文下面评论提出了些问题：说如果数组里么有东西的话就只输出UL会有问题，说要使用三元式来解决。</p>
<h2  class="related_post_title">您可能还对这些日志感兴趣</h2><ul class="related_post"><li><a href="http://qilei.org/201105/the-closure-alike-javascript-platform/" title="闭包式 js架构 前端书写心得(上)">闭包式 js架构 前端书写心得(上)</a></li><li><a href="http://qilei.org/201006/lazy-load-about-mall-of-taobao-index-page/" title="一知半解 &#8211; 分析淘宝商城首页的 lazy load 功能">一知半解 &#8211; 分析淘宝商城首页的 lazy load 功能</a></li><li><a href="http://qilei.org/200910/cross-scripting/" title="js跨域问题">js跨域问题</a></li><li><a href="http://qilei.org/200910/javascript-judge-if-chinese/" title="判断输入的字符是否为中文">判断输入的字符是否为中文</a></li><li><a href="http://qilei.org/200907/jquery-navbar/" title="乱翻乱教- jQuery 制作N级导航菜单">乱翻乱教- jQuery 制作N级导航菜单</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://qilei.org/200906/fastest-way-to-build-an-html-string/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

