急!<img alt="aaa">当mouseover时提示很慢,怎样才能立即显示?
<img alt= "aaa "> 当mouseover时提示很慢,怎样才能立即显示?
在csdn 上找了一段代码 但是 alt 不是在图片下面显示,而是在 页面顶部显示的
<script language= "javascript ">
function hideAlt(oThis)
{
yourAlt.style.display = "none ";
}
function displayAlt(oThis)
{
if (oThis.alt)
{
oThis.tag=oThis.alt;
oThis.alt= " ";
}
yourAlt.style.top = oThis.offsetTop + event.offsetX;
yourAlt.style.left = oThis.offsetLeft + event.offsetY;
yourAlt.style.display = "block ";
yourAlt.innerText = oThis.tag;
}
</script>
<body>
<div id=yourAlt style= "position:absolute;display:none;background-Color:infobackground "> </div>
.......
</body>
------解决方案--------------------用层
------解决方案--------------------显示在状态栏算了~~