本文实例讲述了JavaScript实现简单Tip提示框效果。分享给大家供大家参考,具体如下:
")
function showtip(w){
var x=event.x;
var y=event.y;
tip.innerHTML=w;
tip.style.visibility="visible";
tip.style.left=x+10;
tip.style.pixelTop=y+document.body.scrollTop+10;
}
function hidetip(){
tip.style.innerHTML=""
tip.style.visibility="hidden";
}