t onkeypress = "return regInput(this, /^[a-e]*$/, String.fromCharCode(event.keyCode))"onpaste = "return regInput(this, /^[a-e]*$/, window.clipboardData.getData('Text'))"ondrop = "return regInput(this, /^[a-e]*$/, event.dataTransfer.getData('Text'))"style="ime-mode:Disabled"> 范围: a,b,c,d,e<br>部分中文:<xmp style="display:inline"> </xmp><script language=javascript>function checkChinese(oldLength, obj){var oTR = window.document.selection.createRange()var reg = /[^一二三四五六七八九十]/goTR.moveStart("character", -1*(obj.value.length-oldLength))oTR.text = oTR.text.replace(reg, "")}</script><input onkeypress="return false" onkeydown="setTimeout('checkChinese('+this.value.length+','+this.uniqueID+')', 1)"onpaste = "return regInput(this, /^[一二三四五六七八九十]*$/, window.clipboardData.getData('Text'))"ondrop = "return regInput(this, /^[一二三四五六七八九十]*$/, event.dataTransfer.getData('Text'))"> 范围: 一二三四五六七八九十<br> |