js 代码
- //==================================================================================????
- //?Copyright?(c)?1998-2007?by?www.bizservice.com.cn,?All?rights?reserved.????
- //?Email:contact@bizservice.com.cn,?HangZhou,?China????
- //????
- //?This?software?is?the?confidential?and?proprietary?information?of????
- //?Bizservice.Com.Cn.?("Confidential?Information").?You?shall?not?disclose????
- //?such?Confidential?Information?and?shall?use?it?only?in?accordance????
- //?with?the?terms?of?the?license?agreement?you?entered?into?with?Bizservice.Com.Cn.????
- //==================================================================================????
- //?Author:?Wilson?Lin????
- //?Date:?2004-6-15?14:19:50????
- //?Description:????????
- //?????无????
- //?Function?List:?????????
- //?????1.?无????
- //?History:????
- //?????1.?无????
- //==================================================================================????
- ????
- //?全选????
- function?checkAll(form)?{????
- ????for?(var?i=0;?i
- ???????var?e?=?form.elements[i];????
- ???????if?(e.type=="checkbox")????
- ???????????e.checked?=?true?;????
- ????}????
- }????
- ????
- //?全不选????
- function?checkNotAll(form)?{????
- ????for?(var?i=0;?i
- ???????var?e?=?form.elements[i];????
- ???????if?(e.type=="checkbox")????
- ???????????e.checked?=?false?;????
- ????}????
- }????
- ????
- //?是否有选中的项????
- function?isChecked(form){????
- ????for?(var?i=0;?i
- ???????var?e?=?form.elements[i];????
- ???????if?(e.type=="checkbox"){????
- ???????????if(e.checked){????
- ??????????????return?true;????
- ???????????}????
- ???????}????
- ????}????
- ????return?false;????
- }????
1 楼
i_love_sc
2007-10-26
就这几行破代码还加个版权,哎。
2 楼
congpeixue
2008-04-17
function doFlgCheckedCheck() {
if (document.mainForm.checkFlgArray != undefined) {
var len = document.mainForm.checkFlgArray.length;
var checkedCnt = 0;
if (len > 1){
for (var i = 0; i < len; i++){
if (document.mainForm.checkFlg[i].checked == true){
checkedCnt++;
}
if (checkedCnt < 1){
document.mainForm.document.mainForm.checkFlg[0].checked = true;
showAlert(SY001MCE0038);
return false;
}
}
} else {
if (document.mainForm.checkFlg.checked == true){
checkedCnt++;
}
if (checkedCnt < 1){
document.mainForm.document.mainForm.checkFlg.checked = true;
showAlert(SY001MCE0038);
return false;
}
}
}
return true;
}
if (document.mainForm.checkFlgArray != undefined) {
var len = document.mainForm.checkFlgArray.length;
var checkedCnt = 0;
if (len > 1){
for (var i = 0; i < len; i++){
if (document.mainForm.checkFlg[i].checked == true){
checkedCnt++;
}
if (checkedCnt < 1){
document.mainForm.document.mainForm.checkFlg[0].checked = true;
showAlert(SY001MCE0038);
return false;
}
}
} else {
if (document.mainForm.checkFlg.checked == true){
checkedCnt++;
}
if (checkedCnt < 1){
document.mainForm.document.mainForm.checkFlg.checked = true;
showAlert(SY001MCE0038);
return false;
}
}
}
return true;
}
3 楼
melin
2008-04-17
i_love_sc 写道
就这几行破代码还加个版权,哎。