I have implemented this two weeks ago in an application for the company i work for.....on the 19th Sept...just checked the repository. Heres the code
<script type="text/javascript">
var CheckBoxMultiSelect = {
mouseIsDown: false,
checkBoxIsChecked: false,
initialCheckBox: null,
setMouseIsDown: function(elem, event, value) {
this.mouseIsDown = value;
if ('INPUT' == elem.nodeName) {
this.initialCheckBox = elem;
this.checkBoxIsChecked = !elem.checked;
}
else
this.initialCheckBox = false;
},
onCheckboxMouseOver: function(elem, event) {
if (this.mouseIsDown) {
if ((this.initialCheckBox) && (elem != this.initialCheckBox)) {
this.initialCheckBox.checked = this.checkBoxIsChecked;
this.initialCheckBox = null;
}
elem.checked = this.checkBoxIsChecked;
}
}
}
</script>
<body onmouseup="CheckBoxMultiSelect.setMouseIsDown(this, event, false)"> ....
<input .... onmouseover="CheckBoxMultiSelect.onCheckboxMouseOver(this, event)" onmousedown="CheckBoxMultiSelect.setMouseIsDown(this, event, true)"/> ....
</body>
Do I have to remove this code now?