<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[史考特部落格園地 - Ajax]]></title>
<link>http://www.pro-soho.com/Blog/</link>
<description><![CDATA[生命就該浪費在美好的事物上]]></description>
<language>zh-cn</language>
<copyright><![CDATA[Copyright 2005 PBlog2 v2.4]]></copyright>
<webMaster><![CDATA[scooter.tw@gmail.com(Scott)]]></webMaster>
<generator>PBlog2 v2.4</generator> 
<image>
	<title>史考特部落格園地</title> 
	<url>http://www.pro-soho.com/Blog/images/logos.gif</url> 
	<link>http://www.pro-soho.com/Blog/</link> 
	<description>史考特部落格園地</description> 
</image>

			<item>
			<link>http://www.pro-soho.com/Blog/default.asp?id=273</link>
			<title><![CDATA[JQuery 筆記]]></title>
			<author>scooter.tw@gmail.com(admin)</author>
			<category><![CDATA[Ajax]]></category>
			<pubDate>Sat,12 Jan 2008 15:52:10 +0800</pubDate>
			<guid>http://www.pro-soho.com/Blog/default.asp?id=273</guid>	
		<description><![CDATA[參考資料：jQuery API Rerence <a href="http://docs.jquery.com/Main_Page" target="_blank">http://docs.jquery.com/Main_Page</a><br/><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.pro-soho.com/Blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代碼"/> 程序代碼</div><div class="UBBContent">&lt;style&gt;&nbsp;&nbsp;<br/>.red { color:red; }&nbsp;&nbsp;<br/>.bg_green {background-color:green;}&nbsp;&nbsp;<br/>.bg_red {background-color:red;}&nbsp;&nbsp;<br/>.bg_yellow {background-color:yellow;}&nbsp;&nbsp;<br/>&lt;/style&gt;&nbsp;&nbsp;<br/><br/>&lt;div id=&#34;div01&#34;&gt;測試 TEST&nbsp;&nbsp;<br/>&lt;p&gt;第一行 &lt;a href=&#34;#&#34; name=&#34;a1&#34;&gt;a1&lt;/a&gt;&lt;/p&gt; <br/>&lt;p&gt;第二行 &lt;a href=&#34;#&#34; id=&#34;a2&#34;&gt;a2&lt;/a&gt;&lt;/p&gt;<br/>&lt;p&gt;第三行 &lt;a href=&#34;#&#34;&gt;a3&lt;/a&gt;&lt;/p&gt;&nbsp;&nbsp;&lt;/div&gt;</div></div><br/><br/>選擇器(Sel&#101;ctors) (more:<a href="http://docs.jquery.com/Attributes" target="_blank">http://docs.jquery.com/Attributes</a>)<br/><br/>$(&#34;#div01&#34;); /* document.getElementById(&#34;div01&#34;); */ <br/>$(&#34;a[@name]&#34;).addClass(&#34;bg_green&#34;); <br/>尋找有name屬性的 &lt;a /&gt;。 <br/>$(&#39;#div01 &gt; p:first&#39;).addClass(&#39;red&#39;); <br/>尋找&lt;div id=&#39;div01&#39;&gt;下的第一個&lt;p /&gt;，first, last, 空就是全部的 <br/><br/>屬性(Attributes) (more:<a href="http://docs.jquery.com/Attributes" target="_blank">http://docs.jquery.com/Attributes</a>)<br/><br/>$(&#34;#div01&#34;).addClass(&#39;red&#39;); /* document.getElementById(&#39;div01&#39;).className=&#39;red&#39;; */ <br/>$(&#34;#div01&#34;).css(&#34;border&#34;, &#34;1px solid black&#34;); <br/><br/>其它<br/><br/>在每一行後面加上文字 <br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.pro-soho.com/Blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代碼"/> 程序代碼</div><div class="UBBContent">$(&#34;#div01 &#34;).find(&#34;p&#34;).each(function(i) { <br/>&nbsp;&nbsp;$(this).html( $(this).html() + &#34; 加註(&#34; + i + &#34;)&#34; ); <br/>}); </div></div><br/><br/>事件(Evnets) (more:<a href="http://docs.jquery.com/Events" target="_blank">http://docs.jquery.com/Events</a>)<br/><br/>當mouse移過第一行時底色會變。 <br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.pro-soho.com/Blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代碼"/> 程序代碼</div><div class="UBBContent">$(document).ready(function() { <br/>$(&#39;#div01 &gt; p:first&#39;).hover( <br/>&nbsp;&nbsp;function() {$(this).addClass(&#34;bg_green&#34;);}, <br/>&nbsp;&nbsp;function() {$(this).removeClass(&#34;bg_green&#34;);} <br/>); </div></div><br/><br/>當mouse移過每一行的&lt;a/&gt;時底色會變。 <br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.pro-soho.com/Blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代碼"/> 程序代碼</div><div class="UBBContent">$(&#34;a&#34;).hover( <br/>&nbsp;&nbsp;function() {$(this).parents(&#34;p&#34;).addClass(&#34;bg_red&#34;);}, <br/>&nbsp;&nbsp;function() {$(this).parents(&#34;p&#34;).removeClass(&#34;bg_red&#34;); <br/>}); </div></div><br/><br/>參考：<a href="http://www.k99k.com/jQuery_getting_started.html" target="_blank">http://www.k99k.com/jQuery_getting_started.html</a> ]]></description>
		</item>
		
</channel>
</rss>