我的网站:http://www.ershou027.com 在这个页面:http://www.ershou027.com/xinximemo.asp?cnmai=104有个小错误,就是点击“察看IP”按钮,页面左下脚状态栏会出现错误提示:“网页上有错误”,双击那个提示说是“行179,缺少对象”,本人技术不过关,不知道是怎么回事。请各位高手大虾支援帮助一下哦,谢谢了。祝各位端午节快乐,儿童节快乐,天天快乐。 附件是该页的ASP代码
<FORM METHOD=POST ACTION="http://www.ip138.com/ips.asp" target="_blank" name="ipform" onsubmit="return checkIP();" 删掉应该OK吧。好像你的页面里没有checkIP
</head>前面加入: HTML: <SCRIPT LANGUAGE="JavaScript"> <!-- function checkIP() { var ipArray,ip,j; ip = document.ipform.ip.value; if(/[A-Za-z_-]/.test(ip)){ if(!/^([\w-]+\.)+((com)|(net)|(org)|(gov\.cn)|(info)|(cc)|(com\.cn)|(net\.cn)|(org\.cn)|(name)|(biz)|(tv)|(cn))$/.test(ip)){ alert("不是正确的域名"); document.ipform.ip.focus(); return false; } } else{ ipArray = ip.split("."); j = ipArray.length if(j!=4) { alert("不是正确的IP"); document.ipform.ip.focus(); return false; } for(var i=0;i<4;i++) { if(ipArray[i].length==0 || ipArray[i]>255) { alert("不是正确的IP"); document.ipform.ip.focus(); return false; } } } } //--> </SCRIPT>