关于鼠标悬停显示特效的解决办法(2)_动易Cms教程

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

'<tr><td " attr " style="background-color: #083582;padding-left:14px;padding-right:14px;padding-top: 6px;padding-bottom:6px;line-height:135%"><font color=white>' Msg '</font></td></tr>'
'<tr id=pltsPopbot style="display:none"><th valign=bottom><font color=#ffffff><b><p id=botleft align=left>↙' pltsTitle '</p><p id=botright align=right style="display:none">' pltsTitle '↘</font></b></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-12-24
相关动易Cms教程