Tobias: map legen auf onmouseover-grafik

Beitrag lesen

Scheisse, leider funktioniert meine Version nicht mit Netscape....kannst Du mal reinsehen:

<html>

<head>
<title></title>
<base target="Inhalt">
<script LANGUAGE="JavaScript"><!--

var globalNum = null;

if (document.images){

document.write('<MAP NAME="weinshop.map">');
document.write('<area shape="rect" coords="0,20,60,35" href="Inhalte/JumpToGlossar.htm" onMouseOver="msover(0)" onMouseOut="msout(0)" TARGET=_top>');
document.write('<area shape="rect" coords="0,0,412,19" " onMouseOver="msover(0)" onMouseOut="msout(0)" TARGET=_top>');

}

if (document.images)
{

// Anzahl vorhergehender Bilder (die nichts mit den Rollovers zu tun haben:

n = 0;
    
  // Anti-flicker array
  
    onState = new MakeArray(6);
  
  // Bilderstatus array
  
        offHomeNav = new MakeImgarray(6);
       onHomeNav = new MakeImgarray(6);

// home navigation, aus Zustaende

offHomeNav[0].src = "menueleiste111.jpg";
            
  
   // home navigation, an Zustaende

onHomeNav[0].src = "menueleiste112.jpg";
            
}

function MakeImgarray(n) {
this.length = n;
for (var i = 0; i<=n; i++) {

this[i] = new Image();
  }
}

function MakeArray(n) {
this.length = n;
for (var i = 0; i<=n; i++) {

this[i] = 0;
  }
}

function msover(num) {
if (document.images) {
  onState[num] = 1;
  if (onHomeNav[num].src != "") {
   document.images[num+n].src = onHomeNav[num].src;
   }
  }
}

function msout(num) {
if (document.images) {
  onState[num] = 0;
  globalNum = num;
  if (offHomeNav[num].src != "") {
   setTimeout('if (!onState[globalNum]) document.images[globalNum+n].src = offHomeNav[globalNum].src',1);
   }
  }
}

//--></script>
</head>

<body background="images/Frameecke331.JPG">
<div align="right">

<table border="0" cellpadding="0" cellspacing="0" width="70%">
  <tr>
    <td width="50%"></td>
    <td width="50%"><img border="0" height="36" src="menueleiste111.jpg"
    useMap="#weinshop.map" width="413"></td>
  </tr>
</table>
</div>
</body>
</html>