| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 2816 人关注过本帖
标题:求VB脱壳注册指点谜径
只看楼主 加入收藏
tyms
Rank: 1
等 级:新手上路
帖 子:17
专家分:0
注 册:2012-9-6
结帖率:71.43%
收藏
已结贴  问题点数:5 回复次数:2 
求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进行自行提交,不用打开他这个注册页面,新手菜鸟求教
搜索更多相关主题的帖子: javascript function document images false 
2013-08-05 10:35
Artless
Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19
等 级:贵宾
威 望:103
帖 子:4211
专家分:28888
注 册:2009-4-8
收藏
得分:3 

无知
2013-08-07 11:07
可靠的李颖
Rank: 2
等 级:论坛游民
帖 子:20
专家分:24
注 册:2013-6-17
收藏
得分:3 
w
2013-08-10 11:09
快速回复:求VB脱壳注册指点谜径
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.093435 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved