document.writeln("
"); document.writeln(""); //document.writeln(""); $(function(){ $(".login_load_b").ajaxSend(function(){ $(this).show(); }).ajaxComplete(function(){ $(this).hide(); }); $("#login_submit_b").click(function(){ if(!$("#login_name_b").val()) { alert("用户名不能为空"); return false; } if(!$("#login_pwd_b").val()) { alert("密码不能为空"); return false; } $.post("http://www.chlahr.com/login/per_3.html","login_name="+$("#login_name_b").val()+"&login_pwd="+$("#login_pwd_b").val()+"",function(m){ if(m=='-4') { alert("非法登陆"); } else if(m=='-1') { alert("用户名错误"); } else if(m=='-2') { alert("密码错误"); } else if(m=='-3') { alert("未知错误"); } else { $("#login_personal_js_b").html('请稍等......'); window.location.reload(); /// window.location.href="http://www.chlahr.com/management.html"; } },'text'); }); $(".logout_b").click(function(){ $.post("http://www.chlahr.com/login/per_logout.html","",function(){ $("#login_personal_js_b").html('请稍等......'); window.location.reload(); },'text'); }); });