!= -1) { offset += search.length; end = document.cookie.indexOf("&", offset); if (end == -1) end = document.cookie.length; cookieValue = unescape(document.cookie.substring(offset, end)); var cookiearr = cookieValue.split(';'); if(cookiearr.length > 0) { cookieValue = cookiearr[0]; } }}return cookieValue;}function getNew(){ var serv = document.getElementById("newsv").innerHTML; return serv;}//function loginDdtStatus(){ $(function(){ document.onkeydown = function(e){ var ev = document.all ? window.event : e; if(ev.keyCode==13) { if(document.getElementById("user").value != "") { checkLogin(); } if(document.getElementById("username").value != "") { checkReg(); } } } }); var url = window.location.href; if(url.indexOf("web.7k7k.com") < 0) { url ="http://web.7k7k.com"; } var s = ''; if(decodeURI(readCookie("k7_username")) != "" && readCookie("userpermission") != "") { s += '<div class="dtl"></div>'; s += ' <div class="ddt_login" id="tab_card_1">'; s += ' <ul>'; s += ' <li class="dt_li">:<font color="red"><b>'+decodeURI(readCookie("k7_username"))+'</b></font>(<a href="/user/logout.php?refer='+url+'"></a>)</li>'; s += ' <li class="dt_li">:'+readCookie("k7_lastlogin").replace("+"," ")+'</li>'; //s += ' <li class="dt_li">IP:'+readCookie("k7_ip")+'</li>'; s += ' <li class="dt_li" >:<b><font color="red" id="dsv">'+getNew()+'</font></b></li>'; s += ' <li class="dt_li">:</li>'; if(readCookie("k7_gamelist") != "") { var gamelist = decodeURI(readCookie("k7_gamelist")); if(gamelist) { var data = eval("("+gamelist+")"); for(var i=0;i<1;i++) { s += "<li class=\"dt_st\"><font color=\"red\"><b><a href=\"/games/togame.php?target="+data[i]['key']+"_"+data[i]['gid']+"&server_id="+data[i]['server_id']+"\" target=\"_blank\" style=\"color:#707070;font-size:14px;\">"+data[i]['sname']+"</a></b></font></li>"; } } else { s += '<li class="dt_st"><font color="red"><b>!</b></font></li>'; } } else { s += '<li class="dt_st"><font color="red"><b>!</b></font></li>'; } s += '</ul></div>'; } else { // s +='<ul id="menu0"><li onclick="setTab(0,0)"></li><li class="hover" onclick="setTab(0,1)"></li></ul><div class="loginInner"> <div class="right2"> <div class="right23" id="main0">'; s +='<span class="disnone" id="disblock" ><ul><li>&nbsp;&nbsp;:<input type="text" name="username" class="input" id="username" value=""/></li>'; s +='<li>&nbsp;&nbsp;&nbsp; :<input type="password" name="password" class="input" id="password" value=""/></li>'; s +='<li>:<input type="password" name="confirmpassword" id="confirmpassword" class="input" value=""/></li>'; s +='<li><input name="refer" type="hidden" id="refer" value="" /><input name="action" type="hidden" id="action" value="register" /><input type="button" id="loginbtn" onclick="checkReg();" name="loginbtn" class="submit" value=""/></li></ul></span>'; // s +='<span class="disblock" id="disnone" ><ul><li>&nbsp;&nbsp;:<input type="text" id="user" name="user" class="input" value=""/></li>'; s +='<li> &nbsp;&nbsp;&nbsp;:<input type="password" name="pass" id="pass" class="input" value=""/></li>'; s +='<li> <input name="action2" type="hidden" id="action2" value="login" /><input type="button" id="loginbtn2" name="loginbtn2" onclick="checkLogin();" class="submit" value="" /></li></ul></span></div> </div></div>'; } return s;}function getGamesStatus(){ var s = ''; if(decodeURI(readCookie("k7_username")) != "" && readCookie("userpermission") != "") { if(readCookie("k7_gamelist") != "") { var gamelist = decodeURI(readCookie("k7_gamelist")); if(gamelist) { var data = eval("("+gamelist+")"); for(var i=0;i<1;i++) { s += "<a href=\"/games/togame.php?target="+data[i]['key']+"_"+data[i]['gid']+"&server_id="+data[i]['server_id']+"\" target=\"_blank\" style=\"color:#663300;font-size:14px;width:200px;\">"+data[i]['sname']+"</a></font>"; } }else { s += '!'; } } else { s += '!'; } } else { s += ',!'; } return s;}