<!-- sub checkall
for each cb in document.custlist.elements if cb.name<>"allbox" then cb.checked=document.custlist.allbox.checked end if next end sub --> 一个有用的asp小函数,用来选中所有的复选框~~ 这样调用 <input name="allbox" type="checkbox" value="check all" onclick="checkall"> 这个小函数可以用在asp调用数据库列出的较长的选单上,一下全部选中,非常方便。 
|