📄 monitorstatic.js
字号:
bt1="/images/cn_image/invite_bt1.gif";
bt2="/images/cn_image/invite_bt2.gif";
}
}
this.inviteInnerHtml ='<table style="background-repeat:no-repeat" width="439" height="160" border="0" cellpadding="0" cellspacing="0" background="' +baseUrl+ '/images/invite_bg.gif">';
this.inviteInnerHtml +='<tr style="cursor:move;"><td colspan="7" width="439" height="27"><span style="color:#FFFFFF;font-size:12px;"> Live800 - '+URLDecode(preferences["invite_title"])+'</span></td></tr>';
this.inviteInnerHtml +='<tr><td rowspan="3" width="132" height="132"></td>';
this.inviteInnerHtml +='<td colspan="5" width="296" height="97">'+getInviteContent()+'</td>';
this.inviteInnerHtml +='<td width="11" height="97"></td></tr>';
this.inviteInnerHtml +='<tr><td width="141" height="22"></td>';
this.inviteInnerHtml +='<td width="66" height="22"><img src="' +baseUrl+bt1+ '" onclick="globalInviteWindow.accept();" style="cursor:pointer"></td>';
this.inviteInnerHtml +='<td width="12" height="22"></td>';
this.inviteInnerHtml +='<td width="66" height="22"><img src="' +baseUrl+bt2+ '" onclick="globalInviteWindow.refuse();" style="cursor:pointer"></td>';
this.inviteInnerHtml +='<td colspan="2" width="22" height="22"></td></tr>';
this.inviteInnerHtml +='<tr><td colspan="6" width="307" height="13"></td></tr>';
this.inviteInnerHtml +='<tr><td width="132" height="1"></td>';
this.inviteInnerHtml +='<td width="141" height="1"></td>';
this.inviteInnerHtml +='<td width="66" height="1"></td>';
this.inviteInnerHtml +='<td width="12" height="1"></td>';
this.inviteInnerHtml +='<td width="66" height="1"></td>';
this.inviteInnerHtml +='<td width="11" height="1"></td>';
this.inviteInnerHtml +='<td width="11" height="1"></td> </tr></table>';
}
else if(styleType==1){//1:yellow;2:green;3:red
var bt1="";
var bt2="";
if(typeof live800_Language=="undefined")
{
bt1="/images/cn_image/yellow_invite_bt1.gif";
bt2="/images/cn_image/yellow_invite_bt2.gif";
}
else
{
if(live800_Language=="zh")
{
bt1="/images/cn_image/yellow_invite_bt1.gif";
bt2="/images/cn_image/yellow_invite_bt2.gif";
}
else if(live800_Language=="zh_TW")
{
bt1="/images/big5_image/yellow_invite_bt1.gif";
bt2="/images/big5_image/yellow_invite_bt2.gif";
}
else if(live800_Language=="en")
{
bt1="/images/english_image/yellow_invite_bt1.gif";
bt2="/images/english_image/yellow_invite_bt2.gif";
}
else
{
bt1="/images/cn_image/yellow_invite_bt1.gif";
bt2="/images/cn_image/yellow_invite_bt2.gif";
}
}
this.inviteInnerHtml ='<table style="background-repeat:no-repeat" width="439" height="160" border="0" cellpadding="0" cellspacing="0" background="' +baseUrl+ '/images/yellow_invite_bg.gif">';
this.inviteInnerHtml +='<tr style="cursor:move;"><td colspan="7" width="439" height="27"><span style="color:#FFFFFF;font-size:12px;"> Live800 - '+URLDecode(preferences["invite_title"])+'</span></td></tr>';
this.inviteInnerHtml +='<tr><td rowspan="3" width="132" height="132"></td>';
this.inviteInnerHtml +='<td colspan="5" width="296" height="97">'+getInviteContent()+'</td>';
this.inviteInnerHtml +='<td width="11" height="97"></td></tr>';
this.inviteInnerHtml +='<tr><td width="141" height="22"></td>';
this.inviteInnerHtml +='<td width="66" height="22"><img src="' +baseUrl+bt1+ '" onclick="globalInviteWindow.accept();" style="cursor:pointer"></td>';
this.inviteInnerHtml +='<td width="12" height="22"></td>';
this.inviteInnerHtml +='<td width="66" height="22"><img src="' +baseUrl+bt2+ '" onclick="globalInviteWindow.refuse();" style="cursor:pointer"></td>';
this.inviteInnerHtml +='<td colspan="2" width="22" height="22"></td></tr>';
this.inviteInnerHtml +='<tr><td colspan="6" width="307" height="13"></td></tr>';
this.inviteInnerHtml +='<tr><td width="132" height="1"></td>';
this.inviteInnerHtml +='<td width="141" height="1"></td>';
this.inviteInnerHtml +='<td width="66" height="1"></td>';
this.inviteInnerHtml +='<td width="12" height="1"></td>';
this.inviteInnerHtml +='<td width="66" height="1"></td>';
this.inviteInnerHtml +='<td width="11" height="1"></td>';
this.inviteInnerHtml +='<td width="11" height="1"></td> </tr></table>';
}
else if(styleType==2){//1:yellow;2:green;3:red
var bt1="";
var bt2="";
if(typeof live800_Language=="undefined")
{
bt1="/images/cn_image/green_invite_bt1.gif";
bt2="/images/cn_image/green_invite_bt2.gif";
}
else
{
if(live800_Language=="zh")
{
bt1="/images/cn_image/green_invite_bt1.gif";
bt2="/images/cn_image/green_invite_bt2.gif";
}
else if(live800_Language=="zh_TW")
{
bt1="/images/big5_image/green_invite_bt1.gif";
bt2="/images/big5_image/green_invite_bt2.gif";
}
else if(live800_Language=="en")
{
bt1="/images/english_image/green_invite_bt1.gif";
bt2="/images/english_image/green_invite_bt2.gif";
}
else
{
bt1="/images/cn_image/green_invite_bt1.gif";
bt2="/images/cn_image/green_invite_bt2.gif";
}
}
this.inviteInnerHtml ='<table style="background-repeat:no-repeat" width="439" height="160" border="0" cellpadding="0" cellspacing="0" background="' +baseUrl+ '/images/green_invite_bg.gif">';
this.inviteInnerHtml +='<tr style="cursor:move;"><td colspan="7" width="439" height="27"><span style="color:#FFFFFF;font-size:12px;"> Live800 - '+URLDecode(preferences["invite_title"])+'</span></td></tr>';
this.inviteInnerHtml +='<tr><td rowspan="3" width="132" height="132"></td>';
this.inviteInnerHtml +='<td colspan="5" width="296" height="97">'+getInviteContent()+'</td>';
this.inviteInnerHtml +='<td width="11" height="97"></td></tr>';
this.inviteInnerHtml +='<tr><td width="141" height="22"></td>';
this.inviteInnerHtml +='<td width="66" height="22"><img src="' +baseUrl+bt1+ '" onclick="globalInviteWindow.accept();" style="cursor:pointer"></td>';
this.inviteInnerHtml +='<td width="12" height="22"></td>';
this.inviteInnerHtml +='<td width="66" height="22"><img src="' +baseUrl+bt2+ '" onclick="globalInviteWindow.refuse();" style="cursor:pointer"></td>';
this.inviteInnerHtml +='<td colspan="2" width="22" height="22"></td></tr>';
this.inviteInnerHtml +='<tr><td colspan="6" width="307" height="13"></td></tr>';
this.inviteInnerHtml +='<tr><td width="132" height="1"></td>';
this.inviteInnerHtml +='<td width="141" height="1"></td>';
this.inviteInnerHtml +='<td width="66" height="1"></td>';
this.inviteInnerHtml +='<td width="12" height="1"></td>';
this.inviteInnerHtml +='<td width="66" height="1"></td>';
this.inviteInnerHtml +='<td width="11" height="1"></td>';
this.inviteInnerHtml +='<td width="11" height="1"></td> </tr></table>';
}
else if(styleType==3){//1:yellow;2:green;3:red
var bt1="";
var bt2="";
if(typeof live800_Language=="undefined")
{
bt1="/images/cn_image/red_invite_bt1.gif";
bt2="/images/cn_image/red_invite_bt2.gif";
}
else
{
if(live800_Language=="zh")
{
bt1="/images/cn_image/red_invite_bt1.gif";
bt2="/images/cn_image/red_invite_bt2.gif";
}
else if(live800_Language=="zh_TW")
{
bt1="/images/big5_image/red_invite_bt1.gif";
bt2="/images/big5_image/red_invite_bt2.gif";
}
else if(live800_Language=="en")
{
bt1="/images/english_image/red_invite_bt1.gif";
bt2="/images/english_image/red_invite_bt2.gif";
}
else
{
bt1="/images/cn_image/red_invite_bt1.gif";
bt2="/images/cn_image/red_invite_bt2.gif";
}
}
this.inviteInnerHtml ='<table style="background-repeat:no-repeat" width="439" height="160" border="0" cellpadding="0" cellspacing="0" background="' +baseUrl+ '/images/red_invite_bg.gif">';
this.inviteInnerHtml +='<tr style="cursor:move;"><td colspan="7" width="439" height="27"><span style="color:#FFFFFF;font-size:12px;"> Live800 - '+URLDecode(preferences["invite_title"])+'</span></td></tr>';
this.inviteInnerHtml +='<tr><td rowspan="3" width="132" height="132"></td>';
this.inviteInnerHtml +='<td colspan="5" width="296" height="97">'+getInviteContent()+'</td>';
this.inviteInnerHtml +='<td width="11" height="97"></td></tr>';
this.inviteInnerHtml +='<tr><td width="141" height="22"></td>';
this.inviteInnerHtml +='<td width="66" height="22"><img src="' +baseUrl+bt1+ '" onclick="globalInviteWindow.accept();" style="cursor:pointer"></td>';
this.inviteInnerHtml +='<td width="12" height="22"></td>';
this.inviteInnerHtml +='<td width="66" height="22"><img src="' +baseUrl+bt2+ '" onclick="globalInviteWindow.refuse();" style="cursor:pointer"></td>';
this.inviteInnerHtml +='<td colspan="2" width="22" height="22"></td></tr>';
this.inviteInnerHtml +='<tr><td colspan="6" width="307" height="13"></td></tr>';
this.inviteInnerHtml +='<tr><td width="132" height="1"></td>';
this.inviteInnerHtml +='<td width="141" height="1"></td>';
this.inviteInnerHtml +='<td width="66" height="1"></td>';
this.inviteInnerHtml +='<td width="12" height="1"></td>';
this.inviteInnerHtml +='<td width="66" height="1"></td>';
this.inviteInnerHtml +='<td width="11" height="1"></td>';
this.inviteInnerHtml +='<td width="11" height="1"></td> </tr></table>';
}
this.layerHtml = "<div id=\"InviteWindow\" onmousedown=\"popDivMoveStart()\" style=\"z-index:8888;position:absolute;visibility:hidden;left:500px;top:200px;\">";
this.layerHtml += "";
this.layerHtml += "</div>";
document.write(this.layerHtml);
}
function openFlashWin(){
var attr='width=541,height=401';
var tempUrl=this.preferences["protocol"] + "://" + this.preferences["baseUrl"] + this.preferences["baseWebapp"]+"/chatClient/chatbox.jsp?"+getGid()+getParam()+"&companyID="+ this.preferences["companyID"]+getEnterUrl()+"&"+getTrustfulVisitorInfo();
var newWin=window.open(tempUrl,'',attr);
globalInviteWindow.hide();
}
var popDivDiffX=null;
var popDivDiffY=null;
var floadttime;
function getEnterUrl()
{
var url="";
if(enterurl=="null")
enterurl=document.URL;
url=URLEncode(enterurl);
return "&enterurl="+url;
};
function popDivMoveStart(){
clearTimeout(floadttime);
var InviteWindow=document.getElementById("InviteWindow");
popDivDiffX=event.x-InviteWindow.style.pixelLeft;
popDivDiffY=event.y-InviteWindow.style.pixelTop;
window.document.body.attachEvent("onmousemove",popDivMove);
window.document.body.attachEvent("onmouseup",popDivMoveStop);
InviteWindow.setCapture();
};
function popDivMove(){
if(popDivDiffX!=null){
if(event.x<10 || event.y<10||event.x>document.body.clientWidth||event.y>document.body.clientHeight){
popDivMoveStop();
return;
}
document.getElementById("InviteWindow").style.pixelLeft=event.x-popDivDiffX;
document.getElementById("InviteWindow").style.pixelTop=event.y-popDivDiffY;
}
};
function popDivMoveStop(){
if(popDivDiffX != null){
document.getElementById("InviteWindow").releaseCapture();
popDivDiffX=null;
popDivDiffY=null;
window.document.body.detachEvent("onmousemove",popDivMove);
window.document.body.detachEvent("onmouseup",popDivMoveStop);
}
};
function resizeInvite(){
document.getElementById("InviteWindow").style.top=document.body.scrollTop+(document.body.clientHeight-document.getElementById("InviteWindow").offsetHeight)/2;
document.getElementById("InviteWindow").style.left=document.body.scrollLeft+(document.body.clientWidth-document.getElementById("InviteWindow").offsetWidth)/2;
};
function InviteWindow_showTimer()
{
if (this.loaded && this.showInvite)
{
var top;
var left;
if (Sys.IE)
{
if(this.inviteInnerHtml == null)
this.inviteInnerHtml=Sys.getObj('InviteWindow').innerHTML;
if(Sys.getObj('InviteWindow').innerHTML.indexOf('live800')==-1){
Sys.getObj('InviteWindow').innerHTML = this.inviteInnerHtml;
}
scrollPosY = 0;
scrollPosX = 0;
eval('try {' + 'if (typeof(document.documentElement) != "undefined") {' + 'scrollPosY = document.documentElement.scrollTop;' + 'scrollPosX = document.documentElement.scrollLeft;' + '}' + '} catch (e) {}');
scrollPosY = Math.max(document.body.scrollTop, scrollPosY);
scrollPosX = Math.max(document.body.scrollLeft, scrollPosX);
top = scrollPosY;
left = scrollPosX;
if ((this.lastTop < 0) || ((this.lastTop == top) && (this.lastLeft == left))){
document.all.InviteWindow.style.visibility = 'visible';
}
else
{
document.all.InviteWindow.style.visibility = 'hidden';
}
}
else if (Sys.NS)
{
top = pageYOffset;
left = pageXOffset;
if ((this.lastTop < 0) || ((this.lastTop == top) && (this.lastLeft == left)))
{
document.layers.InviteWindow.visibility = 'visible';
}
else
{
document.layers.InviteWindow.visibility = 'hidden';
}
}
else if (Sys.DOM)
{
if(this.inviteInnerHtml == null)
this.inviteInnerHtml=Sys.getObj('InviteWindow').innerHTML;
if(Sys.getObj('InviteWindow').innerHTML.indexOf('live800')==-1)
{
Sys.getObj('InviteWindow').innerHTML = this.inviteInnerHtml;
}
scrollPosY = 0;
scrollPosX = 0;
eval('try {' + 'if (typeof(document.documentElement) != "undefined") {' + 'scrollPosY = document.documentElement.scrollTop;' + 'scrollPosX = document.documentElement.scrollLeft;' + '}' + '} catch (e) {}');
scrollPosY = Math.max(document.body.scrollTop, scrollPosY);
scrollPosX = Math.max(document.body.scrollLeft, scrollPosX);
top = pageYOffset;
left = pageXOffset;
if ((this.lastTop < 0) || ((this.lastTop == top) && (this.lastLeft == left)))
{
Sys.getObj('InviteWindow').style.visibility = 'visible';
}
else
{
Sys.getObj('InviteWindow').style.visibility = 'hidden';
}
}
this.lastTop = top;
this.lastLeft = left;
//write cookie flag
if(preferences["invite_auto"]==2&&(getCookie("hasVisited")==null||typeof getCookie("hasVisited")=="undefined")){
setCookie("hasVisited","true");
}/*
if(getCookie("hasVisited")==null||typeof getCookie("hasVisited")=="undefined"){
setCookie("hasVisited","true");
}*/
}
resizeInvite();
floadttime=setTimeout('globalInviteWindow.showTimer()', 250);
};
function InviteWindow_scrollPlace()
{
var y;
var x;
y = this.floatTop;
if (document.body)
x = document.body.clientWidth -250 - this.floatLeft;
else
x = innerWidth - 250 - this.floatLeft;
var obj = null;
if (Sys.IE)
{
obj = document.all.InviteWindow.style;
}
else if (Sys.NS)
{
obj = document.layers.InviteWindow;
}
else if (Sys.DOM)
{
obj = Sys.getObj('InviteWindow').style;
}
if (Sys.IE)
{
scrollPosY = 0;
scrollPosX = 0;
eval('try {' + 'if (typeof(document.documentElement) != "undefined") {' + 'scrollPosY = document.documentElement.scrollTop;' + 'scrollPosX = document.documentElement.scrollLeft;' + '}' + '} catch (e) {}');
scrollPosY = Math.max(document.body.scrollTop, scrollPosY);
scrollPosX = Math.max(document.body.scrollLeft, scrollPosX);
obj.left = scrollPosX + x - 50 + 'px';
obj.top = scrollPosY + y + 'px';
}
else if (Sys.NS)
{
obj.left = pageXOffset + x;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -