求VB脱壳注册指点谜径
<!--主体容器--><!--注册弹窗 start -->
<script type="text/javascript">
var sWrong = '<img src="/Public/images/ico_awrong.gif" />';
var sTick = '<img src="/Public/images/ico_atick.gif" />';
$(document).ready(function(){
var PurProgam=2;
var Purrol='out';
Test ='off';
if(PurProgam==2){
$('.pur_place_top').attr('height',20);
$('.pur_place').attr('height',13);
$('.pur_progame_2').show();
}
var isUserName = false;
var UserNameTip={a:'6~15个字符,不区分大小写',b:'该账号可以使用',c:'账号不符合规定长度',d:'账号不能含除字母,数字外特殊符号',e:'账号不能含有敏感词',f:'该账号已被注册'};
$('#UserName').blur(function(){
if(isUserName==false)
$("#UserNameTip").css('color','#FF0000');
if( '' == $('#UserName').val()){
$("#UserNameTip").css('color','#FFA200');
$('#UserNameTip').html(UserNameTip.a);
$(this).parent().next().html('*');
isUserName = false;
return false;
}
var $UserName = $(this);
var thisval = $UserName.val();
var reg = /^[a-zA-Z0-9]{6,15}$/;
if(thisval.length<6||thisval.length>15){
$UserName.parent().next().empty().append($(sWrong));
var msg=UserNameTip.c;
isUserName = false;
$('#UserNameTip').html(msg);
}
else if(thisval!=''&&thisval!=UserNameTip.a){
$UserName.next().html('');
if( reg.test(thisval) ){
$.post('/index.php?s=/Reg/regcheck',{UserName:thisval},function(date){
if( date == 'false'){
var msg=UserNameTip.b;
$("#UserNameTip").css('color','#7EFF00');
$UserName.parent().next().empty().append($(sTick));
isUserName = true;
}else{
var msg=UserNameTip.f;
$("#UserNameTip").css('color','#FF0000');
$UserName.parent().next().empty().append($(sWrong));
isUserName = false;
}
$('#UserNameTip').html(msg);
});
}else{
$UserName.parent().next().empty().append($(sWrong));
var msg=UserNameTip.d;
$("#UserNameTip").css('color','#FF0000');
isUserName = false;
$('#UserNameTip').html(msg);
}
}
});
var isUserPwd = false;
var UserPwdTip={a:'6~20个字符,并且区分大小写',b:'密码符合规则',c:'密码过于简单',d:'密码超过最大限度',e:'密码含有非法字符',f:'密码不可与账号一致'};
$('#UserPwd').blur(function(){
if(isUserPwd ==false)
$("#UserPwdTip").css('color','#FF0000');
var $isUserPwd = $(this);
var thisval = $isUserPwd.val();
if( '' == $isUserPwd.val()){
$("#UserPwdTip").css('color','#FFA200');
$('#UserPwdTip').html(UserPwdTip.a);
$(this).parent().next().html('*');
isUserPwd = false;
return false;
}
if(thisval.length<6&&thisval!=''){
var msg=UserPwdTip.c;
$("#UserPwdTip").css('color','#FF0000');
$isUserPwd.parent().next().empty().append($(sWrong));
isUserPwd = false;
}
else if(thisval.length>20){
var msg=UserPwdTip.d;
$("#UserPwdTip").css('color','#FF0000');
$isUserPwd.parent().next().empty().append($(sWrong));
isUserPwd = false;
}
else if(thisval==$('#UserName').val()){
var msg=UserPwdTip.f;
$("#UserPwdTip").css('color','#FF0000');
$isUserPwd.parent().next().empty().append($(sWrong));
isUserPwd = false;
}
else if($isUserPwd.val()!=''&&$isUserPwd.val()!=UserPwdTip.a){
$isUserPwd.next().html('');
var reg = /^[\w\~\!\@\#\$\%\^\&\*\(\)\-\_\+\=\\\|\{}:;\"'?<,.>/]{6,20}$/;
if( reg.test(thisval) ){
var msg=UserPwdTip.b;
$isUserPwd.parent().next().empty().append($(sTick));
$("#UserPwdTip").css('color','#7EFF00');
isUserPwd = true;
}else{
$("#UserPwdTip").css('color','#FF0000');
var msg=UserPwdTip.e;
$isUserPwd.parent().next().empty().append($(sWrong));
isUserPwd = false;
}
}
$('#UserPwdTip').html(msg);
});
var isUserPwd2 = false;
var UserPwdTip2={a:'与上面输入的密码一致',b:'密码一致',c:'两次输入的密码不一致'};
$('#UserPwd2').blur(function(){
if( isUserPwd2 ==false)
$("#UserPwd2Tip").css('color','#FF0000');
var $UserPwd2 = $(this);
var thisval = $UserPwd2.val();
var Pwd1 = $('#UserPwd').val();
if( '' == thisval){
$("#UserPwd2Tip").css('color','#FFA200');
$('#UserPwd2Tip').html(UserPwdTip2.a);
$(this).parent().next().html('*');
isUserPwd2 = false;
return false;
}
if(thisval!=''&&thisval!=UserPwdTip2.a){
$UserPwd2.next().html('');
if( thisval != '' && thisval == Pwd1 ){
var msg=UserPwdTip2.b;
$UserPwd2.parent().next().empty().append($(sTick));
$("#UserPwd2Tip").css('color','#7EFF00');
isUserPwd2 = true;
}else{
var msg=UserPwdTip2.c;
$("#UserPwd2Tip").css('color','#FF0000');
$UserPwd2.parent().next().empty().append($(sWrong));
isUserPwd2 = false;
}
$('#UserPwd2Tip').html(msg);
}
});
if(PurProgam==2){
var isIdCard=false;
var IdCardTip={a:'请正确填写真实身份证号码',b:'通过验证',c:'身份证输入错误'};
$('#IdCard').blur(function(){
if( isIdCard ==false)
$("#IdCardTip").css('color','#FF0000');
if( '' == $('#IdCard').val()){
$("#IdCardTip").css('color','#FFA200');
$('#IdCardTip').html(IdCardTip.a);
$(this).parent().next().html('*');
isIdCard = false;
return false;
}
var $IdCard = $(this);
var thisval = $IdCard.val();
var reg =/^(\d{18,18}|\d{15,15}|\d{17,17}[x,X])$/;
if(!reg.test(thisval)){
$("#IdCardTip").css('color','#FF0000');
$IdCard.parent().next().empty().append($(sWrong));
var msg=IdCardTip.c;
isIdCard = false;
$('#IdCardTip').html(msg);
}
else{
$.post('/index.php?s=/Reg/regcheck',{IdCard:thisval},function(date){
if( date == 'true'){
var msg=IdCardTip.b;
$("#IdCardTip").css('color','#7EFF00');
$IdCard.parent().next().empty().append($(sTick));
isIdCard = true;
}else{
var msg=IdCardTip.c;
$("#IdCardTip").css('color','#FF0000');
$IdCard.parent().next().empty().append($(sWrong));
isIdCard = false;
}
$('#IdCardTip').html(msg);
});
}
})
这D码是www.网页上注册的一D,我搞了好久就是搞不定.求上面这D码注册怎么用vb进行自行提交,不用打开他这个注册页面,新手菜鸟求教