📄 spmain.js
字号:
var strCharset="gb2312";
var sound_RatioChange="images/RC.WAV";
var sound_BetOver="images/X01.wav";
var xmlHttp = new ActiveXObject("MSXML2.XMLHTTP.3.0");
function getReply(urlToGet){
xmlHttp.open("POST", urlToGet,false);
xmlHttp.setRequestHeader("Content-Type","text/xml;charset="+strCharset);
try{
xmlHttp.send("");
if(xmlHttp.readyState==4)
return xmlHttp.responseTEXT;
else
return null;
}catch(E){
alert("贵客户当地网路忙线中!!");
}
}
//
function changesound(sound)
{
Sounder.src=sound;
}
//
function NewChangesAry()
{
}
/////////////////////////
var lid=1;//类别
var Getall;//得到所有
var aryRatio;//陪率列表
var aryTopMax;//全局上限列表
var siteconfig;//全局站点配置
var msg;//公告
var aryblok;//得到是否被锁定
var dt,Openstr,Closestr,Nowstr,istoday;
TimeMain();
function TimeMain()
{Getall=getReply("proadmin.aspx?cmd=320&Lid="+lid).split(",");
//alert(Getall);
if (Getall[0]=="110")
{alert(""+Getall[1]+"无权限,请重新登陆!");
top.location.href="login.htm";
return;}
siteconfig=Getall[0].split("@");
aryTopMax=Getall[1].split("@");
aryblok=Getall[2].split("@");
aryRatio=Getall[3].split("@");
msg=siteconfig[3];
// top.header.document.all.msg.innerHTML=msg;
dt=Getall[3];
istoday=dt.split("@")[3].split(" ")[0]==Getall[4].split(" ")[0];
Openstr=dt.split("@")[3].split(" ")[1].split(":");
Closestr=dt.split("@")[4].split(" ")[1].split(":");
Nowstr=Getall[4].split(" ")[1];
GetTime();
setDtSeq(Nowstr);
window.setTimeout("TimeMain();", 4000);
}
function setDtSeq(strTime){
var aryTime=strTime.split(":");
dtSeq.setHours(aryTime[0]);
dtSeq.setMinutes(aryTime[1]);
dtSeq.setSeconds(aryTime[2]);
intSeqTimer2=(dtSeqOpen-dtSeq)/1000;
intSeqTimer=(dtSeqClose-dtSeq)/1000;
}
function GetTime()
{ dtSeqClose.setHours(Closestr[0]);
dtSeqClose.setMinutes(Closestr[1]);
dtSeqClose.setSeconds(Closestr[2]);
dtSeqOpen.setHours(Openstr[0]);
dtSeqOpen.setMinutes(Openstr[1]);
dtSeqOpen.setSeconds(Openstr[2]);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -