function checkQQ(){
var soicq=/^\d{6,8}$/;
if (document.theForm.OICQ.value!=""){
if (!soicq.test(document.theForm.OICQ.value)){
alert('OICQ填写有误,应为 6-8 位的数字');
document.theform.oicq.focus();
document.theform.oicq.select();
return false;
}
}
}
var soicq=/^\d{6,8}$/;
if (document.theForm.OICQ.value!=""){
if (!soicq.test(document.theForm.OICQ.value)){
alert('OICQ填写有误,应为 6-8 位的数字');
document.theform.oicq.focus();
document.theform.oicq.select();
return false;
}
}
}
QQ有5位的啊,我认识2个人都是5位号码的。如果将来有了更长的,程序还要更新
我建议:去腾讯BBS上找一下,有2个用VBS和PHP写的检查图标的程序。如果,图标存在,则该号码存在,否则就不存在。很简单吧?
http://bbs.tencent.com/cgi-bin/bbs/bbs_show_content?groupid=102:10054&messageid=46334