Foros del Web » Programando para Internet » Javascript »

Dinamic Layer Object y Firefox

Estas en el tema de Dinamic Layer Object y Firefox en el foro de Javascript en Foros del Web. Hola amigos!! Tengo un problema con firefox y capas dynlayer. La cosa es que al pasar el puntero por ciertas partes se muestra una nueva ...
  #1 (permalink)  
Antiguo 11/10/2005, 02:51
 
Fecha de Ingreso: junio-2005
Mensajes: 149
Antigüedad: 18 años, 11 meses
Puntos: 0
Dinamic Layer Object y Firefox

Hola amigos!!

Tengo un problema con firefox y capas dynlayer. La cosa es que al pasar el puntero por ciertas partes se muestra una nueva capa-menu, pero en firefox no se muestra. Es un codigo bastante viejo q lleva sin tocarse años y tal vez a alguien le suene de algo. La parte de codigo correspondiente al problema es la siguiente:

function DynLayer(id,nestref,frame) {
if (!is.ns5 && !DynLayer.set && !frame) DynLayerInit()
this.frame = frame || self
if (is.ns) {
if (is.ns4) {
if (!frame) {
if (!nestref) var nestref = DynLayer.nestRefArray[id]
if (!DynLayerTest(id,nestref)) return
this.css = (nestref)? eval("document."+nestref+".document."+id) : document.layers[id]
}
else this.css = (nestref)? eval("frame.document."+nestref+".document."+id) : frame.document.layers[id]
this.elm = this.event = this.css
this.doc = this.css.document
}
else if (is.ns5) {
this.elm = document.getElementById(id)
this.css = this.elm.style
this.doc = document
}
this.x = this.css.left
this.y = this.css.top
this.w = this.css.clip.width
this.h = this.css.clip.height
}
else if (is.ie) {
this.elm = this.event = this.frame.document.all[id]
this.css = this.frame.document.all[id].style
this.doc = document
this.x = this.elm.offsetLeft
this.y = this.elm.offsetTop
this.w = (is.ie4)? this.css.pixelWidth : this.elm.offsetWidth
this.h = (is.ie4)? this.css.pixelHeight : this.elm.offsetHeight
}
this.id = id
this.nestref = nestref
this.obj = id + "DynLayer"
eval(this.obj + "=this")
}

Me imagino que habrá que crear un nuevo if para firefox pero desconozco la nomenclatura que usar. Espero que alguien me pueda dar alguna pista al respecto. Saludos y muchas gracias!!
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 16:04.