← Back to Users
thred's activity in the archive.
It is more like a table top game than a simulation. Easy to learn, hard to master...
After a week long discussion Federal Chancellor Faymann just announced, Austria won't pull out of CERN (news Austrian Television (Google Translated)).
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?
It is more like a table top game than a simulation. Easy to learn, hard to master...
After a week long discussion Federal Chancellor Faymann just announced, Austria won't pull out of CERN (news Austrian Television (Google Translated)).
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
....
.... onmouseover="CheckBoxMultiSelect.onCheckboxMouseOver(this, event)" onmousedown="CheckBoxMultiSelect.setMouseIsDown(this, event, true)"/> ....
<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
</body>
Do I have to remove this code now?