<div class="htmlarea"> <textarea id="runcode61542"> <script> function checkMobile(){ var sMobile = document.mobileform.mobile.value if(!(/^1[3|5][0-9]\d{4,8}$/.test(sMobile))){ alert("不是完整的11位手机号或者正确的手机号前七位"); document.mobileform.mobile.focus(); return false; } window.open('', 'mobilewindow', 'height=197,width=350,status=yes,toolbar=no,menubar=no,location=no') } //--> </script> <form method="POST" action="http://www.ip138.com:8080/search.asp" name="mobileform" target="mobilewindow" onsubmit="return checkMobile();"> <tr> <td height="25" bgcolor="#F5F5F5">手机:</td> <td colspan="3" bgcolor="#F5F5F5" style="color:#FF0000"> <input type="text" name="mobile" size="16" style="border:1px solid #030303" value="13775841738"> <input name="submit" type="submit" value="手机归属地查询"> <input type="hidden" name="action" value="mobile"> </td> </tr> </form> </textarea><br><input onclick="runEx('runcode61542')" type="button" value="运行代码"> <input onclick="doCopy('runcode61542')" type="button" value="复制代码"> <input onclick="doSave(runcode61542)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</div>