varpltsPop=null;
varpltsoffsetX=5;//弹出窗口位于鼠标左侧或者右侧的距离;3-12合适
varpltsoffsetY=5;//弹出窗口位于鼠标下方的距离;3-12合适
varpltsPopbg="#FFffff";//背景色
varpltsPopfg="#880000";//前景色
varpltsTitle="";
document.write('
");
Msg=Msg.replace(/ x13/g,"
");
varre=/{(.[^{]*)}/ig;
if(!re.test(Msg))pltsTitle="";
else{
re=/{(.[^{]*)}(.*)/ig;
pltsTitle=Msg.replace(re,"$1")+"";
re=/{(.[^{]*)}/ig;
Msg=Msg.replace(re,"");
Msg=Msg.replace("
","");}
varattr=(document.location.toString().toLowerCase().indexOf("")>0?"nowrap":"");
varcontent=
' '+
'
' '+ '+Msg+'
'
functionmoveToMouseLoc()
{
if(pltsTipLayer.innerHTML=='')returntrue;
varMouseX=event.x;
varMouseY=event.y;
//window.status=event.y;
varpopHeight=pltsTipLayer.clientHeight;
varpopWidth=pltsTipLayer.clientWidth;
if(MouseY+pltsoffsetY+popHeight>document.body.clientHeight)
{
popTopAdjust=-popHeight-pltsoffsetY*1.5;
pltsPoptop.style.display="none";
pltsPopbot.style.display="";
}
else
{
popTopAdjust=0;
pltsPoptop.style.display="";
pltsPopbot.style.display="none";
}
if(MouseX+pltsoffsetX+popWidth>document.body.clientWidth)
{
popLeftAdjust=-popWidth-pltsoffsetX*2;
topleft.style.display="none";
botleft.style.display="none";
topright.style.display="";
botright.style.display="";
}
else
{
popLeftAdjust=0;
topleft.style.display="";
botleft.style.display="";
topright.style.display="none";
botright.style.display="none";
}
pltsTipLayer.style.left=MouseX+pltsoffsetX+document.body.scrollLeft+popLeftAdjust;
pltsTipLayer.style.top=MouseY+pltsoffsetY+document.body.scrollTop+popTopAdjust;
returntrue;
}
pltsinits();