Warning: Undefined array key "HTTP_REFERER" in /www/wwwroot/prod/www.enjoyasp.net/wp-content/plugins/google-highlight/google-hilite.php on line 58
?<asp:TextBox ID=”txtTel” runat=”server” CssClass=”MustInputText” Width=”164″ AutoPostBack=”true”
??????????????? OnTextChanged=”txtTel_TextChanged” onkeydown=”check(this);” onkeyup=”check(this);” onchange=”return check(this);”></asp:TextBox>
? function check( tel ){
???????????? var e?? =?? window.event
??????????? //alert(e.keyCode);
?????????? ? if (e.keyCode == 8 ||e.keyCode ==46 || e.keyCode == 35 ||e.keyCode ==36||e.keyCode ==37||e.keyCode ==38||e.keyCode ==39||e.keyCode ==40 ){
?????????????? //避免backspace,delete,上、下、左、右、home,end不可用
??????????? }else{
??????????? tel.value = tel.value.replace(” “,””).replace(“\\”,”,”).replace(“-“,””).replace(“?”,””).replace(“(“,””).replace(“)”,””).replace(“(”,””).replace(“)”,””).replace(“、”,”,”).replace(“,”,”,”);
??????????? //alert(tel.length);
??????????? tel.focus();
??????????? if (tel.value.length>8){
??????????????? setTimeout(‘__doPostBack(\’txtTel\’,\’\’)’, 0);
??????????? }}
??????? }