Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/05/2005, 10:19
DirecFox
 
Fecha de Ingreso: julio-2003
Ubicación: Arequipa - Peru
Mensajes: 148
Antigüedad: 21 años, 8 meses
Puntos: 0
Error en Menu desplegable (urgente por favor)

hola amigos estoy haciendo dos menus desplagables, el primero me sale bien cuando quiero añadir otro se malogran los dos este es el codigo que utilizo
Código HTML:
startList = function() {
	if (document.all&&document.getElementById){
		navRoot= document.getElementById("DFMen");
		for (i=0; i<navRoot.childNodes.length; i++){
			node=navRoot.childNodes[i];
			if (node.nodeName=="LI"){
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className= DFMen.className.replace(" over","");
				}
			}
		}
		
	
	}
}
y cuando adicion el otro ahi se malogra todo este es el codigo
Código PHP:
startList = function() {
    if (
document.all&&document.getElementById){
        
navRootdocument.getElementById("DFMen");
        for (
i=0i<navRoot.childNodes.lengthi++){
            
node=navRoot.childNodes[i];
            if (
node.nodeName=="LI"){
                
node.onmouseover=function() {
                    
this.className+=" over";
                }
                
node.onmouseout=function() {
                    
this.classNameDFMen.className.replace(" over","");
                }
            }
        }
        
        
navRootV document.getElementById("DFMenVer");
        for (
i=0i<navRootV.childNodes.lengthi++) {
            
nodeV navRootV.childNodes[i];
            if (
nodeV.nodeName=="LI") {
                
nodeV.onmouseover=function() {
                    
this.className+=" over";
                }
                
nodeV.onmouseout=function() {
                  
this.classNamethis.className.replace(" over","");
                }
            }
        }        
    }
}
window.onload=startList
Espero que me ayuden por que estoy al desesperado

Saludos

Mauricio
__________________
Sysdev tu Hosting
http://www.preuniversitarioonline.com Llevamos la universidad a tu casa

Última edición por DirecFox; 04/05/2005 a las 15:04