老是有人发符号,我给你屏蔽掉,看你还怎么发 ,不信搞不似你们?
...嘿嘿!!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""> <html xmlns=""> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>无标题文档</title> <script language="javascript"> function check(form1){ var strname=form1.aa.value; for (var i=0; i<strname.length; i++) { var acc=strname.charCodeAt(i); if(acc>=0&&acc<48&&acc!=46){ alert(acc); return false; } if(acc>57 && acc<65){ alert(acc); return false; } if(acc>90 && acc<97){ alert(acc); return false; } if(acc>122 && acc<=127){ alert(acc); return false; } } } </script> </head>
<body> <table width="724" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="147" height="140"> </td> <td width="463"> </td> <td width="114"> </td> </tr> <tr> <td height="105"> </td> <td valign="top"><form id="form1" name="form1" method="post"> <label> <input type="text" name="aa" /> </label> <label> <input type="submit" value="提交" onclick="check(form1)" /> </label> </form> </td> <td> </td> </tr> <tr> <td height="50"> </td> <td> </td> <td> </td> </tr> </table> </body> </html>
|
阅读(1627) | 评论(0) | 转发(0) |