Cosi dovrebbe andare per entrambi
codice:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<style type="text/css">
<!--
#volo {position:absolute;top:-1000;left:-1000;width:300;background-color:#ffffcc;font-family:verdana;font-size:8pt;border:1px solid blue}
-->
</style>
<script language="JavaScript" type="text/javascript">
<!--
var testo = "";
function pippo(e) {
e = e == null ? event : e;
if (this.title != "") {
testo = this.title;
this.title = "";
} // if (this.title != "")
aDiv = document.getElementById('volo');
aDiv.style.left = e.clientX;
aDiv.style.top = e.clientY + 10;
aDiv.innerHTML = testo;
} // function pippo(anImage)
function pippo2() {
this.title = testo;
aDiv = document.getElementById('volo');
aDiv.style.left = -1000;
aDiv.style.top = -1000;
aDiv.innerHTML = "";
}
//-->
</script>
</head>
<body>
<div id="volo"></div>
[img]image10.jpg[/img]
[img]image11.jpg[/img]
<script language="JavaScript" type="text/javascript">
<!--
document.getElementById("img01").onmousemove = pippo;
document.getElementById("img01").onmouseout = pippo2;
document.getElementById("img02").onmousemove = pippo;
document.getElementById("img02").onmouseout = pippo2;
//-->
</script>
</body>
</html>