📄 hidlogin.js
字号:
document.writeln("<SCRIPT LANGUAGE=\"JavaScript\">");document.writeln("<!--");document.writeln("\/**");document.writeln(" * 获取对象坐标");document.writeln(" * return 坐标数组,[\"top\",\"left\",\"width\",\"height\"]");document.writeln(" *\/ ");document.writeln("function getPosition(obj) {");document.writeln(" var top=0;");document.writeln(" var left=-40;");document.writeln(" var width=obj.offsetWidth;");document.writeln(" var height=obj.offsetHeight;");document.writeln(" while (obj.offsetParent) {");document.writeln(" top += obj.offsetTop;");document.writeln(" left += obj.offsetLeft;");document.writeln(" obj = obj.offsetParent;");document.writeln(" }");document.writeln(" ");document.writeln(" return {\"top\":top,\"left\":left,\"width\":width,\"height\":height};");document.writeln("}");document.writeln("");document.writeln("var verifyCounter=[];");document.writeln("var $=function(s){return document.getElementById(s);};");document.writeln("function VerifyImage(eleID,x,y){");document.writeln(" var c=verifyCounter.length;");document.writeln(" this.timeout=null;");document.writeln(" this.ipt = null;");document.writeln(" if(!eleID)");document.writeln(" this.eleID=eleID=\"verifyIMG_\"+c;");document.writeln(" this.od=document.createElement(\"div\");");document.writeln(" with(this.od){");document.writeln(" style.position=\"absolute\";");document.writeln(" style.backgroundColor=\"#505050\";");document.writeln(" style.border=\"solid 1px #545454\";");document.writeln(" style.padding=\"3px\";");document.writeln(" id=eleID+\"_anchor\";");document.writeln(" }");document.writeln(" this.templete=(\'<img id=\"\'+eleID+\'\" onclick=\"getVerify(\\\'\'+eleID+\'\\\',\'+c+\')\" style=\"cursor:pointer;margin-bottom:5px\" src=\"http:\/\/ptlogin2.qq.com\/getimage?aid=21000127&{{_random_}}\" alt=\"获取中...\" title=\"点击更换\" width=\"130\" height=\"53\" \/><br \/><span onclick=\"getVerify(\\\'\'+eleID+\'\\\',\'+c+\')\" style=\"color:white;cursor:pointer\">看不清楚?换一个<\/span>\');");document.writeln(" this.seed=Math.random();");document.writeln(" this.appended=false;");document.writeln("");document.writeln(" verifyCounter[c]=this;");document.writeln("}");document.writeln("");document.writeln("VerifyImage.prototype.showMe=function(x,y){");document.writeln(" with(this.od){");document.writeln(" style.top=(y-85)+\"px\";");document.writeln(" style.left=(x+1)+\"px\";");document.writeln(" }");document.writeln(" if(!this.appended){");document.writeln(" document.body.appendChild(this.od);");document.writeln(" }");document.writeln(" this.od.innerHTML=this.templete.replace(\/\\{\\{_random_\\}\\}\/g,this.seed);");document.writeln(" this.od.style.display=\"\";");document.writeln("}");document.writeln("");document.writeln("VerifyImage.prototype.killMe=function(){");document.writeln(" this.od.style.display=\"none\";");document.writeln("}");document.writeln("");document.writeln("VerifyImage.prototype.change=function(){");document.writeln(" var o=$(this.eleID);");document.writeln(" this.seed=Math.random();");document.writeln(" \/\/o.src=\"http:\/\/ptlogin2.qq.com\/getimage?aid=21000127&sds=\"+this.seed;");document.writeln(" o.src=\"http:\/\/ptlogin2.qq.com\/getimage?aid=21000127&\"+this.seed;");document.writeln("}");document.writeln("");document.writeln("\/\/获取验证码");document.writeln("function getVerify(s,n){");document.writeln(" clearTimeout(verifyCounter[n].timeout);");document.writeln(" verifyCounter[n].change();");document.writeln(" \/\/var i=$(\"verifycode\");");document.writeln(" if(verifyCounter[n].ipt){");document.writeln(" verifyCounter[n].ipt.value=\"\";");document.writeln(" verifyCounter[n].ipt.focus();");document.writeln(" }");document.writeln("}");document.writeln("");document.writeln("\/\/input focus获取验证码");document.writeln("function focusGetVerify(o){");document.writeln(" var pos=getPosition(o);");document.writeln(" var e=(verifyCounter.length>0)?(verifyCounter[0]):(new VerifyImage());");document.writeln(" e.ipt = o;");document.writeln(" e.showMe(pos.left,pos.top);");document.writeln(" o.value=\"\";");document.writeln("}");document.writeln("");document.writeln("\/\/隐藏验证码");document.writeln("function hiddenVerify(isImme){");document.writeln(" if(!verifyCounter[0])");document.writeln(" return;");document.writeln(" if(!isImme)");document.writeln(" verifyCounter[0].timeout=setTimeout(function(){verifyCounter[0].killMe()},500);");document.writeln(" else");document.writeln(" verifyCounter[0].killMe();");document.writeln("}");document.writeln("-->");document.writeln("<\/SCRIPT>");document.writeln("");document.writeln("<script language=\"javascript\" src=\"http:\/\/qqtang.qq.com\/js\/ps.js\"><\/script>");document.writeln("<script language=\"javascript\">");document.writeln("function checkinput()");document.writeln("{");document.writeln(" if(document.form1.u.value == \"\"){");document.writeln(" window.alert(\"您还没有输入QQ号!\");");document.writeln(" return false;");document.writeln(" }");document.writeln(" if(document.form1.p.value == \"\"){");document.writeln(" window.alert(\"您还没有输入密码!\");");document.writeln(" return false;");document.writeln(" }");document.writeln(" if(document.form1.verifycode.value == \"\"){");document.writeln(" window.alert(\"您还没有输入验证码!\");");document.writeln(" return false;");document.writeln(" }");document.writeln(" preprocess(form1);");document.writeln(" document.form1.submit();");document.writeln("}");document.writeln("<\/script>")
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -