Salve a tutti. Ho cercato la risposta al mio problema sul forum. Anzi partendo dal vostro tutorial
https://www.mrw.it/javascript/rollover-multiplo-mappe-immagine-dhtml_7080.html, sto cercando di attivare la funzione OnMouseOver su un hotspot di Dreamweaver ma non mi funziona. Questo il codice:
Dove sbaglio?
Grazie a tutti!
pati
https://www.mrw.it/javascript/rollover-multiplo-mappe-immagine-dhtml_7080.html, sto cercando di attivare la funzione OnMouseOver su un hotspot di Dreamweaver ma non mi funziona. Questo il codice:
HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
function RollMapOn(i)
{
var IMG = document.getElementById("mappa");
IMG.src = "mappa_" + i + ".gif";
}
function RollMapOff()
{
var IMG = document.getElementById("mappa");
IMG.src = "mappa.gif";
}
</script>
</head>
<body>
<img src="mappa.gif" width="430" height="442" border="0" usemap="#mappa" name="mappa" id="mappa"></td>
<map name="mappa">
<area shape="poly" coords="38,93,59,103,88,101,128,142,131,158,147,162,158,171,156,187,156,217,148,218,136,205,130,215,132,203,120,204,116,193,102,195,84,188,73,184,71,169,62,159,50,154,40,156,36,149,29,151,26,139,23,115,38,110"
href="4.htm"
onmouseover="RollMapOn(1)" onmouseout="RollMapOff()">
</map>
</body>
</html>
Grazie a tutti!
pati
Ultima modifica di un moderatore: