function dszlshow() { $("#dszl").css("display", "block"); } function dszlhide() { $("#dszl").css("display", "none"); } $(document).ready(function () { $("#dszl").hover(function () { $(this).show(); }, function () { $(this).hide(); }); $(".menuid").hover(function () { $(this).addClass("hover"); }, function () { $(this).removeClass("hover"); }); }); $(function () { $('#txtPwd').bind('keypress', function (event) { if (event.keyCode == "13") { AjaxLogin(); } }); }); function AjaxLogin() { var name = $("#txtName").val(); var pwd = $("#txtPwd").val(); if (name == "" || name == null) { alert("请输入用户名!"); $("#txtName").focus(); return; } if (pwd == "" || pwd == null) { alert("请输入密码!"); $("#txtPwd").focus(); return; } $.ajax({ type: "POST", url: "/ashx/front.ashx", cache: false, async: true, datatype: "text", data: { FunctionName: "login", LoginName: name, LoginPwd: pwd }, success: function (msg) { if (msg == "fail1") { alert("参数错误!"); // $("#txtName").val(""); // $("#txtPwd").val(""); // $("#txtName").focus(); return; } if (msg == "" || msg == null) { alert("参数错误!"); return; } if (msg == "fail") { alert("用户名或密码错误!"); // $("#txtName").val(""); // $("#txtPwd").val(""); // $("#txtName").focus(); return; } if (msg == "notok") { alert("对不起,您还未通过审核!"); $("#txtName").val(""); $("#txtPwd").val(""); $("#txtName").focus(); return; } if (msg == "success") { //alert("登录成功!"); window.location.reload(); return; } } }); }
欢迎访问海峡语文网,今天是:
图说语文
语文学习评价权威门户   var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://"); document.write(unescape("%3Cspan id='cnzz_stat_icon_1253412178'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "v1.cnzz.com/z_stat.php%3Fid%3D1253412178%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));