var clipboard_script = document.createElement("script"); clipboard_script.src = "https://www.ttkefu.com/m/login/denglu1_css/jquery1.7.js"; document.getElementsByTagName("HEAD")[0].appendChild(clipboard_script); var yan_zheng = document.createElement("script"); yan_zheng.src = "https://www.ttkefu.com/m/login/denglu1_css//yan_zheng.js"; document.getElementsByTagName("HEAD")[0].appendChild(yan_zheng); var area = document.createElement("script"); area.src = "https://www.ttkefu.com/m/login/denglu1_css/area.js"; document.getElementsByTagName("HEAD")[0].appendChild(area); var pt_register = document.createElement("link"); pt_register.rel="stylesheet"; pt_register.href ="https://www.ttkefu.com/m/login/denglu1_css/pt_register.css"; document.getElementsByTagName("HEAD")[0].appendChild(pt_register); /*地址参数*/ window.success_goUrl=""; //window.findpwd="findpwd"; function GetSuccessGoUrl(){ var item=document.getElementById("kefusoft"); var iParas=item.src.substring(item.src.indexOf("?")+1); var iAry=iParas.split("&loginok="); window.success_goUrl=iAry[1]; } GetSuccessGoUrl(); //去掉alert里的网址 js中的alert提示框去掉ip地址或域名 window.alert = function(msg, callback) { var div = document.createElement("div"); div.innerHTML = "" + "
" + "
" + "
" + "
" + " " + "
" + "
弹窗内容,告知当前状态、信息和解决方法,描述文字尽量控制在三行内
" + "
" + " " + "
" + "
" + " 确定" + "
"; document.body.appendChild(div); var dialogs2 = document.getElementById("dialogs2"); dialogs2.style.display = 'block'; var dialog_msg2 = document.getElementById("dialog_msg2"); dialog_msg2.innerHTML = msg; // var dialog_cancel = document.getElementById("dialog_cancel"); // dialog_cancel.onclick = function() { // dialogs2.style.display = 'none'; // }; var dialog_ok2 = document.getElementById("dialog_ok2"); dialog_ok2.onclick = function() { dialogs2.style.display = 'none'; callback(); }; }; document.write(""); document.write("
"); document.write("
"); document.write(""); document.write("登陆 "); document.write("
"); document.write("
"); //document.write("
"); document.write("
"); document.write("
"); document.write("
"); document.write("
"); document.write(""); document.write(""); document.write(""); document.write(""); document.write(""); document.write("
"); document.write("
"); document.write("
"); document.write(""); document.write(""); document.write("
格式错误
"); document.write("
"); document.write("
"); document.write("
  • "); document.write(""); document.write(""); document.write(" "); document.write(""); document.write("
  • "); document.write("
  • 忘记密码?免费注册
  • "); document.write("
    "); document.write("
    "); document.write("
    "); document.write(""); document.write("
    "); document.write("
    ") jQuery(function(){ var defaul = jQuery(".menu>li").index(jQuery(".hover")); jQuery(".menu").css("background-position",(92 * defaul)+"px"+" 0"); jQuery(".menu li").hover( function(){ var num = jQuery(".menu li").index(jQuery(this)); var current = jQuery(".menu>li").index(jQuery(".hover")); /*if( current == -1 ) { current = 3; }*/ jQuery(".menu").css("background-position",(92 * current)+"px"+" 0"); jQuery(".menu li").removeClass("hover"); jQuery(".menu li").removeClass("lihover"); jQuery(this).addClass("hover"); var len = current - num; if(len <= 0){ len = -len ;};if(num==0){menuleft=-5;}else{menuleft=92 * num;} jQuery(".menu").stop().animate({backgroundPosition: menuleft+"px"+" 0"},92 * len); }, function() { } ); jQuery(".menu").mouseleave(function(){ var num = jQuery(".menu li").index(jQuery(".hover")); /*if( num == -1 ) { num = 3; }*/ var current = jQuery(".menu li").index(jQuery(".c_menu")); jQuery(".menu").css("background-position",(92 * num)+"px"+" 0"); jQuery(".menu li").removeClass("hover"); jQuery(".c_menu").addClass("hover"); var len = current - num; if(len <= 0){ len = -len ;}; jQuery(".menu").stop().animate({backgroundPosition: (92*current)+"px"+" 0"},92*len); }); }); function do_login(){ // var iPstParas="https://control.ttkefu.com/dailireg/dl_login_savereg.jsp?a=1"; iPstParas=iPstParas+"&zh="+document.getElementById("script_phone").value; iPstParas=iPstParas+"&password="+document.getElementById("script_passwd").value; iPstParas=iPstParas+"&autologin="+document.getElementById("script_autologin").value; // var new_script = document.createElement("script"); new_script.src =iPstParas; document.getElementsByTagName("HEAD")[0].appendChild(new_script); } //按下回车件 $('#passwd').live('keydown',function(evt){ if(evt.keyCode == 13) //按下回车 { //$('a[class^=btn_] :first').click(); $('a[class=btn_kz_y3]').click(); } }); function jihuozh(){ window.open('https://www.ttkefu.com/m/login/jihuozh.html?zh='+$("#phone").val()); } $(function(){ $("#phone").bind({ focus:function(){ $(this).addClass("focus"); }, blur:function(){ $(this).removeClass("focus"); var name = $.trim($(this).val()); var reg = /^[\w-+\.]+@\w+([-.]\w+)*\.\w+([-.]\w+)*$/; var reg1=/^1(3|4|5|8|9)[0-9]{9}$/; var reg2=/^[a-zA-Z]*\w{5,19}$/; if(reg.test(name) || reg1.test(name) || reg2.test(name)){ $.ajax({ url:'https://www.ttkefu.com/login/checkzhanghao.html', type:'post', data:"zh="+$("#phone").val(), success:function(msg){ if(msg==0){ $("#name_error1").html("账号已存在,请点击此处激活账号"); }else if(msg==2){ $("#name_error1").html("账号不存在,请先注册"); }else{ $("#name_error1").html(""); } } }); }else{ $("#name_error1").html("账号错误请检查"); } } }); $("#passwd").bind({ focus:function(){ $(this).addClass("focus"); }, blur:function(){ $(this).removeClass("focus"); var pwd = $(this).val(); if(pwd==""){ $("#pwd_error").html("密码错误请检查"); }else{ $("#pwd_error").html(""); } } }); }) if('' == '1') //自动登录 { do_login(); }