Hola, tengo un menu en java que tiene un problema ya que los dos ultimos links del menu, no cambian las imagenes al pasar el mouse por encima. Supongo que es por la mezcla que hay eventos con el mouse en la tabla, pero no le encuentro la vuelta. Aca les paso el codigo y el link desde lo pueden ver andando.
Gracias!!!!
http://www.tech-services.com.ar/ckm/800600/menu.html
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_nbGroup(event, grpName) { //v3.0
var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
} else if (event == "over") {
document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] : args[i+1];
nbArr[nbArr.length] = img;
}
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
} else if (event == "down") {
if ((nbArr = document[grpName]) != null)
for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
}
//-->
</script>
<script language="JavaScript">
<!--
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
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[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].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[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" onLoad="MM_showHideLayers('Layer2','','show');
MM_preloadImages('graficos/menu/empresariales2.gif',
'graficos/menu/turismo2.gif','graficos/menu/turismoba2.gif','graficos/menu/turismoar2.gif',
'graficos/menu/cotizaciones2.gif','graficos/menu/contactenos2.gif','graficos/menu/empresa2.gif')">
<div id="Layer1" style="position:absolute; width:200px; height:115px; z-index:1;
left: -5px; top: 109px">
<table border="0" cellpadding="4" cellspacing="0" width="266">
<tr>
<td valign="top" height="2" width="266"><a href="empresa.html" target="_top"
onClick="MM_nbGroup('down','group1','empresa','gra ficos/menu/empresa2.gif',1)"
onMouseOver="MM_nbGroup('over','empresa','graficos/menu/empresa2.gif',
'graficos/menu/empresa2.gif',1)"
onMouseOut="MM_nbGroup('out')"> <img name="empresa" src="graficos/menu/empresa.gif"
border="0" hspace="4" vspace="2"></a></td>
</tr>
<tr>
<td width="266"><a href="servicios.html" target="_top" onClick="MM_nbGroup
('down','group1','servicios','graficos/menu/servicios2.gif',1)"
onMouseOver="MM_nbGroup('over','servicios','grafic os/menu/servicios2.gif',
'graficos/menu/servicios2.gif',1)" onMouseOut="MM_nbGroup('out')"> <img name="servicios" src="graficos/menu/servicios.gif" border="0" hspace="4"
vspace="2"></a></td>
</tr>
<tr>
<td width="266"><a href="sociales.html" target="_top" onClick="MM_nbGroup
('down','group1','sociales','graficos/menu/sociales2.gif',1)" onMouseOver="MM_nbGroup
('over','sociales','graficos/menu/sociales2.gif','graficos/menu/sociales2.gif',1)"
onMouseOut="MM_nbGroup('out')"> <img name="sociales" src="graficos/menu/sociales.gif"
border="0" hspace="4" vspace="2"></a></td>
</tr>
<tr>
<td width="266"><a href="empresariales.html" target="_top" onClick="MM_nbGroup
('down','group1','empresariales','graficos/menu/empresariales2.gif',1)"
onMouseOver="MM_nbGroup('over','empresariales','gr aficos/menu/empresariales2.gif',
'graficos/menu/empresariales2.gif',1)" onMouseOut="MM_nbGroup('out')"> <img name="empresariales" src="graficos/menu/empresariales.gif" border="0"
hspace="4" vspace="2"></a></td>
</tr>
<tr>
<td onmouseover="oculto.style.display='inline';oculto. style.visibility='visible';
oculto2.style.display='none';oculto2.style.visibil ity='hidden';"
onmouseout="oculto.style.display='none';oculto.sty le.visibility='hidden';
oculto2.style.display='inline';oculto2.style.visib ility='visible';" width="266">
<a href="#" target="_top" onClick="MM_nbGroup('down','group1','turismo',
'graficos/menu/turismo2.gif',1)" onMouseOver="MM_nbGroup('over','turismo',
'graficos/menu/turismo2.gif','graficos/menu/turismo2.gif',1)"
onMouseOut="MM_nbGroup('out')"> <img name="turismo" src="graficos/menu/turismo.gif"
border="0" hspace="4" vspace="2"></a>
<table id="oculto" name="oculto" style="display:none;visibility:hidden;" width="31%"
border="0" cellpadding="4" cellspacing="0" height="8">
<tr>
<td><a href="turismoar.html" target="_top" onClick="MM_nbGroup('down','group1',
'turismoar','graficos/menu/turismoba2.gif',1)" onMouseOver="MM_nbGroup('over',
'turismoar','graficos/menu/turismoar2.gif','graficos/menu/turismoba2.gif',1)"
onMouseOut="MM_nbGroup('out')" ><img src="graficos/menu/turismoar.gif" border="0"
name="turismoar" vspace="2"></a></td>
</tr>
<tr>
<td><a href="turismoba.html" target="_top" onClick="MM_nbGroup('down','group1',
'turismoba','graficos/menu/turismoba2.gif',1)" onMouseOver="MM_nbGroup('over',
'turismoba','graficos/menu/turismoba2.gif','graficos/menu/turismoba2.gif',1)"
onMouseOut="MM_nbGroup('out')"> <img src="graficos/menu/turismoba.gif" width="250" height="17" border="0" name="turismoba" vspace="2"></a></td>
</tr>
<tr>
<td><a href="cotizaciones.asp" target="_top" onClick="MM_nbGroup('down','group1',
'cotizacion','graficos/menu/cotizaciones2.gif',1)" onMouseOver="MM_nbGroup('over',
'cotizacion','graficos/menu/cotizaciones2.gif','graficos/menu/cotizaciones2.gif',1)"
onMouseOut="MM_nbGroup('out')"> <img name="cotizacion" src="graficos/menu/cotizaciones.gif" border="0" vspace="2"></a></td>
</tr>
<tr>
<td height="29"><a href="contactenos.asp" target="_top"
onClick="MM_nbGroup('down','group1','contactenos', 'graficos/menu/contactenos2.gif',1)"
onMouseOver="MM_nbGroup('over','contactenos','graf icos/menu/contactenos2.gif',
'graficos/menu/contactenos2.gif',1)"
onMouseOut="MM_nbGroup('out')"> <img name="contactenos" src="graficos/menu/contactenos.gif" border="0" vspace="2">
</a></td>
</tr>
</table>
</td>
</tr>
</table>
<table id="oculto2" name="oculto2" style="display:inline;visibility:visible;" border="0"
cellpadding="4" cellspacing="0" width="192">
<tr>
<td valign="top"> <a href="cotizaciones.asp" target="_top"
onClick="MM_nbGroup('down','group1','cotizacion',' graficos/menu/cotizaciones2.gif',1)"
onMouseOver="MM_nbGroup('over','cotizacion','grafi cos/menu/cotizaciones2.gif','graficos/menu/cotizaciones2.gif',1)"
onMouseOut="MM_nbGroup('out')"><img name="cotizacion" src="graficos/menu/cotizaciones.gif" border="0" hspace="4" ></a></td>
</tr>
<tr>
<td valign="top"><a href="contactenos.asp" target="_top"
onClick="MM_nbGroup('down','group1','contactenos', 'graficos/menu/contactenos2.gif',1)"
onMouseOver="MM_nbGroup('over','contactenos','graf icos/menu/contactenos2.gif','graficos/menu/contactenos2.gif',1)"
onMouseOut="MM_nbGroup('out')"><img name="contactenos" src="graficos/menu/contactenos.gif" border="0" hspace="4" vspace="3" ></a></td>
</tr>
</table>
</div>
</body>
</html>