如何实现这种鼠标提示效果?(2)_动易Cms教程

编辑Tag赚U币
教程Tag:暂无Tag,欢迎添加,赚取U币!

’〈tr id=pltsPopbot style="display:none"〉〈th valign=bottom class=header〉〈p id=botleft align=left〉↙’ pltsTitle ’〈/p〉〈p id=botright align=right style="display:none"〉’ pltsTitle ’↘〈/font〉〈/th〉〈/tr〉’
’〈/table〉〈/td〉〈/tr〉〈/table〉’;
pltsTipLayer.innerHTML=content;
toolTipTalbe.style.
moveToMouseLoc();
return true;
}
else
{
pltsTipLayer.innerHTML=’’;
pltsTipLayer.style.display=’none’;
return true;
}
}
function moveToMouseLoc()
{
if(pltsTipLayer.innerHTML==’’)return true;
var MouseX=event.x;
var MouseY=event.y;
//window.status=event.y;
var popHeight=pltsTipLayer.clientHeight;
var popWidth=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;
return true;
}
pltsinits();

查看更多 动易Cms教程  动易Cms模板

共2页上一页12下一页
来源:模板无忧//所属分类:动易Cms教程/更新时间:2006-06-19
相关动易Cms教程