Tiene algo que ver con CSS? --- Juan pablo aqueveque -> http://juque.f2o.org/
> -----Mensaje original----- > De: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] En nombre de Santiago > Gonzalez Courel > Enviado el: viernes, 02 de julio de 2004 2:21 > Para: [EMAIL PROTECTED] > Asunto: [Ovillo] Capas y Netscape. > > > Hola a Todos, > > tengo el siguiente script: > > > <script language="JavaScript"> > > var ns4,ie4; > > obj = new Object(); > > var flag = 0; > > function cambiaImagen(imagen,ruta,estado){ > > if(estado=='false') > > { > > imagen.src=ruta; > > } > > } > > > > function mostrarOcultarCapa(capa) > > { > > alert('dentro del function'); > > if (capa.style.visibility=="hidden" || capa.style.visibility=="hide") > > { > > alert('dentro del if'); > > if (flag>0) > > { > > ocultar(obj); > > } > > mostrar(capa); > > parent.oculto.capaAbierta=capa; > > obj = capa; > > flag=1; > > } > > else > > { > > ocultar(capa); > > parent.oculto.capaAbierta=""; > > flag=0; > > } > > } > > function mostrar(capa) > > { > > ns4 = (document.layers)? true:false; > > ie4 = (document.all)? true:false; > > if (ns4) > > { > > alert(ns4); > > capa.style.visibility="show"; > > capa.style.position="relative"; > > } > > if (ie4) > > { > > capa.style.visibility="visible"; > > capa.style.position="relative"; > > } > > } > > > > function ocultar (capa) > > { > > ns4 = (document.layers)? true:false; > > ie4 = (document.all)? true:false; > > if (ns4) > > { > > capa.style.visibility="hide"; > > capa.style.position="absolute"; > > } > > > > if (ie4) > > { > > capa.style.visibility="hidden"; > > capa.style.position="absolute"; > > } > > } > > var flagTxt=0; > > objTxt = new Object(); > > var flagImg=0; > > objImg = new Object(); > > function cambiarTexto (menuOption, img) > > { > > if (menuOption.style.fontWeight == "bold") > > { > > img.src="/nueva_imagen/img/flechaGris.gif"; > > menuOption.style.fontWeight = ""; > > flagTxt=0; > > } > > else > > { > > img.src="/nueva_imagen/img/flechaGrisActivo.gif"; > > menuOption.style.fontWeight = "bold"; > > if (flagTxt>0) > > { > > objTxt.style.fontWeight = ""; > > objImg.src="/nueva_imagen/img/flechaGris.gif"; > > } > > flagTxt=1; > > objTxt=menuOption; > > objImg=img; > > } > > } > > > > function checkCapaAbierta () > > { > > if(parent.oculto.capaAbierta != "") > > { > > if (parent.oculto.capaAbierta !=null) > > { > > if(parent.oculto.capaAbierta !="capa") > > { > > if (ie4) > > { > > mostrarOcultarCapa(document.getElementById(parent.oculto.capaA > bierta.id)); > > cambiarTexto(document.getElementById(parent.oculto.capaAbierta > .name),document.getElementById('img'+ > parent.oculto.capaAbierta.name)); > > } > > if (ns4) > > { > > mostrarOcultarCapa(document.layers(parent.oculto.capaAbierta.id)); > > cambiarTexto(document.layers(parent.oculto.capaAbierta.name),d ocument.getElementById('img'+ parent.oculto.capaAbierta.name)); > > } > > } > > } > > } > > } > > > > El objetivo de todo esto es que cuando pinche sobre una > opci�n del men�, las opciones "hijas" me las muestra en una > capa, sin embargo, en IE no tengo problemas pero en Netscape > no funciona adecuadamente, si alguno tiene una sugerencia se > lo agradecer�a much�simo, muchas gracias. > > > > --------------------------------- > > [input] [input] [input] > _______________________________________________ > Ovillo mailing list > [EMAIL PROTECTED] http://ovillo.org/mailman/listinfo/ovillo_ovillo.org > _______________________________________________ Ovillo mailing list [EMAIL PROTECTED] http://ovillo.org/mailman/listinfo/ovillo_ovillo.org
