日期:2014-05-17  浏览次数:20889 次

DHTML checkbox 选择的几种应用方法
js 代码
?
  1. //==================================================================================????
  2. //?Copyright?(c)?1998-2007?by?www.bizservice.com.cn,?All?rights?reserved.????
  3. //?Email:contact@bizservice.com.cn,?HangZhou,?China????
  4. //????
  5. //?This?software?is?the?confidential?and?proprietary?information?of????
  6. //?Bizservice.Com.Cn.?("Confidential?Information").?You?shall?not?disclose????
  7. //?such?Confidential?Information?and?shall?use?it?only?in?accordance????
  8. //?with?the?terms?of?the?license?agreement?you?entered?into?with?Bizservice.Com.Cn.????
  9. //==================================================================================????
  10. //?Author:?Wilson?Lin????
  11. //?Date:?2004-6-15?14:19:50????
  12. //?Description:????????
  13. //?????无????
  14. //?Function?List:?????????
  15. //?????1.?无????
  16. //?History:????
  17. //?????1.?无????
  18. //==================================================================================????
  19. ????
  20. //?全选????
  21. function?checkAll(form)?{????
  22. ????for?(var?i=0;?i
  23. ???????var?e?=?form.elements[i];????
  24. ???????if?(e.type=="checkbox")????
  25. ???????????e.checked?=?true?;????
  26. ????}????
  27. }????
  28. ????
  29. //?全不选????
  30. function?checkNotAll(form)?{????
  31. ????for?(var?i=0;?i
  32. ???????var?e?=?form.elements[i];????
  33. ???????if?(e.type=="checkbox")????