<?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>FV.Zone &#187; jQuery</title>
	<atom:link href="http://fvzone.com/blog/tag/jquery/feed" rel="self" type="application/rss+xml" />
	<link>http://fvzone.com/blog</link>
	<description>生命最快乐时,就是与你分享时!</description>
	<lastBuildDate>Fri, 28 May 2010 16:30:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>JQuery 试用</title>
		<link>http://fvzone.com/blog/jquery-test.fv</link>
		<comments>http://fvzone.com/blog/jquery-test.fv#comments</comments>
		<pubDate>Mon, 11 Jun 2007 08:41:56 +0000</pubDate>
		<dc:creator>Fvart</dc:creator>
				<category><![CDATA[JQuery Ajax]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.raidybor.com/blog/jquery-ajax/jquery-%e8%af%95%e7%94%a8/</guid>
		<description><![CDATA[
一直想学js可是觉得那很难,直到wp 升级到2.2的时候很多介绍提到jquery这个东西,于是我就看了一下,结果才知道是一个JS框架,看完说明以后觉得很好用,而且WP默认也提供了她,我将我以后一直喜欢... ]]></description>
			<content:encoded><![CDATA[<p><img src="/blog/wp-content/uploads/images/icons/jquery.png" alt="JQuery" /><br />
一直想学js可是觉得那很难,直到wp 升级到2.2的时候很多介绍提到jquery这个东西,于是我就看了一下,结果才知道是一个JS框架,看完说明以后觉得很好用,而且WP默认也提供了她,我将我以后一直喜欢的边栏收起与展开效果改成了jquery来实现,不过也遇到很多麻烦,因为不太懂JS的原因吧,现在我Blog有两处用了jquery.<span id="more-65"></span></p>
<p>一是边栏收起与展开,代码如下</p>
<pre class="syntax-highlight:js">
$(document).ready(function(){

/**** 边栏效果开始 ****/
$(&quot;h3&quot;).toggle(function(){
$(this).parents(&quot;.flex&quot;).find(&quot;.fvbox&quot;).hide(&#039;slow&#039;);
},function(){
$(this).parents(&quot;.flex&quot;).find(&quot;.fvbox&quot;).show(&#039;fast&#039;);
});
});// end ready
</pre>
<p>这代码还是jquery中文网站的一位高人给我写的,在此谢谢他了,相信你也看到了很简单的一点点代码,结合我的Blog边栏的写法就可以实现了,</p>
<p>演示效果请看:</p>
<div class="flex">
<h3><a href="#">演示效果A</a></h3>
<div class="fvbox">
<ul>内容一</ul>
</div>
</div>
<div class="flex">
<h3><a href="#">演示效果B</a></h3>
<div class="fvbox">
<ul>内容二</ul>
</div>
</div>
<p>第二个应用是在网页中插入MP3文件,然后让jquery的插件是一个为flash播放器写的插件,有了他就可以很容易的在网页中放MP3了,再也不用写很多没用的代码:</p>
<pre class="syntax-highlight:js">
$(&#039;a[@href$=&quot;mp3&quot;]&#039;).flash(
{ src: &#039;/blog/wp-content/themes/lonely-age/play.swf&#039;, height: 20, width: 200 },
{ version: 7 },
function(htmlOptions) {
$this = $(this);
htmlOptions.flashvars.file = $this.attr(&#039;href&#039;);
$this.before($.fn.flash.transform(htmlOptions));
}
);</pre>
<p>想用这个代码你先得有一个插件的名字叫flash.jquery.js这个插件jquery的官方网站上有下载<br />
现在只要我们在网页上写上这样的代码就OK了</p>
<pre class="syntax-highlight:html">&lt;a href=&quot;http://www.raidybor.com/Plugins/Home/music.mp3&quot;&gt;&lt;/a&gt;</pre>
<p>演示:<a href="http://www.raidybor.com/Plugins/Home/music.mp3"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://fvzone.com/blog/jquery-test.fv/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.raidybor.com/Plugins/Home/music.mp3" length="1827152" type="audio/mpeg" />
		</item>
	</channel>
</rss>
