﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-yeafee@夜飞郎-文章分类-JS&amp;HTML</title><link>http://www.blogjava.net/yeafee/category/5237.html</link><description>           it's usually better to solve problems with simplicity and finesse rather than muscle.</description><language>zh-cn</language><lastBuildDate>Wed, 02 Feb 2011 17:41:52 GMT</lastBuildDate><pubDate>Wed, 02 Feb 2011 17:41:52 GMT</pubDate><ttl>60</ttl><item><title>jQuery Tutorial  Code Speading (1)  Hello World</title><link>http://www.blogjava.net/yeafee/articles/343706.html</link><dc:creator>@yeafee</dc:creator><author>@yeafee</author><pubDate>Fri, 28 Jan 2011 02:49:00 GMT</pubDate><guid>http://www.blogjava.net/yeafee/articles/343706.html</guid><wfw:comment>http://www.blogjava.net/yeafee/comments/343706.html</wfw:comment><comments>http://www.blogjava.net/yeafee/articles/343706.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/yeafee/comments/commentRss/343706.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/yeafee/services/trackbacks/343706.html</trackback:ping><description><![CDATA[
		<p> </p>
		<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee">
				<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				<span style="COLOR: #0000ff">&lt;!</span>
				<span style="COLOR: #ff00ff">DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">html </span>
				<span style="COLOR: #ff0000">xmlns</span>
				<span style="COLOR: #0000ff">="http://www.w3.org/1999/xhtml"</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">head</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">title</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">jQuery Tutorial 1--Hello World </span>
				<span style="COLOR: #0000ff">&lt;/</span>
				<span style="COLOR: #800000">title</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span>
				<span style="COLOR: #008000">&lt;!--</span>
				<span style="COLOR: #008000">引入jQuery 库</span>
				<span style="COLOR: #008000">--&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">script </span>
				<span style="COLOR: #ff0000">type</span>
				<span style="COLOR: #0000ff">="text/javascript"</span>
				<span style="COLOR: #ff0000"> src</span>
				<span style="COLOR: #0000ff">="jquery-1.2.6.js"</span>
				<span style="COLOR: #0000ff">&gt;&lt;/</span>
				<span style="COLOR: #800000">script</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img id="Codehighlighter1_340_691_Open_Image" onclick="this.style.display='none'; Codehighlighter1_340_691_Open_Text.style.display='none'; Codehighlighter1_340_691_Closed_Image.style.display='inline'; Codehighlighter1_340_691_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" />
						<img id="Codehighlighter1_340_691_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_340_691_Closed_Text.style.display='none'; Codehighlighter1_340_691_Open_Image.style.display='inline'; Codehighlighter1_340_691_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">SCRIPT </span>
				<span style="COLOR: #ff0000">LANGUAGE</span>
				<span style="COLOR: #0000ff">="JavaScript"</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span id="Codehighlighter1_340_691_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
						<img src="http://www.blogjava.net/images/dot.gif" />
				</span>
				<span id="Codehighlighter1_340_691_Open_Text">
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">
								<br />
								<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />
						</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&lt;!--</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">
								<br />
								<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />
						</span>
						<span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">//</span>
						<span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">使用方式一，</span>
						<span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">
								<br />
								<img id="Codehighlighter1_355_684_Open_Image" onclick="this.style.display='none'; Codehighlighter1_355_684_Open_Text.style.display='none'; Codehighlighter1_355_684_Closed_Image.style.display='inline'; Codehighlighter1_355_684_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" />
								<img id="Codehighlighter1_355_684_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_355_684_Closed_Text.style.display='none'; Codehighlighter1_355_684_Open_Image.style.display='inline'; Codehighlighter1_355_684_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />
						</span>
						<span id="Codehighlighter1_355_684_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">/**/</span>
						<span id="Codehighlighter1_355_684_Open_Text">
								<span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">/*</span>
								<span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">    <br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />$(document).ready(function(){<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />     $("#btnShow").click( function(){ $("#divMsg").show('slow');});<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />     $("#btnHide").click( function(){ $("#divMsg").hide('slow');});<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />     $("#btnChange").click(function(){ $("#divMsg").html("Hello World, 我变身了");});<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />     $("#btnInitTxt").click(function(){ $("#divMsg").html("Hello World!");});<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />});<br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" /></span>
								<span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">*/</span>
						</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">
								<br />
								<img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />
						</span>
						<span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">//</span>
						<span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">--&gt;</span>
						<span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">
								<br />
								<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
						</span>
				</span>
				<span style="COLOR: #0000ff">&lt;/</span>
				<span style="COLOR: #800000">SCRIPT</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">&lt;/</span>
				<span style="COLOR: #800000">head</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">body</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">div </span>
				<span style="COLOR: #ff0000">id</span>
				<span style="COLOR: #0000ff">="divMsg"</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">Hello World!</span>
				<span style="COLOR: #0000ff">&lt;/</span>
				<span style="COLOR: #800000">div</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">input </span>
				<span style="COLOR: #ff0000">id</span>
				<span style="COLOR: #0000ff">="btnInitTxt"</span>
				<span style="COLOR: #ff0000"> type</span>
				<span style="COLOR: #0000ff">="button"</span>
				<span style="COLOR: #ff0000"> value</span>
				<span style="COLOR: #0000ff">="初始!"</span>
				<span style="COLOR: #0000ff">/&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">input </span>
				<span style="COLOR: #ff0000">id</span>
				<span style="COLOR: #0000ff">="btnChange"</span>
				<span style="COLOR: #ff0000"> type</span>
				<span style="COLOR: #0000ff">="button"</span>
				<span style="COLOR: #ff0000"> value</span>
				<span style="COLOR: #0000ff">="变身"</span>
				<span style="COLOR: #ff0000"> </span>
				<span style="COLOR: #0000ff">/&gt;</span>
				<span style="COLOR: #008000">&lt;!--</span>
				<span style="COLOR: #008000">改变文本内容</span>
				<span style="COLOR: #008000">--&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">input </span>
				<span style="COLOR: #ff0000">id</span>
				<span style="COLOR: #0000ff">="btnHide"</span>
				<span style="COLOR: #ff0000"> type</span>
				<span style="COLOR: #0000ff">="button"</span>
				<span style="COLOR: #ff0000"> value</span>
				<span style="COLOR: #0000ff">="隐藏"</span>
				<span style="COLOR: #ff0000"> </span>
				<span style="COLOR: #0000ff">/&gt;</span>
				<span style="COLOR: #008000">&lt;!--</span>
				<span style="COLOR: #008000">隐藏文本</span>
				<span style="COLOR: #008000">--&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />    </span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">input </span>
				<span style="COLOR: #ff0000">id</span>
				<span style="COLOR: #0000ff">="btnShow"</span>
				<span style="COLOR: #ff0000"> type</span>
				<span style="COLOR: #0000ff">="button"</span>
				<span style="COLOR: #ff0000"> value</span>
				<span style="COLOR: #0000ff">="显示"</span>
				<span style="COLOR: #ff0000"> </span>
				<span style="COLOR: #0000ff">/&gt;</span>
				<span style="COLOR: #008000">&lt;!--</span>
				<span style="COLOR: #008000">显示文本</span>
				<span style="COLOR: #008000">--&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img id="Codehighlighter1_1029_1458_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1029_1458_Open_Text.style.display='none'; Codehighlighter1_1029_1458_Closed_Image.style.display='inline'; Codehighlighter1_1029_1458_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" />
						<img id="Codehighlighter1_1029_1458_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1029_1458_Closed_Text.style.display='none'; Codehighlighter1_1029_1458_Open_Image.style.display='inline'; Codehighlighter1_1029_1458_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedBlock.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">&lt;</span>
				<span style="COLOR: #800000">script </span>
				<span style="COLOR: #ff0000">type</span>
				<span style="COLOR: #0000ff">="text/javascript"</span>
				<span style="COLOR: #ff0000"> </span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span id="Codehighlighter1_1029_1458_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
						<img src="http://www.blogjava.net/images/dot.gif" />
				</span>
				<span id="Codehighlighter1_1029_1458_Open_Text">
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">
								<br />
								<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />
						</span>
						<span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">//</span>
						<span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">使用方式二,</span>
						<span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">
								<br />
								<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />
						</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">        </span>
						<span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">//</span>
						<span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">以渐变的方式隐藏或显示</span>
						<span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">
								<br />
								<img id="Codehighlighter1_1107_1175_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1107_1175_Open_Text.style.display='none'; Codehighlighter1_1107_1175_Closed_Image.style.display='inline'; Codehighlighter1_1107_1175_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" />
								<img id="Codehighlighter1_1107_1175_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1107_1175_Closed_Text.style.display='none'; Codehighlighter1_1107_1175_Open_Image.style.display='inline'; Codehighlighter1_1107_1175_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />
						</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">        $(</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">#btnShow</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">).bind(</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">click</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">, </span>
						<span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">function</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">(event) </span>
						<span id="Codehighlighter1_1107_1175_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
								<img src="http://www.blogjava.net/images/dot.gif" />
						</span>
						<span id="Codehighlighter1_1107_1175_Open_Text">
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">{<br /><img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />            </span>
								<span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">//</span>
								<span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">$("#divMsg").show('slow'); </span>
								<span style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">
										<br />
										<img src="http://www.blogjava.net/images/OutliningIndicators/InBlock.gif" align="top" />
								</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">            $(</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">#divMsg</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">).show(); <br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />        }</span>
						</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">);<br /><img id="Codehighlighter1_1231_1260_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1231_1260_Open_Text.style.display='none'; Codehighlighter1_1231_1260_Closed_Image.style.display='inline'; Codehighlighter1_1231_1260_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_1231_1260_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1231_1260_Closed_Text.style.display='none'; Codehighlighter1_1231_1260_Open_Image.style.display='inline'; Codehighlighter1_1231_1260_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        $(</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">#btnHide</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">).bind(</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">click</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">, </span>
						<span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">function</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">(event) </span>
						<span id="Codehighlighter1_1231_1260_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
								<img src="http://www.blogjava.net/images/dot.gif" />
						</span>
						<span id="Codehighlighter1_1231_1260_Open_Text">
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">{ $(</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">#divMsg</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">).hide('slow'); }</span>
						</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">);<br /><img id="Codehighlighter1_1318_1360_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1318_1360_Open_Text.style.display='none'; Codehighlighter1_1318_1360_Closed_Image.style.display='inline'; Codehighlighter1_1318_1360_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_1318_1360_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1318_1360_Closed_Text.style.display='none'; Codehighlighter1_1318_1360_Open_Image.style.display='inline'; Codehighlighter1_1318_1360_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        $(</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">#btnChange</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">).bind(</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">click</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">, </span>
						<span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">function</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">(event) </span>
						<span id="Codehighlighter1_1318_1360_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
								<img src="http://www.blogjava.net/images/dot.gif" />
						</span>
						<span id="Codehighlighter1_1318_1360_Open_Text">
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">{ $(</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">#divMsg</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">).html(</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">Hello World, 我变身了</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">); }</span>
						</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">);  <br /><img id="Codehighlighter1_1415_1452_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1415_1452_Open_Text.style.display='none'; Codehighlighter1_1415_1452_Closed_Image.style.display='inline'; Codehighlighter1_1415_1452_Closed_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_1415_1452_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_1415_1452_Closed_Text.style.display='none'; Codehighlighter1_1415_1452_Open_Image.style.display='inline'; Codehighlighter1_1415_1452_Open_Text.style.display='inline';" src="http://www.blogjava.net/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        $(</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">#btnInitTxt</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">).bind(</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">click</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">, </span>
						<span style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">function</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">(event) </span>
						<span id="Codehighlighter1_1415_1452_Closed_Text" style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; DISPLAY: none; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">
								<img src="http://www.blogjava.net/images/dot.gif" />
						</span>
						<span id="Codehighlighter1_1415_1452_Open_Text">
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">{ $(</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">#divMsg</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">).html(</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">Hello World!</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</span>
								<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">); }</span>
						</span>
						<span style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">);  <br /><img src="http://www.blogjava.net/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" /><br /><img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" /></span>
				</span>
				<span style="COLOR: #0000ff">&lt;/</span>
				<span style="COLOR: #800000">script</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">&lt;/</span>
				<span style="COLOR: #800000">body</span>
				<span style="COLOR: #0000ff">&gt;</span>
				<span style="COLOR: #000000">
						<br />
						<img src="http://www.blogjava.net/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">&lt;/</span>
				<span style="COLOR: #800000">html</span>
				<span style="COLOR: #0000ff">&gt;</span>
		</div>
		<br />
		<br />
<img src ="http://www.blogjava.net/yeafee/aggbug/343706.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/yeafee/" target="_blank">@yeafee</a> 2011-01-28 10:49 <a href="http://www.blogjava.net/yeafee/articles/343706.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>JS Form Select Options-Elements 左右互搏</title><link>http://www.blogjava.net/yeafee/articles/171235.html</link><dc:creator>@yeafee</dc:creator><author>@yeafee</author><pubDate>Fri, 28 Dec 2007 08:18:00 GMT</pubDate><guid>http://www.blogjava.net/yeafee/articles/171235.html</guid><wfw:comment>http://www.blogjava.net/yeafee/comments/171235.html</wfw:comment><comments>http://www.blogjava.net/yeafee/articles/171235.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/yeafee/comments/commentRss/171235.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/yeafee/services/trackbacks/171235.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: &lt;!				DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"				&gt;																								&lt;				html 				xmlns...&nbsp;&nbsp;<a href='http://www.blogjava.net/yeafee/articles/171235.html'>阅读全文</a><img src ="http://www.blogjava.net/yeafee/aggbug/171235.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/yeafee/" target="_blank">@yeafee</a> 2007-12-28 16:18 <a href="http://www.blogjava.net/yeafee/articles/171235.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>