The restriction can only be code that writes restricted things The ENTER key can move the cursor to the next input box: can only be Chinese: can only It’s English and numbers. The input method is blocked: Only English and numbers can be input: Only numbers can be input Only Display, text box that cannot be modified Only numbers can be entered in the input and prompts when submitting A new window pops up when the drop-down list opens and the connection is selected More links... cnbruce daonet
blue!dea A checkbox, after clicking, all the checkboxes in a group are selected a Select the option in the select to classify the list --------- ---Please select------------
Original Creation
Classic
asp&sql
php&mysql
Prompt to limit the number of characters entered
Determine the limit of the number of words Maximum word count: Used word count: Remaining word count:
Register reading time waiting button Welcome Register Ash BLOG: Several Terms...
(15)" name="agreeb"> <script> <BR>function onlyNum() <BR>{ <BR>if(!((event.keyCode>=48&&event.keyCode<=57)||(event.keyCode>=96&&event.keyCode<=105)||(event.keyCode==8))) <BR>event.returnValue=false; <BR>} <BR></script><script> <BR><!-- <BR>function SymError() <BR>{ <BR> return true; <BR>} <BR>window.onerror = SymError; <BR>function strlength(str){ <BR> var l=str.length; <BR> var n=l <BR> for (var i=0;i<l;i++) <BR> { <BR> if (str.charCodeAt(i)<0||str.charCodeAt(i)>255) n++ <BR> } <BR> return n <BR>} <BR>function changebyte(value,length){ <BR> var l=strlength(value) <BR> if (l<=length) { <BR> if (document.all!=null) document.all("byte").innerText="还可以输入"+(length-l)+"字节" <BR> } <BR> else <BR> { <BR> document.all("byte").innerText="输入字节数超出范围" <BR> } <BR> return true <BR>} <BR>function changebyte1(value,length){ <BR> var l=strlength(value) <BR> if (l<=length) { <BR> if (document.all!=null) document.all("byte1").innerText="还可以输入"+(length-l)+"字节" <BR> } <BR> else <BR> { <BR> document.all("byte1").innerText="输入字节数超出范围" <BR> } <BR> return true <BR>} <BR>function changebyte2(value,length){ <BR> var l=strlength(value) <BR> if (l<=length) { <BR> if (document.all!=null) document.all("byte2").innerText="还可以输入"+(length-l)+"字节" <BR> } <BR> else <BR> { <BR> document.all("byte2").innerText="输入字节数超出范围" <BR> } <BR> return true <BR>} <BR></script> <script>changebyte1(document.test.icqcontent.value,198);</script><script> <BR>function gbcount(message,total,used,remain) <BR>{ <BR> var max; <BR> max = total.value; <BR> if(message.value.length > max){ <BR> message.value = message.value.substring(0,max); <BR> used.value = max; <BR> remain.value = 0; <BR> alert('留言不能超过规定的字数!'); <BR> } <BR> else{ <BR> used.value = message.value.length; <BR> remain.value = max - used.value; <BR> } <BR>} <BR></script> <script> <BR><!-- <BR>var secs = 15; <BR>document.agree.agreeb.disabled=true; <BR>for(i=1;i<=secs;i++) { <BR> window.setTimeout("update(" + i + ")", i * 1000); <BR>} <BR>function update(num) { <BR> if(num == secs) { <BR> document.agree.agreeb.value =" 我 同 意 "; <BR> document.agree.agreeb.disabled=false; <BR> } <BR>else { <BR> printnr = secs-num; <BR> document.agree.agreeb.value = "请认真查看<服务条款和声明> (" + printnr +")"; <BR> } <BR>} <BR>//--> <BR></script>