show_userinfo.innerHTML="

会员登录

注册投稿
  • 账号
  • 密码
  • ";var WebUrl="http://www.ziweicn.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); $("#ikaimi_bg").fadeOut(0); $("#ikaimi_login").hide(); $('#shortinfo').html('') } } }) }); function LogOut(){ $.post(WebUrl+"e/member/AjaxLog/?enews=exit",function(msg){ if(msg=='exitsuccess'){ $("#show_userinfo").html('

    会员登录

    注册投稿
  • 账号
  • 密码
  • '); $('#shortinfo').html("

    会员登录

    注册投稿
  • 账号
  • 密码
  • "); } }) } function MM_openBrWindow(theURL,winName,features) {window.open(theURL,winName,features);}