$(function () {
$("#Password").keydown(function (e) {
if (e.keyCode == 13) {
logon();
}
});
});
function logon() {
ajax_logon(document.getElementById("UserName").value, document.getElementById("Password").value, document.getElementById("AuthCode").value,'https://users.titan007.com');
}
function changeCsDiv(cna)
{
var items = document.getElementById(cna).getElementsByTagName("span");
var clsName = "b_bb";
for (var i = 0; i < items.length; i++)
{items[i].className = clsName; }
}
function showDiv(cna) {
document.getElementById(cna).style.display = "block";
}
function hideDiv(cna,event)
{
try{
if (window.event)
ev = window.event.toElement;
else
ev = event.relatedTarget;
if (ev.id != cna && ev.id.indexOf("a") == -1 ) {
document.getElementById(cna).style.display = "none";
var items = document.getElementById(cna.replace("div", "")).getElementsByTagName("span");
for (var i = 0; i < items.length; i++)
{
if(cna=="b_divL9")
items[i].className = "b_s9";
}
}
} catch (e) { }
}
document.write('
');
function cancelRechargeTips() {
$(".adpopbox").remove();
}
function goRechargeTips() {
$(".adpopbox").remove();
if(kind==1)
window.location.href = "https://users.titan007.com/users/RechargeInfo.aspx";
else window.location.href = "https://users.titan007.com/users/Register.aspx";
}
function showRechargeTips() {
$(".adpopbox").css("display", "");
}
function changeVerifyCodeSub() {
var d = new Date();
document.getElementById("verifyCode").src = "/Home/VerificationCode?" + d.getTime();
}
function AddFavorite(sURL, sTitle)
{
try
{
window.external.addFavorite(sURL, sTitle);
}
catch (e)
{
try
{
window.sidebar.addPanel(sTitle, sURL, "");
}
catch (e)
{
alert("加入收藏失败,请使用Ctrl+D进行添加");
}
}
}
var ajaxData = {
useActiveX: (typeof ActiveXObject != "undefined"),
useXmlHttp: (typeof XMLHttpRequest != "undefined")
};
ajaxData.ARR_XMLHTTP_VERS = ["MSXML2.XmlHttp.6.0", "MSXML2.XmlHttp.3.0"];
function ajaxDataHttp() { }
ajaxDataHttp.createRequest = function () {
if (ajaxData.useXmlHttp) return new XMLHttpRequest();
if (ajaxData.useActiveX) //IE < 7.0 = use ActiveX
{
if (!ajaxData.XMLHTTP_VER) {
for (var i = 0; i < ajaxData.ARR_XMLHTTP_VERS.length; i++) {
try {
new ActiveXObject(ajaxData.ARR_XMLHTTP_VERS[i]);
ajaxData.XMLHTTP_VER = ajaxData.ARR_XMLHTTP_VERS[i];
break;
} catch (oError) { }
}
}
if (ajaxData.XMLHTTP_VER) return new ActiveXObject(ajaxData.XMLHTTP_VER);
}
alert("对不起,您的电脑不支持 XML 插件,请安装好或升级浏览器。");
};
function showUserCoin() {
if(document.getElementById("btnShowTopCoin").innerHTML=="显示"){
var strdata = ajaxDataHttp.createRequest();
strdata.open("get", "/home/GetUserCoin?cmd=queryqiubi&" + Date.parse(new Date()), false);
strdata.send(null);
var strReturn = strdata.responseText;
if (strReturn == "login") {
openAjaxLoginWin();
return false;
}
if (strReturn == "") return;
document.getElementById("showTopCoin").innerHTML =strReturn;
document.getElementById("btnShowTopCoin").innerHTML ="隐藏";
}
else{
document.getElementById("showTopCoin").innerHTML ="******";
document.getElementById("btnShowTopCoin").innerHTML ="显示";
}
}
function selectLoginUser(user,pwd)
{
document.getElementById("UserName").value=user;
document.getElementById("Password").value=pwd;
logon();
}
function showUserSelect(data) {
var dataList=data.split('#');
var arrUser = dataList[1].split('!');
var arrPwd=dataList[2];
var html = new Array();
html.push("");
html.push("
请选择球探账号");
html.push("
");
html.push("
");
for (var i = 0; i < arrUser.length; i++) {
var arrOneUser = arrUser[i].split('^');
html.push("
"+arrOneUser[0]+"
");
}
html.push("
");
html.push("
");
document.getElementById("div_login").innerHTML=html.join("");
}