﻿<?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>IT博客-cauchy-文章分类-Javascript</title><link>http://www.cnitblog.com/cauchy/category/4013.html</link><description /><language>zh-cn</language><lastBuildDate>Sat, 01 Oct 2011 01:30:02 GMT</lastBuildDate><pubDate>Sat, 01 Oct 2011 01:30:02 GMT</pubDate><ttl>60</ttl><item><title>我的一个聚合时间段</title><link>http://www.cnitblog.com/cauchy/articles/18791.html</link><dc:creator>Cauchy</dc:creator><author>Cauchy</author><pubDate>Fri, 03 Nov 2006 01:42:00 GMT</pubDate><guid>http://www.cnitblog.com/cauchy/articles/18791.html</guid><wfw:comment>http://www.cnitblog.com/cauchy/comments/18791.html</wfw:comment><comments>http://www.cnitblog.com/cauchy/articles/18791.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/cauchy/comments/commentRss/18791.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/cauchy/services/trackbacks/18791.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 本来算法其实很简单，但是，建立在一个设计的不尽合理的基础上，实现该算法，真相当麻烦：Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->  1     /*  2     *聚合by ZZC  3     */  4       5     functio...&nbsp;&nbsp;<a href='http://www.cnitblog.com/cauchy/articles/18791.html'>阅读全文</a><img src ="http://www.cnitblog.com/cauchy/aggbug/18791.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/cauchy/" target="_blank">Cauchy</a> 2006-11-03 09:42 <a href="http://www.cnitblog.com/cauchy/articles/18791.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>jsp乱码问题</title><link>http://www.cnitblog.com/cauchy/articles/18770.html</link><dc:creator>Cauchy</dc:creator><author>Cauchy</author><pubDate>Thu, 02 Nov 2006 07:50:00 GMT</pubDate><guid>http://www.cnitblog.com/cauchy/articles/18770.html</guid><wfw:comment>http://www.cnitblog.com/cauchy/comments/18770.html</wfw:comment><comments>http://www.cnitblog.com/cauchy/articles/18770.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/cauchy/comments/commentRss/18770.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/cauchy/services/trackbacks/18770.html</trackback:ping><description><![CDATA[
		<a target="_blank" class="" title="csdn" href="http://dev.csdn.net/article/70/70317.shtm">中文乱码解决（一）</a>
		<br />
		<br />
		<a target="_blank" class="" title="jsp乱码" href="http://www.web745.com/article_html/2006/10/453.html">二</a>
		<br />
