show_userinfo.innerHTML="
  • 用户登录

    使用合作网站帐号登录:

    QQ账号
  • ";var WebUrl="http://sj.youkelai.com/"; $("#login-sub").live('click',function(){ $('#errmsg').hide(); var user=$("#logusername").val(); //获取用户名输入框的值 var pass=$("#logpassword").val(); //获取密码输入框的值 if(document.getElementById("keeplogin").checked==true){ var lifetime=315360000; } if(user==""){ $('#errmsg').show().html("用户名不能为空!"); $("#username").focus(); return false }; if(user=="输入用户名"){ $('#errmsg').show().html("用户名不能为空!"); $("#username").focus(); return false }; if(pass==""){ $('#errmsg').show().html("密码不能为空!"); $("#password").focus(); return false }; $.ajax({ type:"POST",url:WebUrl+"e/member/AjaxLog/",dataType:"html",data:{ 'username':user,'password':pass,enews:'login','lifetime':lifetime //提交字段 } ,beforeSend:function(){ $('#errmsg').show().html(' 正在登陆...') } ,success:function(data){ if(data=='failuserid'){ $('#errmsg').show().html('用户名错误!') } else if(data=='failpassword'){ $('#errmsg').show().html('密码错误!') } else if(data=='failcheck'){ $('#errmsg').show().html('你的账号还没有激活,重发激活邮件!') } else{ $("#errmsg").hide(); $('#show_userinfo').show().html(data); $("#lean_overlay").fadeOut(200); $("#ikaimi_login").hide(); $('#shortinfo').html('
  • ') } } }) }); $("#login-sub-c").live('click',function(){ $('#errmsg-c').hide(); var user=$("#logusername-c").val(); //获取用户名输入框的值 var pass=$("#logpassword-c").val(); //获取密码输入框的值 if(document.getElementById("keeplogin").checked==true){ var lifetime=315360000; } if(user==""){ $('#errmsg-c').show().html("用户名不能为空!"); $("#username").focus(); return false }; if(user=="输入用户名"){ $('#errmsg-c').show().html("用户名不能为空!"); $("#username").focus(); return false }; if(pass==""){ $('#errmsg-c').show().html("密码不能为空!"); $("#password").focus(); return false }; $.ajax({ type:"POST",url:WebUrl+"e/member/AjaxLog/",dataType:"html",data:{ 'username':user,'password':pass,enews:'login','lifetime':lifetime //提交字段 } ,beforeSend:function(){ $('#errmsg-c').show().html(' 正在登陆...') } ,success:function(data){ if(data=='failuserid'){ $('#errmsg-c').show().html('用户名错误!') } else if(data=='failpassword'){ $('#errmsg-c').show().html('密码错误!') } else if(data=='failcheck'){ $('#errmsg-c').show().html('你的账号还没有激活,重发激活邮件!') } else{ $("#errmsg-c").hide(); $('#show_userinfo').show().html(data); $("#lean_overlay").fadeOut(200); $("#ikaimi_login").hide(); $('#shortinfo').html('
  • ') } } }) }); function LogOut(){ $.post(WebUrl+"e/member/ajaxlog/index.php?enews=exit",function(msg){ if(msg=='exitsuccess'){ $("#show_userinfo").html('
  • 用户登录

    使用合作网站帐号登录:

    QQ账号
  • '); $('#shortinfo').html("
  • 用户登录

    使用合作网站帐号登录:

    QQ账号
  • "); alert('退出成功!'); window.location.reload(); } }) } function AjaxReg(){ //self.location=WebUrl+'e/member/register/index.php?groupid=1'; AjaxLog(); switchTag('_xka','_xka_list',2,2,'conxk1','conxk2'); } function CheckReg(key,value){ if(value!=''){ var data = {},key=key; data['enews']='register'; data[key]=value; if(key=='repassword'){ var pass=$("#password").val(); //获取密码输入框的值 data['password']=pass; } $.ajax({ type:"POST",url:WebUrl+"e/member/AjaxLog/",dataType:"html",data:data ,beforeSend:function(){ $('.'+key).html('') } ,success:function(msg){ if(!msg){ $('.'+key).html(''); //这里的代码已函数checkpass()里面的一段代码相对应! checkpass(); }else{ $('.'+key).html(''+msg+''); checkpass('all'); return false; } } }); }else{ $('.'+key).html('不允许为空!'); } } function checkpass(all){ var user=$("#username").val(); var username=$(".username").html(); var pass=$(".password").html(); var pass2=$(".repassword").html(); var email=$(".email").html(); if(username==pass && pass2==email && pass==pass2 && document.getElementById("checkin").checked==true && username!='' && user!=''){ $('#Reg-sub').removeAttr('disabled'); $('#checkreg').show().html('全部填写正确!'); }else{ document.getElementById("Reg-sub").disabled = true; $('#checkreg').hide(); if(all){ $('#checkreg').show().html('有必选项没填写正确!'); } } } (function($){ $.fn.extend({ leanModal:function(options){ var defaults={ top:100,overlay:0.5,closeButton:null }; var overlay=$("
    "); $("body").append(overlay); options=$.extend(defaults,options); return this.each(function(){ var o=options; $(this).click(function(e){ var modal_id=$(this).attr("href"); $("#lean_overlay").click(function(){ close_modal(modal_id) }); $(o.closeButton).click(function(){ close_modal(modal_id) }); var modal_height=$(modal_id).outerHeight(); var modal_width=$(modal_id).outerWidth(); $("#lean_overlay").css({ "display":"block",opacity:0 }); $("#lean_overlay").fadeTo(200,o.overlay); $(modal_id).css({ "display":"block","position":"fixed","opacity":0,"z-index":11000,"left":50+"%","margin-left":-(modal_width/2)+"px","top":o.top+"%" }); $(modal_id).fadeTo(200,1); e.preventDefault() }) }); function close_modal(modal_id){ $("#lean_overlay").fadeOut(200); $(modal_id).css({ "display":"none" }) } } }) })(jQuery); function switchTag(tag,content,k,n,stylea,styleb){for(i=1;i<=n;i++){if(i==k){document.getElementById(tag+i).className=stylea;document.getElementById(content+i).className="showbox"}else{document.getElementById(tag+i).className=styleb;document.getElementById(content+i).className="hidden"}}}; /*登录框代码*/ document.writeln("
    "); document.writeln("
    "); document.writeln(" ×"); document.writeln("
    "); document.writeln("
    "); document.writeln("
    "); document.writeln("
    "); document.writeln("
    "); document.writeln(""); document.writeln("
    "); document.writeln("
    "); document.writeln(""); document.writeln("
    "); document.writeln("
    "); document.writeln(""); document.writeln("
    "); document.writeln("
    "); document.writeln(" 记住我"); document.writeln("忘记密码?"); document.writeln("
    "); document.writeln("
    "); document.writeln(""); document.writeln(""); document.writeln(""); document.writeln(""); document.writeln("
    "); document.writeln("
    "); document.writeln("
  •  
  • "); document.writeln("
    "); document.writeln("
    "); document.writeln("
    "); document.writeln(""); document.writeln("
    "); document.writeln("
    "); document.writeln(""); document.writeln(""); document.writeln("
    "); document.writeln("
    "); document.writeln(""); document.writeln("
    "); document.writeln(""); document.writeln(""); document.writeln(""); document.writeln("
    "); document.writeln("
      "); document.writeln("
    • 用户名:
    • "); document.writeln("
    "); document.writeln("
      "); document.writeln("
    • 密码:
    • "); document.writeln("
    "); document.writeln("
      "); document.writeln("
    • 重复密码:
    • "); document.writeln("
    "); document.writeln("
      "); document.writeln("
    • 激活邮箱:
    • "); document.writeln("
    "); document.writeln("
      "); document.writeln("
    •  
    •  我已阅读并接受《服务条款》
    • "); document.writeln("
    "); document.writeln("
    "); document.writeln(""); document.writeln(""); document.writeln(""); document.writeln(""); document.writeln("
    "); document.writeln("
    "); document.writeln("
  •  
  • "); document.writeln("
    "); document.writeln("
    "); document.writeln("
    "); document.writeln("
    "); document.writeln(""); document.writeln("
    "); document.writeln("
    "); document.writeln("
    "); document.writeln("
    "); document.writeln("
    "); document.writeln(""); function AjaxLog(){document.getElementById('AjaxLog').click();switchTag('_xka','_xka_list',1,2,'conxk1','conxk2');}$('.close').click(function(){$("#lean_overlay").fadeOut(200);$("#ikaimi_login").hide();}); function MM_openBrWindow(theURL,winName,features) {window.open(theURL,winName,features);}