al volo
codice:
<html>
<head>
<title>Prova ToolTip</title>
<style type="text/css">
.note {
background-color:#ffff00;
display:none;
width:250px;
height:50px;
position:absolute;
color: #000000;
border: 1px #000000 solid;
}
</style>
<script language="JavaScript" type="text/javascript">
function ToolTipShow(e,vedi){
var d=document;
if(!d.getElementById) return;
vDoc=(d.documentElement && d.documentElement.clientWidth)?d.documentElement:d.body;
if(!e) e=window.event;
var el=document.getElementById('ToolTip');
if (vedi==true){
scrX=(window.scrollX)?window.scrollX:vDoc.scrollLeft;
scrY=(window.scrollY)?window.scrollY:vDoc.scrollTop;
x = e.clientX + scrX + 'px';
y = e.clientY + scrY + 20 + 'px';
el.style.display="block";
el.style.left = x;
el.style.top = y;
}
else
el.style.display="none";
}
</script>
</head>
<body>
Testo con note
<div id="ToolTip" class="note">
Queste sono le note relative alla voce Testo con note
</div>
</body>
</html>
ciao