<img src ="http://www.cnitblog.com/cauchy/aggbug/18770.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/cauchy/" target="_blank">Cauchy</a> 2006-11-02 15:50 <a href="http://www.cnitblog.com/cauchy/articles/18770.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>iframe自适应高度</title><link>http://www.cnitblog.com/cauchy/articles/18672.html</link><dc:creator>Cauchy</dc:creator><author>Cauchy</author><pubDate>Tue, 31 Oct 2006 13:19:00 GMT</pubDate><guid>http://www.cnitblog.com/cauchy/articles/18672.html</guid><wfw:comment>http://www.cnitblog.com/cauchy/comments/18672.html</wfw:comment><comments>http://www.cnitblog.com/cauchy/articles/18672.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/cauchy/comments/commentRss/18672.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/cauchy/services/trackbacks/18672.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">
				<span style="COLOR: #008080"> 1</span>
				<img src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align="top" />
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">script type</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">text/javascript</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080"> 2</span>
				<span style="COLOR: #000000">
						<img src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #0000ff">var</span>
				<span style="COLOR: #000000"> iframeids</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">[</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">test</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">];    <br /></span>
				<span style="COLOR: #008080"> 3</span>
				<span style="COLOR: #000000">
						<img src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align="top" />window.onload </span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000"> </span>
				<span style="COLOR: #0000ff">function</span>
				<span style="COLOR: #000000">()<br /></span>
				<span style="COLOR: #008080"> 4</span>
				<span style="COLOR: #000000">
						<img id="Codehighlighter1_85_1146_Open_Image" onclick="this.style.display='none'; Codehighlighter1_85_1146_Open_Text.style.display='none'; Codehighlighter1_85_1146_Closed_Image.style.display='inline'; Codehighlighter1_85_1146_Closed_Text.style.display='inline';" src="http://www.cnitblog.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" />
						<img id="Codehighlighter1_85_1146_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_85_1146_Closed_Text.style.display='none'; Codehighlighter1_85_1146_Open_Image.style.display='inline'; Codehighlighter1_85_1146_Open_Text.style.display='inline';" src="http://www.cnitblog.com/images/OutliningIndicators/ContractedBlock.gif" align="top" /> </span>
				<span id="Codehighlighter1_85_1146_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.cnitblog.com/images/dot.gif" />
				</span>
				<span id="Codehighlighter1_85_1146_Open_Text">
						<span style="COLOR: #000000">{<br /></span>
						<span style="COLOR: #008080"> 5</span>
						<span style="COLOR: #000000">
								<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />
								<br />
						</span>
						<span style="COLOR: #008080"> 6</span>
						<span style="COLOR: #000000">
								<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    document.getElementById('test').src</span>
						<span style="COLOR: #000000">=</span>
						<span style="COLOR: #000000">'.</span>
						<span style="COLOR: #000000">/</span>
						<span style="COLOR: #000000">1</span>
						<span style="COLOR: #000000">.html';<br /></span>
						<span style="COLOR: #008080"> 7</span>
						<span style="COLOR: #000000">
								<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    </span>
						<span style="COLOR: #0000ff">var</span>
						<span style="COLOR: #000000"> dyniframe</span>
						<span style="COLOR: #000000">=</span>
						<span style="COLOR: #0000ff">new</span>
						<span style="COLOR: #000000"> Array();<br /></span>
						<span style="COLOR: #008080"> 8</span>
						<span style="COLOR: #000000">
								<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    </span>
						<span style="COLOR: #0000ff">for</span>
						<span style="COLOR: #000000"> (i</span>
						<span style="COLOR: #000000">=</span>
						<span style="COLOR: #000000">0</span>
						<span style="COLOR: #000000">; i</span>
						<span style="COLOR: #000000">&lt;</span>
						<span style="COLOR: #000000">iframeids.length; i</span>
						<span style="COLOR: #000000">++</span>
						<span style="COLOR: #000000">)<br /></span>
						<span style="COLOR: #008080"> 9</span>
						<span style="COLOR: #000000">
								<img id="Codehighlighter1_202_1142_Open_Image" onclick="this.style.display='none'; Codehighlighter1_202_1142_Open_Text.style.display='none'; Codehighlighter1_202_1142_Closed_Image.style.display='inline'; Codehighlighter1_202_1142_Closed_Text.style.display='inline';" src="http://www.cnitblog.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" />
								<img id="Codehighlighter1_202_1142_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_202_1142_Closed_Text.style.display='none'; Codehighlighter1_202_1142_Open_Image.style.display='inline'; Codehighlighter1_202_1142_Open_Text.style.display='inline';" src="http://www.cnitblog.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />   <span id="Codehighlighter1_202_1142_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.cnitblog.com/images/dot.gif" /></span> </span>
						<span id="Codehighlighter1_202_1142_Open_Text">
								<span style="COLOR: #000000">{<br /></span>
								<span style="COLOR: #008080">10</span>
								<span style="COLOR: #000000">
										<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        </span>
								<span style="COLOR: #0000ff">if</span>
								<span style="COLOR: #000000"> (document.getElementById)<br /></span>
								<span style="COLOR: #008080">11</span>
								<span style="COLOR: #000000">
										<img id="Codehighlighter1_237_893_Open_Image" onclick="this.style.display='none'; Codehighlighter1_237_893_Open_Text.style.display='none'; Codehighlighter1_237_893_Closed_Image.style.display='inline'; Codehighlighter1_237_893_Closed_Text.style.display='inline';" src="http://www.cnitblog.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" />
										<img id="Codehighlighter1_237_893_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_237_893_Closed_Text.style.display='none'; Codehighlighter1_237_893_Open_Image.style.display='inline'; Codehighlighter1_237_893_Open_Text.style.display='inline';" src="http://www.cnitblog.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />        </span>
								<span id="Codehighlighter1_237_893_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.cnitblog.com/images/dot.gif" />
								</span>
								<span id="Codehighlighter1_237_893_Open_Text">
										<span style="COLOR: #000000">{<br /></span>
										<span style="COLOR: #008080">12</span>
										<span style="COLOR: #000000">
												<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />            dyniframe[dyniframe.length] </span>
										<span style="COLOR: #000000">=</span>
										<span style="COLOR: #000000"> document.getElementById(iframeids[i]);<br /></span>
										<span style="COLOR: #008080">13</span>
										<span style="COLOR: #000000">
												<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        <br /></span>
										<span style="COLOR: #008080">14</span>
										<span style="COLOR: #000000">
												<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />            </span>
										<span style="COLOR: #0000ff">if</span>
										<span style="COLOR: #000000"> (dyniframe[i] </span>
										<span style="COLOR: #000000">&amp;&amp;</span>
										<span style="COLOR: #000000"> </span>
										<span style="COLOR: #000000">!</span>
										<span style="COLOR: #000000">window.opera)<br /></span>
										<span style="COLOR: #008080">15</span>
										<span style="COLOR: #000000">
												<img id="Codehighlighter1_358_884_Open_Image" onclick="this.style.display='none'; Codehighlighter1_358_884_Open_Text.style.display='none'; Codehighlighter1_358_884_Closed_Image.style.display='inline'; Codehighlighter1_358_884_Closed_Text.style.display='inline';" src="http://www.cnitblog.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" />
												<img id="Codehighlighter1_358_884_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_358_884_Closed_Text.style.display='none'; Codehighlighter1_358_884_Open_Image.style.display='inline'; Codehighlighter1_358_884_Open_Text.style.display='inline';" src="http://www.cnitblog.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />               </span>
										<span id="Codehighlighter1_358_884_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.cnitblog.com/images/dot.gif" />
										</span>
										<span id="Codehighlighter1_358_884_Open_Text">
												<span style="COLOR: #000000">{<br /></span>
												<span style="COLOR: #008080">16</span>
												<span style="COLOR: #000000">
														<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />                dyniframe[i].style.display</span>
												<span style="COLOR: #000000">=</span>
												<span style="COLOR: #000000">"</span>
												<span style="COLOR: #000000">block</span>
												<span style="COLOR: #000000">"</span>
												<span style="COLOR: #000000">;<br /></span>
												<span style="COLOR: #008080">17</span>
												<span style="COLOR: #000000">
														<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />
														<br />
												</span>
												<span style="COLOR: #008080">18</span>
												<span style="COLOR: #000000">
														<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />                </span>
												<span style="COLOR: #008000">//</span>
												<span style="COLOR: #008000">alert(""+dyniframe[i].contentDocument.body.offsetHeight);</span>
												<span style="COLOR: #008000">
														<br />
												</span>
												<span style="COLOR: #008080">19</span>
												<span style="COLOR: #008000">
														<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />
												</span>
												<span style="COLOR: #000000">        <br /></span>
												<span style="COLOR: #008080">20</span>
												<span style="COLOR: #000000">
														<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />                </span>
												<span style="COLOR: #008000">//</span>
												<span style="COLOR: #008000">alert(dyniframe[i].Document.body.scrollHeight);</span>
												<span style="COLOR: #008000">
														<br />
												</span>
												<span style="COLOR: #008080">21</span>
												<span style="COLOR: #008000">
														<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />
												</span>
												<span style="COLOR: #000000">                </span>
												<span style="COLOR: #0000ff">if</span>
												<span style="COLOR: #000000"> (dyniframe[i].contentDocument </span>
												<span style="COLOR: #000000">&amp;&amp;</span>
												<span style="COLOR: #000000"> dyniframe[i].contentDocument.body.offsetHeight)<br /></span>
												<span style="COLOR: #008080">22</span>
												<span style="COLOR: #000000">
														<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    <br /></span>
												<span style="COLOR: #008080">23</span>
												<span style="COLOR: #000000">
														<img id="Codehighlighter1_616_708_Open_Image" onclick="this.style.display='none'; Codehighlighter1_616_708_Open_Text.style.display='none'; Codehighlighter1_616_708_Closed_Image.style.display='inline'; Codehighlighter1_616_708_Closed_Text.style.display='inline';" src="http://www.cnitblog.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" />
														<img id="Codehighlighter1_616_708_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_616_708_Closed_Text.style.display='none'; Codehighlighter1_616_708_Open_Image.style.display='inline'; Codehighlighter1_616_708_Open_Text.style.display='inline';" src="http://www.cnitblog.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />                </span>
												<span id="Codehighlighter1_616_708_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.cnitblog.com/images/dot.gif" />
												</span>
												<span id="Codehighlighter1_616_708_Open_Text">
														<span style="COLOR: #000000">{<br /></span>
														<span style="COLOR: #008080">24</span>
														<span style="COLOR: #000000">
																<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />        <br /></span>
														<span style="COLOR: #008080">25</span>
														<span style="COLOR: #000000">
																<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />                    dyniframe[i].height </span>
														<span style="COLOR: #000000">=</span>
														<span style="COLOR: #000000"> dyniframe[i].contentDocument.body.offsetHeight; <br /></span>
														<span style="COLOR: #008080">26</span>
														<span style="COLOR: #000000">
																<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />         <br /></span>
														<span style="COLOR: #008080">27</span>
														<span style="COLOR: #000000">
																<img src="http://www.cnitblog.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />                }</span>
												</span>
												<span style="COLOR: #000000">
														<br />
												</span>
												<span style="COLOR: #008080">28</span>
												<span style="COLOR: #000000">
														<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    <br /></span>
												<span style="COLOR: #008080">29</span>
												<span style="COLOR: #000000">
														<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />                </span>
												<span style="COLOR: #0000ff">else</span>
												<span style="COLOR: #000000"> </span>
												<span style="COLOR: #0000ff">if</span>
												<span style="COLOR: #000000"> (dyniframe[i].Document </span>
												<span style="COLOR: #000000">&amp;&amp;</span>
												<span style="COLOR: #000000"> dyniframe[i].Document.body.scrollHeight)<br /></span>
												<span style="COLOR: #008080">30</span>
												<span style="COLOR: #000000">
														<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />
														<br />
												</span>
												<span style="COLOR: #008080">31</span>
												<span style="COLOR: #000000">
														<img id="Codehighlighter1_799_876_Open_Image" onclick="this.style.display='none'; Codehighlighter1_799_876_Open_Text.style.display='none'; Codehighlighter1_799_876_Closed_Image.style.display='inline'; Codehighlighter1_799_876_Closed_Text.style.display='inline';" src="http://www.cnitblog.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" />
														<img id="Codehighlighter1_799_876_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_799_876_Closed_Text.style.display='none'; Codehighlighter1_799_876_Open_Image.style.display='inline'; Codehighlighter1_799_876_Open_Text.style.display='inline';" src="http://www.cnitblog.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />                </span>
												<span id="Codehighlighter1_799_876_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.cnitblog.com/images/dot.gif" />
												</span>
												<span id="Codehighlighter1_799_876_Open_Text">
														<span style="COLOR: #000000">{<br /></span>
														<span style="COLOR: #008080">32</span>
														<span style="COLOR: #000000">
																<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />
																<br />
														</span>
														<span style="COLOR: #008080">33</span>
														<span style="COLOR: #000000">
																<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />                    dyniframe[i].height </span>
														<span style="COLOR: #000000">=</span>
														<span style="COLOR: #000000"> dyniframe[i].Document.body.scrollHeight;<br /></span>
														<span style="COLOR: #008080">34</span>
														<span style="COLOR: #000000">
																<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" /> <br /></span>
														<span style="COLOR: #008080">35</span>
														<span style="COLOR: #000000">
																<img src="http://www.cnitblog.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />                }</span>
												</span>
												<span style="COLOR: #000000">
														<br />
												</span>
												<span style="COLOR: #008080">36</span>
												<span style="COLOR: #000000">
														<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />  <br /></span>
												<span style="COLOR: #008080">37</span>
												<span style="COLOR: #000000">
														<img src="http://www.cnitblog.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />            }</span>
										</span>
										<span style="COLOR: #000000">
												<br />
										</span>
										<span style="COLOR: #008080">38</span>
										<span style="COLOR: #000000">
												<img src="http://www.cnitblog.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />       }</span>
								</span>
								<span style="COLOR: #000000">
										<br />
								</span>
								<span style="COLOR: #008080">39</span>
								<span style="COLOR: #000000">
										<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />
										<br />
								</span>
								<span style="COLOR: #008080">40</span>
								<span style="COLOR: #000000">
										<img id="Codehighlighter1_900_1136_Open_Image" onclick="this.style.display='none'; Codehighlighter1_900_1136_Open_Text.style.display='none'; Codehighlighter1_900_1136_Closed_Image.style.display='inline'; Codehighlighter1_900_1136_Closed_Text.style.display='inline';" src="http://www.cnitblog.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" />
										<img id="Codehighlighter1_900_1136_Closed_Image" style="DISPLAY: none" onclick="this.style.display='none'; Codehighlighter1_900_1136_Closed_Text.style.display='none'; Codehighlighter1_900_1136_Open_Image.style.display='inline'; Codehighlighter1_900_1136_Open_Text.style.display='inline';" src="http://www.cnitblog.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />       </span>
								<span id="Codehighlighter1_900_1136_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_900_1136_Open_Text">
										<span style="COLOR: #008000">/*</span>
										<span style="COLOR: #008000">
												<br />
										</span>
										<span style="COLOR: #008080">41</span>
										<span style="COLOR: #008000">
												<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />   if ((document.all || document.getElementById) &amp;&amp; iframehide=="no")<br /></span>
										<span style="COLOR: #008080">42</span>
										<span style="COLOR: #008000">
												<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />       {<br /></span>
										<span style="COLOR: #008080">43</span>
										<span style="COLOR: #008000">
												<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />     alert("sadf");<br /></span>
										<span style="COLOR: #008080">44</span>
										<span style="COLOR: #008000">
												<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i]);<br /></span>
										<span style="COLOR: #008080">45</span>
										<span style="COLOR: #008000">
												<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />    tempobj.style.display="block";<br /></span>
										<span style="COLOR: #008080">46</span>
										<span style="COLOR: #008000">
												<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />       }<br /></span>
										<span style="COLOR: #008080">47</span>
										<span style="COLOR: #008000">
												<img src="http://www.cnitblog.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />
										</span>
										<span style="COLOR: #008000">*/</span>
								</span>
								<span style="COLOR: #000000">
										<br />
								</span>
								<span style="COLOR: #008080">48</span>
								<span style="COLOR: #000000">
										<img src="http://www.cnitblog.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span>
						</span>
						<span style="COLOR: #000000">
								<br />
						</span>
						<span style="COLOR: #008080">49</span>
						<span style="COLOR: #000000">
								<img src="http://www.cnitblog.com/images/OutliningIndicators/InBlock.gif" align="top" />
								<br />
						</span>
						<span style="COLOR: #008080">50</span>
						<span style="COLOR: #000000">
								<img src="http://www.cnitblog.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" /> }</span>
				</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080">51</span>
				<span style="COLOR: #000000">
						<img src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align="top" />
						<br />
				</span>
				<span style="COLOR: #008080">52</span>
				<span style="COLOR: #000000">
						<img src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">script</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080">53</span>
				<span style="COLOR: #000000">
						<img src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align="top" />
						<br />
				</span>
				<span style="COLOR: #008080">54</span>
				<span style="COLOR: #000000">
						<img src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align="top" />
						<br />
				</span>
				<span style="COLOR: #008080">55</span>
				<span style="COLOR: #000000">
						<img src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">iframe width</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">100%</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> id</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">test</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000"> alt</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">Iframe高度自适应</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">   scrolling</span>
				<span style="COLOR: #000000">=</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">no</span>
				<span style="COLOR: #000000">"</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080">56</span>
				<span style="COLOR: #000000">
						<img src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">&lt;/</span>
				<span style="COLOR: #000000">iframe</span>
				<span style="COLOR: #000000">&gt;</span>
				<span style="COLOR: #000000">
						<br />
				</span>
				<span style="COLOR: #008080">57</span>
				<span style="COLOR: #000000">
						<img src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align="top" />
				</span>
				<span style="COLOR: #000000">&lt;</span>
				<span style="COLOR: #000000">body</span>
				<span style="COLOR: #000000">&gt;</span>
		</div>
<img src ="http://www.cnitblog.com/cauchy/aggbug/18672.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/cauchy/" target="_blank">Cauchy</a> 2006-10-31 21:19 <a href="http://www.cnitblog.com/cauchy/articles/18672.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>干活用到的杂七杂八</title><link>http://www.cnitblog.com/cauchy/articles/18323.html</link><dc:creator>Cauchy</dc:creator><author>Cauchy</author><pubDate>Tue, 24 Oct 2006 02:59:00 GMT</pubDate><guid>http://www.cnitblog.com/cauchy/articles/18323.html</guid><wfw:comment>http://www.cnitblog.com/cauchy/comments/18323.html</wfw:comment><comments>http://www.cnitblog.com/cauchy/articles/18323.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/cauchy/comments/commentRss/18323.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/cauchy/services/trackbacks/18323.html</trackback:ping><description><![CDATA[
		<pre>1.table在div中居中显示：<br />&lt;table style="margin:auto;padding:auto;text-align:center;" border="0" align="center" width="60%" cellspacing="0" bgcolor="#ffffff"&gt;<br />2.select框删除<br /><div style="border: 0.5pt solid windowtext; padding: 4px 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 95%;"><div><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> del(obj)<br /><img alt="" id="_18_167_Open_Image" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif" onclick="this.style.display='none'; document.getElementById('_18_167_Open_Text').style.display='none'; document.getElementById('_18_167_Closed_Image').style.display='inline'; document.getElementById('_18_167_Closed_Text').style.display='inline';" align="top" /><img alt="" id="_18_167_Closed_Image" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif" style="display: none;" onclick="this.style.display='none'; document.getElementById('_18_167_Closed_Text').style.display='none'; document.getElementById('_18_167_Open_Image').style.display='inline'; document.getElementById('_18_167_Open_Text').style.display='inline';" align="top" /></span><span id="_18_167_Closed_Text" style="border: 1px solid rgb(128, 128, 128); background-color: rgb(255, 255, 255); display: none;">...</span><span id="_18_167_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> i;<br /><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />        </span><span style="color: rgb(0, 0, 255);">for</span><span style="color: rgb(0, 0, 0);"> (i </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> obj.length</span><span style="color: rgb(0, 0, 0);">-</span><span style="color: rgb(0, 0, 0);">1</span><span style="color: rgb(0, 0, 0);">; i </span><span style="color: rgb(0, 0, 0);">&gt;=</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">; i</span><span style="color: rgb(0, 0, 0);">--</span><span style="color: rgb(0, 0, 0);">)<br /><img alt="" id="_68_165_Open_Image" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" onclick="this.style.display='none'; document.getElementById('_68_165_Open_Text').style.display='none'; document.getElementById('_68_165_Closed_Image').style.display='inline'; document.getElementById('_68_165_Closed_Text').style.display='inline';" align="top" /><img alt="" id="_68_165_Closed_Image" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" style="display: none;" onclick="this.style.display='none'; document.getElementById('_68_165_Closed_Text').style.display='none'; document.getElementById('_68_165_Open_Image').style.display='inline'; document.getElementById('_68_165_Open_Text').style.display='inline';" align="top" />        </span><span id="_68_165_Closed_Text" style="border: 1px solid rgb(128, 128, 128); background-color: rgb(255, 255, 255); display: none;">...</span><span id="_68_165_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />            </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);"> ( obj[i].selected </span><span style="color: rgb(0, 0, 0);">==</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 255);">true</span><span style="color: rgb(0, 0, 0);">)<br /><img alt="" id="_106_161_Open_Image" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" onclick="this.style.display='none'; document.getElementById('_106_161_Open_Text').style.display='none'; document.getElementById('_106_161_Closed_Image').style.display='inline'; document.getElementById('_106_161_Closed_Text').style.display='inline';" align="top" /><img alt="" id="_106_161_Closed_Image" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" style="display: none;" onclick="this.style.display='none'; document.getElementById('_106_161_Closed_Text').style.display='none'; document.getElementById('_106_161_Open_Image').style.display='inline'; document.getElementById('_106_161_Open_Text').style.display='inline';" align="top" />            </span><span id="_106_161_Closed_Text" style="border: 1px solid rgb(128, 128, 128); background-color: rgb(255, 255, 255); display: none;">...</span><span id="_106_161_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />                obj.remove(i);<br /><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />                </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">obj.selectedIndex = i-1;</span><span style="color: rgb(0, 128, 0);"><br /><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" /></span><span style="color: rgb(0, 0, 0);">            }</span></span><span style="color: rgb(0, 0, 0);"><br /><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />        }</span></span><span style="color: rgb(0, 0, 0);"><br /><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}</span></span><span style="color: rgb(0, 0, 0);"><br /><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /><br /><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /></span></div></div>3. div的生成<div style="border: 0.5pt solid windowtext; padding: 4px 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 95%;"><div><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /><span style="color: rgb(0, 0, 0);">_div </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> document.createElement(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">div</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);<br /><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /><br /><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" />_div.id </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">div_</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">Math.ceil(Math.random()</span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">100000</span><span style="color: rgb(0, 0, 0);">);<br /><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" />document.body.appendChild(_div);<br /><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" />_div.setAttribute(</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">style</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">border:1px #999 solid;background-color:#eee;position:absolute;top:</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">_top</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;left:</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">_left</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;width:</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">_width</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;height:</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">_height</span><span style="color: rgb(0, 0, 0);">+</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">);</span></div></div>4.取得radio的value<br /><div style="border: 0.5pt solid windowtext; padding: 4px 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 95%;"><div><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" align="top" /><span style="color: rgb(0, 0, 255);">function</span><span style="color: rgb(0, 0, 0);"> GetRadioValue(el)<br /><img alt="" id="_27_263_Open_Image" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif" onclick="this.style.display='none'; document.getElementById('_27_263_Open_Text').style.display='none'; document.getElementById('_27_263_Closed_Image').style.display='inline'; document.getElementById('_27_263_Closed_Text').style.display='inline';" align="top" /><img alt="" id="_27_263_Closed_Image" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif" style="display: none;" onclick="this.style.display='none'; document.getElementById('_27_263_Closed_Text').style.display='none'; document.getElementById('_27_263_Open_Image').style.display='inline'; document.getElementById('_27_263_Open_Text').style.display='inline';" align="top" /></span><span id="_27_263_Closed_Text" style="border: 1px solid rgb(128, 128, 128); background-color: rgb(255, 255, 255); display: none;">...</span><span id="_27_263_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />  </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> sValue </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> </span><span style="color: rgb(0, 0, 0);">""</span><span style="color: rgb(0, 0, 0);">;<br /><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />  </span><span style="color: rgb(0, 128, 0);">//</span><span style="color: rgb(0, 128, 0);">取得第一个元素的name,搜索这个元素组</span><span style="color: rgb(0, 128, 0);"><br /><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" /></span><span style="color: rgb(0, 0, 0);">  </span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> tmpels </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> document.getElementsByName(el);<br /><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />  </span><span style="color: rgb(0, 0, 255);">for</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 255);">var</span><span style="color: rgb(0, 0, 0);"> i</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">0</span><span style="color: rgb(0, 0, 0);">;i</span><span style="color: rgb(0, 0, 0);">&lt;</span><span style="color: rgb(0, 0, 0);">tmpels.length;i</span><span style="color: rgb(0, 0, 0);">++</span><span style="color: rgb(0, 0, 0);">)<br /><img alt="" id="_157_244_Open_Image" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" onclick="this.style.display='none'; document.getElementById('_157_244_Open_Text').style.display='none'; document.getElementById('_157_244_Closed_Image').style.display='inline'; document.getElementById('_157_244_Closed_Text').style.display='inline';" align="top" /><img alt="" id="_157_244_Closed_Image" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" style="display: none;" onclick="this.style.display='none'; document.getElementById('_157_244_Closed_Text').style.display='none'; document.getElementById('_157_244_Open_Image').style.display='inline'; document.getElementById('_157_244_Open_Text').style.display='inline';" align="top" />  </span><span id="_157_244_Closed_Text" style="border: 1px solid rgb(128, 128, 128); background-color: rgb(255, 255, 255); display: none;">...</span><span id="_157_244_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />    </span><span style="color: rgb(0, 0, 255);">if</span><span style="color: rgb(0, 0, 0);">(tmpels[i].checked)<br /><img alt="" id="_189_240_Open_Image" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockStart.gif" onclick="this.style.display='none'; document.getElementById('_189_240_Open_Text').style.display='none'; document.getElementById('_189_240_Closed_Image').style.display='inline'; document.getElementById('_189_240_Closed_Text').style.display='inline';" align="top" /><img alt="" id="_189_240_Closed_Image" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedSubBlock.gif" style="display: none;" onclick="this.style.display='none'; document.getElementById('_189_240_Closed_Text').style.display='none'; document.getElementById('_189_240_Open_Image').style.display='inline'; document.getElementById('_189_240_Open_Text').style.display='inline';" align="top" />    </span><span id="_189_240_Closed_Text" style="border: 1px solid rgb(128, 128, 128); background-color: rgb(255, 255, 255); display: none;">...</span><span id="_189_240_Open_Text"><span style="color: rgb(0, 0, 0);">{<br /><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />      sValue </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);"> tmpels[i].value;<br /><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />      </span><span style="color: rgb(0, 0, 255);">break</span><span style="color: rgb(0, 0, 0);">;<br /><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />    }</span></span><span style="color: rgb(0, 0, 0);"><br /><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />  }</span></span><span style="color: rgb(0, 0, 0);"><br /><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif" align="top" />  </span><span style="color: rgb(0, 0, 255);">return</span><span style="color: rgb(0, 0, 0);"> sValue;<br /><img alt="" src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />}<br /><br />5.<br />&lt;div id="divLogList" style="padding-left:5px;width:100%; overflow-y:auto;height:400px;display:block; background:#ffffff;"&gt;&lt;/div&gt;<br /></span></span>6.//用于地址栏传.＋<br />function escape2(str)<br />{<br />var newStr=escape(str).replace(/\+/g,"%2b");<br />return newStr.replace(/\./g,"%2e");<br />}<br /><span id="_27_263_Open_Text"><span style="color: rgb(0, 0, 0);">7.关于单选框和多选框(单选框是checked)<br />&lt;input type="radio" name='radio_af_state' id='radio_af_state_close' value ='false' onclick="ChangeAFState();"  checked="true"/&gt;禁用<br />$('radio_bf_state_close').checked=true;<br /><br /></span></span></div></div></pre>
		8.页面控件的显示与隐藏<br /><div style="border: 1px solid rgb(204, 204, 204); padding: 4px 5px 4px 4px; background-color: rgb(238, 238, 238); font-size: 13px; width: 98%;"><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="color: rgb(0, 0, 0);">document.getElementById('menu').style.visibility</span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(0, 0, 0);">'visible'(hidden)</span></div><img src ="http://www.cnitblog.com/cauchy/aggbug/18323.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/cauchy/" target="_blank">Cauchy</a> 2006-10-24 10:59 <a href="http://www.cnitblog.com/cauchy/articles/18323.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>