",{id:"slideVerifyPanel",html:'
'}).appendTo($b),s.fnSubmit=function(){if(e.slideVerify.open){var i=e.slideVerify.rootPath,m=$("#slideVerifyPanel");$(".contain",m).slideVerify({type:2,vOffset:10,vSpace:0,imgSize:{width:"100%",height:"62.5%"},imgName:e.imgs?e.imgs:[i+"images/yzmIMG/A.jpg",i+"images/yzmIMG/B.jpg",i+"images/yzmIMG/C.jpg",i+"images/yzmIMG/D.jpg",i+"images/yzmIMG/E.jpg",i+"images/yzmIMG/F.jpg",i+"images/yzmIMG/G.jpg",i+"images/yzmIMG/H.jpg",i+"images/yzmIMG/I.jpg",i+"images/yzmIMG/J.jpg",i+"images/yzmIMG/K.jpg",i+"images/yzmIMG/L.jpg",i+"images/yzmIMG/M.jpg",i+"images/yzmIMG/N.jpg",i+"images/yzmIMG/O.jpg",i+"images/yzmIMG/P.jpg",i+"images/yzmIMG/Q.jpg",i+"images/yzmIMG/R.jpg",i+"images/yzmIMG/S.jpg",i+"images/yzmIMG/T.jpg",i+"images/yzmIMG/U.jpg",i+"images/yzmIMG/V.jpg",i+"images/yzmIMG/W.jpg",i+"images/yzmIMG/X.jpg",i+"images/yzmIMG/Y.jpg",i+"images/yzmIMG/Z.jpg"],ready:function(i){m.addClass("show").find(".zhezhao").click(function(e){m.removeClass("show")}),e.slideVerify.ready&&e.slideVerify.ready.call(this,$(s))},success:function(i){setTimeout(function(){m.removeClass("show"),e.ajaxSubmit&&e.ajaxSubmit.call(this,$(s)),e.slideVerify.success&&e.slideVerify.success.call(this,$(s))},500)},error:function(i){e.slideVerify.error&&e.slideVerify.error.call(this,$(s))}})}else e.ajaxSubmit&&e.ajaxSubmit.call(this,$(s))}}),this}});
// slideverify.min.js
;(function($,window,document,undefined){var Code=function(ele,opt){this.$element=ele,this.defaults={type:1,figure:100,arith:0,width:'200px',height:'60px',fontSize:'30px',codeLength:6,btnId:'check-btn',ready:function(){},success:function(){},error:function(){}},this.options=$.extend({},this.defaults,opt)};var _code_chars=[0,1,2,3,4,5,6,7,8,9,'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'];var _code_color1=['#fffff0','#f0ffff','#f0fff0','#fff0f0'];var _code_color2=['#FF0033','#006699','#993366','#FF9900','#66CC66','#FF33CC'];Code.prototype={init:function(){var _this=this;this.loadDom();this.setCode();this.options.ready();this.$element[0].onselectstart=document.body.ondrag=function(){return false;};this.$element.find('.verify-code, .verify-change-code').on('click',function(){_this.setCode();});this.htmlDoms.code_btn.on('click',function(){_this.checkCode();})},loadDom:function(){var panelHtml='
';this.$element.append(panelHtml);this.htmlDoms={code_btn:$('#'+this.options.btnId),code:this.$element.find('.verify-code'),code_area:this.$element.find('.verify-code-area'),code_input:this.$element.find('.varify-input-code'),};this.htmlDoms.code.css({'width':this.options.width,'height':this.options.height,'line-height':this.options.height,'font-size':this.options.fontSize});this.htmlDoms.code_area.css({'width':this.options.width});},setCode:function(){var color1Num=Math.floor(Math.random()*3);var color2Num=Math.floor(Math.random()*5);this.htmlDoms.code.css({'background-color':_code_color1[color1Num],'color':_code_color2[color2Num]});this.htmlDoms.code_input.val('');var code='';this.code_chose='';if(this.options.type==1){for(var i=0;i
'+_code_chars[charNum]+'';}}else{var num1=Math.floor(Math.random()*this.options.figure);var num2=Math.floor(Math.random()*this.options.figure);if(this.options.arith==0){var tmparith=Math.floor(Math.random()*3);} switch(tmparith){case 1:this.code_chose=parseInt(num1)+parseInt(num2);code=num1+' + '+num2+' = ?';break;case 2:if(parseInt(num1)
';tmpHtml='