<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[沧海一粟]]></title> 
<link>http://www.dzhope.com/index.php</link> 
<description><![CDATA[Web系统架构与服务器运维,php开发]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[沧海一粟]]></copyright>
<item>
<link>http://www.dzhope.com/post//</link>
<title><![CDATA[Javscript实现表单复选框的全选功能 ]]></title> 
<author>jed &lt;jed521@163.com&gt;</author>
<category><![CDATA[代码编程]]></category>
<pubDate>Tue, 10 Oct 2006 02:15:48 +0000</pubDate> 
<guid>http://www.dzhope.com/post//</guid> 
<description>
<![CDATA[ 
	　有很多人不知道在多选框中全选怎么还编写代码。其实很简单，下面就是代码以及说明，请仔细阅读。<br/><br/><br/>&lt;script language=&quot;javascript&quot;&gt; <br/>//代码说明(lulu163.com)：form1为表单名，memberId为复选框，selectbutton为全选按钮 <br/> &nbsp; function selectAll() &nbsp;<br/> &nbsp; { <br/>for (var i=0;i&lt;document.form1.memberId.length;i++) { <br/>var temp=document.form1.memberId[i]; <br/>temp.checked=!temp.checked; <br/>} <br/> &nbsp; if (document.form1.selectButton.value==&quot;全部选择&quot;) <br/> &nbsp; { <br/> &nbsp; &nbsp; document.form1.selectButton.value=&quot;取消全选&quot;; <br/> &nbsp; } <br/> &nbsp; else <br/> &nbsp; { <br/> &nbsp; &nbsp; document.form1.selectButton.value=&quot;全部选择&quot;; <br/> &nbsp; } <br/>} <br/>&lt;/script&gt;<br/>　复选框(一个例子)<br/><br/>&lt;input name=&quot;memberId&quot; type=&quot;checkbox&quot; value=&quot;复选框值&quot;&gt;<br/><br/>　　全选按钮:<br/><br/>&lt;input type=&quot;button&quot; name=selectButton value=&quot;全部选择&quot; onClick=&quot;selectAll()&quot; style=&quot;cursor:hand;&quot;&gt;<br/><br/><br/>Tags - <a href="http://www.dzhope.com/tags/%25E5%25A4%258D%25E9%2580%2589/" rel="tag">复选</a>
]]>
</description>
</item><item>
<link>http://www.dzhope.com/post//#blogcomment</link>
<title><![CDATA[[评论] Javscript实现表单复选框的全选功能 ]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.dzhope.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>