<?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; Javascript</title>
	<atom:link href="http://ray.imiddle.net/category/tech/javascript-tech/feed/" rel="self" type="application/rss+xml" />
	<link>http://ray.imiddle.net</link>
	<description>狂人的成长史</description>
	<lastBuildDate>Thu, 17 Nov 2011 01:01:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>jQuery fadeIn() &amp; fadeOut(): Problems in Internet Explorer</title>
		<link>http://ray.imiddle.net/2011/03/jquery-fadein-fadeout-problems-in-internet-explorer/</link>
		<comments>http://ray.imiddle.net/2011/03/jquery-fadein-fadeout-problems-in-internet-explorer/#comments</comments>
		<pubDate>Wed, 02 Mar 2011 03:44:22 +0000</pubDate>
		<dc:creator>Ray</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://ray.imiddle.net/?p=663</guid>
		<description><![CDATA[I’ve noticed that when I use the jQuery .fadeIn() or .fade­Out() method I see ugly pix­e­lated text in Inter­net Explorer after the ani­ma­tion has com­pleted. This seems to be related to an issue with an IE spe­cific style fil­ter called clearType. To solve the prob­lem, you need to remove the clearType fil­ter after your jQuery [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve noticed that when I use the jQuery <strong>.fadeIn()</strong> or <strong>.fade­Out()</strong> method I see ugly pix­e­lated text in Inter­net Explorer after the  ani­ma­tion has com­pleted. This seems to be related to an issue with an  IE spe­cific style fil­ter called <a rel="nofollow" href="http://www.microsoft.com/typography/cleartype/tuner/tune.aspx">clearType</a>.  To solve the prob­lem, you need to remove the clearType fil­ter after  your jQuery ele­ment has faded in. There are a few ways to do this:</p>
<p><a href="http://www.kevinleary.net/wp-samples/ie-fade-problems.php">Pre­view / Sam­ple / Demonstration</a></p>
<h3>3 Ways to Fix The Issue</h3>
<h4>1. Add a Back­ground Color</h4>
<p>Set a back­ground color with CSS on the ele­ment that is fad­ing in or out. This is the most basic way to solve the problem.</p>
<h4>2. Remove the clearType Filter</h4>
<p>After fad­ing in an ele­ment you can add this sim­ple call­back func­tion to fix the bug.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#fadingElement'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeIn</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">2000</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'filter'</span><span style="color: #339933;">,</span><span style="color: #3366CC;">''</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></td></tr></table></div>

<h4>3. Use a Cus­tom fadeIn/Out Method</h4>
<p>This method serve’s as a replace­ment for the built-in <strong>fadeIn()</strong> &amp; <strong>fade­Out()</strong> meth­ods for jQuery.<br />
After you add this method to your JavaScript, change your <strong>‘fade­Out’</strong> to <strong>‘cus­tom­Fade­Out’</strong> and your <strong>‘fadeIn’</strong> to <strong>‘cus­tom­FadeIn’</strong>. See a sam­ple of this method on the <a href="http://www.kevinleary.net/wp-samples/ie-fade-problems.php">demo page</a>. <strong>Thanks to Ben­jamin Novakovic for writ­ing this jQuery plugin</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	$.<span style="color: #660066;">fn</span>.<span style="color: #660066;">customFadeIn</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>speed<span style="color: #339933;">,</span> callback<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeIn</span><span style="color: #009900;">&#40;</span>speed<span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>jQuery.<span style="color: #660066;">browser</span>.<span style="color: #660066;">msie</span><span style="color: #009900;">&#41;</span>
				$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">get</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">style</span>.<span style="color: #660066;">removeAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'filter'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>callback <span style="color: #339933;">!=</span> undefined<span style="color: #009900;">&#41;</span>
				callback<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
	$.<span style="color: #660066;">fn</span>.<span style="color: #660066;">customFadeOut</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>speed<span style="color: #339933;">,</span> callback<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeOut</span><span style="color: #009900;">&#40;</span>speed<span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>jQuery.<span style="color: #660066;">browser</span>.<span style="color: #660066;">msie</span><span style="color: #009900;">&#41;</span>
				$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">get</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">style</span>.<span style="color: #660066;">removeAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'filter'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>callback <span style="color: #339933;">!=</span> undefined<span style="color: #009900;">&#41;</span>
				callback<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>jQuery<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<h3>Ugly Tran­si­tions on Ani­mated Elements</h3>
<p>When you ani­mate any­thing in IE there  is an ugly tran­si­tion effect that occurs before the fix is applied.  There’s no way to pre­vent or fix clearType while the fade occurs. A  work-around is to fade some­thing else, like a &lt;div&gt; on top that  fades in, rather than your text content.</p>
<h3>Advanced Sce­nar­ios</h3>
<p>There are more IE related issues that peo­ple have men­tioned see­ing in advanced setups as well.</p>
<blockquote><p>I found that the answer  was to set the z-index. I have a stack of absolutely posi­tioned divs  and wanted to fade between them. The only way I could get IE8  to han­dle the fades nicely was to set the z-index of the ele­ment to  be faded in higher than the ele­ment to be faded out i.e.:</p></blockquote>
<p>A demon­stra­tion for Al’s fix has been added to the <a href="http://www.kevinleary.net/wp-samples/ie-fade-problems.php">demo page</a></p>
<p>原文出处：http://www.kevinleary.net/jquery-fadein-fadeout-problems-in-internet-explorer/</p>
]]></content:encoded>
			<wfw:commentRss>http://ray.imiddle.net/2011/03/jquery-fadein-fadeout-problems-in-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用jQuery创建Tooltips</title>
		<link>http://ray.imiddle.net/2009/04/build-a-better-tooltip-with-jquery-awesomeness/</link>
		<comments>http://ray.imiddle.net/2009/04/build-a-better-tooltip-with-jquery-awesomeness/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 04:26:58 +0000</pubDate>
		<dc:creator>Ray</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[网站设计]]></category>

		<guid isPermaLink="false">http://ray.imiddle.net/?p=550</guid>
		<description><![CDATA[NetTuts最新教材： Build a Better Tooltip with jQuery Awesomeness 效果如下：]]></description>
			<content:encoded><![CDATA[<p>NetTuts最新教材：</p>
<p><a href="http://net.tutsplus.com/tutorials/javascript-ajax/build-a-better-tooltip-with-jquery-awesomeness/" target="_blank">Build a Better Tooltip with jQuery Awesomeness</a></p>
<p><strong>效果如下：</strong></p>
<p><img class="alignnone size-full wp-image-552" title="initial-design" src="http://ray.imiddle.net/wp-content/uploads/2009/04/initial-design.gif" alt="initial-design" width="600" height="482" /></p>
]]></content:encoded>
			<wfw:commentRss>http://ray.imiddle.net/2009/04/build-a-better-tooltip-with-jquery-awesomeness/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>25个下拉菜单导航脚本</title>
		<link>http://ray.imiddle.net/2009/04/5%e4%b8%aa%e4%bc%98%e7%a7%80%e7%9a%84%e4%b8%8b%e6%8b%89%e8%8f%9c%e5%8d%95%e5%af%bc%e8%88%aa%e8%84%9a%e6%9c%ac/</link>
		<comments>http://ray.imiddle.net/2009/04/5%e4%b8%aa%e4%bc%98%e7%a7%80%e7%9a%84%e4%b8%8b%e6%8b%89%e8%8f%9c%e5%8d%95%e5%af%bc%e8%88%aa%e8%84%9a%e6%9c%ac/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 14:29:04 +0000</pubDate>
		<dc:creator>Ray</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[网站设计]]></category>
		<category><![CDATA[menu]]></category>

		<guid isPermaLink="false">http://ray.imiddle.net/?p=546</guid>
		<description><![CDATA[这篇博客介绍了25个关于下拉菜单的脚本，有空学习研究一下： http://vandelaydesign.com/blog/tools/dropdown-navigation-menus/]]></description>
			<content:encoded><![CDATA[<p>这篇博客介绍了25个关于下拉菜单的脚本，有空学习研究一下：</p>
<p><a href="http://vandelaydesign.com/blog/tools/dropdown-navigation-menus/">http://vandelaydesign.com/blog/tools/dropdown-navigation-menus/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ray.imiddle.net/2009/04/5%e4%b8%aa%e4%bc%98%e7%a7%80%e7%9a%84%e4%b8%8b%e6%8b%89%e8%8f%9c%e5%8d%95%e5%af%bc%e8%88%aa%e8%84%9a%e6%9c%ac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom Form</title>
		<link>http://ray.imiddle.net/2009/03/custom-form/</link>
		<comments>http://ray.imiddle.net/2009/03/custom-form/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 13:53:34 +0000</pubDate>
		<dc:creator>Ray</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Customr Form]]></category>
		<category><![CDATA[jNice]]></category>
		<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://ray.imiddle.net/?p=540</guid>
		<description><![CDATA[是不是觉得标准的HTML的Form看上去不是很舒服，今天看到一个Mootools做的Custom Form 非常的不错。http://customformelements.net/demopage.php。当然也去尝试找找是否有jQuery的类似控件，只找到了jNice Form (http://plugins.jquery.com/project/jNice)，不过和Mootools那套CSS的设计比起来可能还是差了一点。 挺迷惑的一点就是为何有这么多的Js的Framework，何时才能只需要选择一种就可以有所以的解决方案。]]></description>
			<content:encoded><![CDATA[<p>是不是觉得标准的HTML的Form看上去不是很舒服，今天看到一个Mootools做的Custom Form 非常的不错。<a href="http://customformelements.net/demopage.php">http://customformelements.net/demopage.php</a>。当然也去尝试找找是否有jQuery的类似控件，只找到了jNice Form (<a href="http://plugins.jquery.com/project/jNice">http://plugins.jquery.com/project/jNice</a>)，不过和Mootools那套CSS的设计比起来可能还是差了一点。</p>
<p>挺迷惑的一点就是为何有这么多的Js的Framework，何时才能只需要选择一种就可以有所以的解决方案。</p>
]]></content:encoded>
			<wfw:commentRss>http://ray.imiddle.net/2009/03/custom-form/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Tag Suggestion</title>
		<link>http://ray.imiddle.net/2009/03/jquery-tag-suggestion/</link>
		<comments>http://ray.imiddle.net/2009/03/jquery-tag-suggestion/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 07:57:18 +0000</pubDate>
		<dc:creator>Ray</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[hint]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Tag]]></category>

		<guid isPermaLink="false">http://ray.imiddle.net/?p=536</guid>
		<description><![CDATA[这个jQuery的插件不错，主要实现的类似Delicious的标签推荐的功能，个人觉得这样的功能定义比原来这个jTagging使用起来更方便。 有兴趣可访问以下地址：http://remysharp.com/2007/12/28/jquery-tag-suggestion/ 同时在此人博客中还找到了一个Text Box Hint的jQuery插件。其实前几天一直在找这个功能的插件，一直没找到。看来搜索的关键字也是一门学问啊。]]></description>
			<content:encoded><![CDATA[<p>这个jQuery的插件不错，主要实现的类似Delicious的标签推荐的功能，个人觉得这样的功能定义比原来这个<a href="http://www.alcoholwang.cn/jquery/jTaggingDemo.htm" target="_blank">jTagging</a>使用起来更方便。</p>
<p>有兴趣可访问以下地址：<a href="http://remysharp.com/2007/12/28/jquery-tag-suggestion/" target="_blank">http://remysharp.com/2007/12/28/jquery-tag-suggestion/</a></p>
<p>同时在此人博客中还找到了一个<a href="http://remysharp.com/wp-content/uploads/2007/01/input_hint.html">Text Box Hint</a>的jQuery插件。其实前几天一直在找这个功能的插件，一直没找到。看来搜索的关键字也是一门学问啊。</p>
]]></content:encoded>
			<wfw:commentRss>http://ray.imiddle.net/2009/03/jquery-tag-suggestion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用PHP来动态生成CSS/JS</title>
		<link>http://ray.imiddle.net/2009/03/generate-css-js-with-php/</link>
		<comments>http://ray.imiddle.net/2009/03/generate-css-js-with-php/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 07:37:17 +0000</pubDate>
		<dc:creator>Ray</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://ray.imiddle.net/?p=531</guid>
		<description><![CDATA[对于一个网站其实很多时候都需要对动态的生成所使用的CSS/JS，其中主要是CSS/JS中所包含的一些URL，当然这些URL信息也可以使用相对路径来实现，但在一些情况下使用相对路径并不能解决这个难题。 按照Yahoo YSlow（http://developer.yahoo.com/yslow/help）的建议1，就是必须减少HTTP的请求，当然手动把所有代码合并是一种方法，但这种方法反而会带来两个更糟的问题，把所有CSS/JS都合并到一个文件中，当然不利于代码的阅读和管理。如果使用jQuery，因为不同的Plugin都是会放在不同的js文件中，和Yahoo YSlow的建议有较大的冲突，当然是用动态语言来合并这些js文件应该是个不错的idea。合并过程中还可以使用jsmin.php来进行js文件的压缩。 如想使用这个技术可参考以下的几篇说明： Automatic merging and versioning of CSS/JS files with PHP Adding JSMin to my CSS/JS merging script (这篇写了一般，其实有更好的方法来做) GZip files with .htaccess and PHP (这篇是说明如何对输出的PHP内容进行GZip的压缩，因为动态文件无法使用Apache 的 GZIP的库来压缩，所以为了节省传递数据必须在PHP中把输出内容进行压缩)。]]></description>
			<content:encoded><![CDATA[<p>对于一个网站其实很多时候都需要对动态的生成所使用的CSS/JS，其中主要是CSS/JS中所包含的一些URL，当然这些URL信息也可以使用相对路径来实现，但在一些情况下使用相对路径并不能解决这个难题。</p>
<p>按照Yahoo YSlow（<a href="http://developer.yahoo.com/yslow/help">http://developer.yahoo.com/yslow/help</a>）的建议1，就是必须减少HTTP的请求，当然手动把所有代码合并是一种方法，但这种方法反而会带来两个更糟的问题，把所有CSS/JS都合并到一个文件中，当然不利于代码的阅读和管理。如果使用jQuery，因为不同的Plugin都是会放在不同的js文件中，和Yahoo YSlow的建议有较大的冲突，当然是用动态语言来合并这些js文件应该是个不错的idea。合并过程中还可以使用jsmin.php来进行js文件的压缩。</p>
<p>如想使用这个技术可参考以下的几篇说明：</p>
<ol>
<li><a href="http://www.ejeliot.com/blog/72" target="_blank">Automatic merging and versioning of CSS/JS files with PHP</a></li>
<li><a href="http://www.ejeliot.com/blog/73">Adding JSMin to my CSS/JS merging script</a> (这篇写了一般，其实有更好的方法来做<a href="http://www.ejeliot.com/blog/73">)</a></li>
<li><a href="http://www.lateralcode.com/2008/12/gzip-files-with-htaccess-and-php/" target="_blank">GZip files with .htaccess and PHP</a> (这篇是说明如何对输出的PHP内容进行GZip的压缩，因为动态文件无法使用Apache 的 GZIP的库来压缩，所以为了节省传递数据必须在PHP中把输出内容进行压缩)。</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://ray.imiddle.net/2009/03/generate-css-js-with-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>JQuery Plugin的教程</title>
		<link>http://ray.imiddle.net/2009/02/jquery-plugin%e7%9a%84%e6%95%99%e7%a8%8b/</link>
		<comments>http://ray.imiddle.net/2009/02/jquery-plugin%e7%9a%84%e6%95%99%e7%a8%8b/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 09:04:00 +0000</pubDate>
		<dc:creator>Ray</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://ray.imiddle.net/?p=522</guid>
		<description><![CDATA[今天看到一篇关于JQuery Plugin的教程写的非常不错。其实JQuery中最难的可能就是这部分，也没啥文档教程讲了非常的清楚。不过这篇教程讲的挺深入浅出的，例子也比较简单。 如果你有兴趣，可以去读一下：http://net.tutsplus.com/videos/screencasts/you-still-cant-create-a-jquery-plugin/]]></description>
			<content:encoded><![CDATA[<p>今天看到一篇关于JQuery Plugin的教程写的非常不错。其实JQuery中最难的可能就是这部分，也没啥文档教程讲了非常的清楚。不过这篇教程讲的挺深入浅出的，例子也比较简单。</p>
<p>如果你有兴趣，可以去读一下：<a href="http://net.tutsplus.com/videos/screencasts/you-still-cant-create-a-jquery-plugin/">http://net.tutsplus.com/videos/screencasts/you-still-cant-create-a-jquery-plugin/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ray.imiddle.net/2009/02/jquery-plugin%e7%9a%84%e6%95%99%e7%a8%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用JQuery来实现MooTools的首页菜单效果</title>
		<link>http://ray.imiddle.net/2008/08/how-to-create-a-mootools-homepage-inspired-navigation-effect-using-jquery/</link>
		<comments>http://ray.imiddle.net/2008/08/how-to-create-a-mootools-homepage-inspired-navigation-effect-using-jquery/#comments</comments>
		<pubDate>Tue, 26 Aug 2008 06:27:32 +0000</pubDate>
		<dc:creator>Ray</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[网站设计]]></category>
		<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://ray.imiddle.net/?p=485</guid>
		<description><![CDATA[看到一篇用JQuery做的动画效果，现在才发现原来Flash最大对手不是Silverlight，其实是Javascript。 现在一次次看到Safari和Firefox的比拼，一次次看到最终促使js运行性能的提速的消息，不得不考虑这样的问题，实现这类简单的效果有必要使用Flash，毕竟js在下载文件大小上是绝对占有优势的。 此效果的链接地址.]]></description>
			<content:encoded><![CDATA[<p>看到一篇用JQuery做的动画效果，现在才发现原来Flash最大对手不是Silverlight，其实是Javascript。<br />
现在一次次看到Safari和Firefox的比拼，一次次看到最终促使js运行性能的提速的消息，不得不考虑这样的问题，实现这类简单的效果有必要使用Flash，毕竟js在下载文件大小上是绝对占有优势的。</p>
<p>此效果的<a href="http://nettuts.com/html-css-techniques/how-to-create-a-mootools-homepage-inspired-navigation-effect-using-jquery/">链接地址</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ray.imiddle.net/2008/08/how-to-create-a-mootools-homepage-inspired-navigation-effect-using-jquery/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>jQuery获得Radio Button的选择</title>
		<link>http://ray.imiddle.net/2008/06/get-the-choice-of-the-radio-button-with-jquery/</link>
		<comments>http://ray.imiddle.net/2008/06/get-the-choice-of-the-radio-button-with-jquery/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 09:40:20 +0000</pubDate>
		<dc:creator>Ray</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JQuery]]></category>

		<guid isPermaLink="false">http://ray.imiddle.net/?p=455</guid>
		<description><![CDATA[JQuery 真的非常的强大，个人觉得主要功能还必须归结到它的Selector的设计上，非常的灵活，完完全全可以访问页面的任何内容。 今天又再次小试牛刀，看看如何使用简单的JS语句来获得Radio Button的选择情况。 HTML 代码如下： &#60;inputtype=“radio” name=“type_choose” value=“1&#8243; &#62; Type1 &#60;input type=“radio” name=“type_choose” value=“2&#8243; checked=checked&#62; Type 2 jQuery 代码如下： var type = 0; $("input[name='type_choose]").each(function (index){ if (this.checked){ type = this.value; } }); 我把radio button 的名称定义成了type_choose，jQuery的先定位到所有input标签，然后过滤只留下name等于type_choose的标签，其实也可以使用$(“input[type='radio']“)来找到radio button，不过这种缺点就是页面上只有一个radio button group，所以可能还是使用name更好些。 最后使用each函数来遍历找到的所有radio button，函数中的this就是radio button，如何他的checked属性为真，则表示用户选择了这个radio button，把这个radio button的值保存在type变量中。 整个算法还是挺紧凑简单的。]]></description>
			<content:encoded><![CDATA[<p>JQuery 真的非常的强大，个人觉得主要功能还必须归结到它的Selector的设计上，非常的灵活，完完全全可以访问页面的任何内容。</p>
<p>今天又再次小试牛刀，看看如何使用简单的JS语句来获得Radio Button的选择情况。</p>
<p>HTML 代码如下：</p>
<p>&lt;inputtype=<span class="attribute-value">“radio” </span><span class="attribute-name">name</span>=<span class="attribute-value">“type_choose” </span><span class="attribute-name">value</span>=<span class="attribute-value">“1&#8243; </span>&gt; Type1<br />
&lt;<span class="start-tag">input</span><span class="attribute-name"> type</span>=<span class="attribute-value">“radio” </span><span class="attribute-name">name</span>=<span class="attribute-value">“type_choose” </span><span class="attribute-name">value</span>=<span class="attribute-value">“2&#8243; </span><span class="attribute-name">checked</span>=<span class="attribute-value">checked</span>&gt; Type 2</p>
<p>jQuery 代码如下：</p>
<pre class="javascript" name="code">
var type = 0;
$("input[name='type_choose]").each(function (index){
    if (this.checked){
         type = this.value;
    }
});
</pre>
<p>我把radio button 的名称定义成了type_choose，jQuery的先定位到所有input标签，然后过滤只留下name等于type_choose的标签，其实也可以使用$(“input[type='radio']“)来找到radio button，不过这种缺点就是页面上只有一个radio button group，所以可能还是使用name更好些。</p>
<p>最后使用each函数来遍历找到的所有radio button，函数中的this就是radio button，如何他的checked属性为真，则表示用户选择了这个radio button，把这个radio button的值保存在type变量中。</p>
<p>整个算法还是挺紧凑简单的。</p>
]]></content:encoded>
			<wfw:commentRss>http://ray.imiddle.net/2008/06/get-the-choice-of-the-radio-button-with-jquery/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>使用Javascript来动态创建 script 标记</title>
		<link>http://ray.imiddle.net/2008/04/dynamic-create-script-tag-with-javascript/</link>
		<comments>http://ray.imiddle.net/2008/04/dynamic-create-script-tag-with-javascript/#comments</comments>
		<pubDate>Thu, 17 Apr 2008 03:13:49 +0000</pubDate>
		<dc:creator>Ray</dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://ray.imiddle.net/?p=406</guid>
		<description><![CDATA[var head = document.getElementsByTagName("head").item(0); var script = document.createElement ("script"); script.src = "some_javascript_code.js"; head.appendChild (script); 通过以上代码可以实现动态的javascript代码的载人。]]></description>
			<content:encoded><![CDATA[<pre name="code" class="javascript">
  var head = document.getElementsByTagName("head").item(0);
  var script = document.createElement ("script");
  script.src = "some_javascript_code.js";
  head.appendChild (script);
</pre>
<p>通过以上代码可以实现动态的javascript代码的载人。</p>
]]></content:encoded>
			<wfw:commentRss>http://ray.imiddle.net/2008/04/dynamic-create-script-tag-with-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

