接着帮助补充
如果,需要做复杂的提示
就用隐藏的层来实现
大致代码如下
<script language="VBScript">
SUB ShowHint(str)
DIM div
SET div=document.getElementById("divHint")
div.innerText=str
div.style.left=(window.event.x)&"px"
div.style.top=(window.event.y)&"px"
div.style.display="block"
END SUB
SUB HidHint()
DIM div
SET div=document.getElementById("divHint")
div.style.display="none"
END SUB
</script>
<a href="javascript:;" onMouseOver="ShowHint('提示')" onMouseOut="HidHint()">提示</a>
<div style="position:abosulte;display:none" id="divHint"></div>