$("#btnPost").click(function(){ var strUserName=$("#edtUserName").val(); var strPassWord=$("#edtPassWord").val(); var strSaveDate=$("#savedate").val() if (strUserName=== "" || strPassWord === ""){ alert("用户名,密码或验证码不能为空"); return false; } $("#edtUserName").remove(); $("#edtPassWord").remove(); $("#chkRemember").remove(); $("#form1").attr("action","https://www.zhengzaiji.com/zb_system/cmd.php?act=verify"); $("#username").val(strUserName); $("#password").val(MD5(strPassWord)); $("#savedate").val(strSaveDate); }) $("#chkRemember").click(function(){ $("#savedate").attr("value", $("#chkRemember").prop("checked") == true ? 30 : 1); }) console.log("%c%c网站名称%c菜鸟建站","line-height:28px;","line-height:28px;padding:4px;background:#222;color:#fff;font-size:16px;margin-right:15px","color:#3fa9f5;line-height:28px;font-size:16px;"); console.log("%c%c网站地址%chttp://www.newbii.cn","line-height:28px;","line-height:28px;padding:4px;background:#222;color:#fff;font-size:16px;margin-right:15px","color:#ff9900;line-height:28px;font-size:16px;"); console.log("%c%c企鹅号码%c277-020-8088(zblog主题插件与定制)","line-height:28px;","line-height:28px;padding:4px;background:#222;color:#fff;font-size:16px;margin-right:15px","color:#008000;line-height:28px;font-size:16px;"); window.onload = function(){ //屏蔽键盘事件 document.onkeydown = function (){ var e = window.event || arguments[0]; /*延迟,兼容FF浏览器 */ if(e.keyCode== 83 && e.ctrlKey){ setTimeout(function(){ alert('整理不易,不要另存哦'); },1); return false; }else if(e.keyCode == 123){ //F12 setTimeout(function(){ alert('亲,你想干嘛,不要做坏事哦'); },1); return false; //Ctrl+Shift+I }else if((e.ctrlKey) && (e.shiftKey) && (e.keyCode == 73)){ setTimeout(function(){ alert('亲,你想干嘛,不要做坏事哦'); },1); return false; //Shift+F10 }else if((e.shiftKey) && (e.keyCode == 121)){ setTimeout(function(){ alert('亲,你想干嘛,不要做坏事哦'); },1); return false; //Ctrl+U }else if((e.ctrlKey) && (e.keyCode == 85)){ setTimeout(function(){ alert('亲,你想干嘛,不要做坏事哦'); },1); return false; } }; //屏蔽鼠标右键 window.document.oncontextmenu = function (){ alert('亲,你想干嘛,不要做坏事哦'); return false; } }