Forenindex » Programmierung/Entwicklung » JavaScript » Mouseover geht nicht =(

Mouseover geht nicht =(

Anonym
Beiträge gesamt: 22827

9. Sep 2004, 15:09
Bewertung:

gelesen: 257

Beitrag als Lesezeichen
hallo,

ich erzeuge mit php eine html seite inkl. javascript die so aussieht:



<script type="text/javascript" language="JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>
<table border="0" align="center"><tr><a href="http://www.xix.de/index.htm"><img src="bilder/1.jpg" border="0" onbeforeunload="MM_openBrWindow('http://www.xix.de/...th=800,height=600')" width="640" height="480" name="DScam"></a>

<div id="1.jpg" style="Z-INDEX: 1; LEFT: 0px; TOP: 0px; WIDTH: 0px; HEIGHT: 0px; POSITION: absolute; visibility: hidden;">
<img src="bilder/1.jpg" alt="Bild 1" border=0 width="640" height="480"></div>
<td valign="bottom" align="center">
<a href="index.php?bild=1.jpg" target="_blank"><img src="bilder/1.jpg" onMouseOver="MM_showHideLayers('1.jpg','','show')" onMouseOut="MM_showHideLayers('1.jpg','','hide')" width="100" height="75" border="1 px" align=TOP alt="1.jpg">
<br></td>

<div id="2.jpg" style="Z-INDEX: 1; LEFT: 0px; TOP: 0px; WIDTH: 0px; HEIGHT: 0px; POSITION: absolute; visibility: hidden;">
<img src="bilder/1.jpg" alt="Bild 1" border=0 width="640" height="480"></div>
<td valign="bottom" align="center">
<a href="index.php?bild=2.jpg" target="_blank"><img src="bilder/2.jpg" onMouseOver="MM_showHideLayers('2.jpg','','show')" onMouseOut="MM_showHideLayers('2.jpg','','hide')" width="100" height="75" border="1 px" align=TOP alt="2.jpg">
<br></td>

<div id="3.jpg" style="Z-INDEX: 1; LEFT: 0px; TOP: 0px; WIDTH: 0px; HEIGHT: 0px; POSITION: absolute; visibility: hidden;">
<img src="bilder/1.jpg" alt="Bild 1" border=0 width="640" height="480"></div>
<td valign="bottom" align="center">
<a href="index.php?bild=3.jpg" target="_blank"><img src="bilder/3.jpg" onMouseOver="MM_showHideLayers('3.jpg','','show')" onMouseOut="MM_showHideLayers('3.jpg','','hide')" width="100" height="75" border="1 px" align=TOP alt="3.jpg">
<br></td></tr><tr></tr></table><center><br><a href = "http://www.costabrava-online.com" target = "_blank"><font size="1">http://www.costabrava-online.com</...a></center>

leider werden die layer beim mouseover nicht angezeigt... kann mir jemand helfen und sagen was falsch ist?