Hola gente.
Espero que estén teniendo un buen día.
Something etrange is happenning to me: in a function, the query (IF), is not just comparing the actual value from the object's attribute, but giving the attribute the value wich I want to compare. Hard to understand? See the code! It's assigning "0,*" to the .cols of the frameset!
Me ocurre algo extraño y desagradable: en una función, la consulta (if) en javascript, en vez de ir a buscar el valor actual del atributo de un objeto, en este caso el valor de .cols en el frameset "arreglo", y compararlo, le asigna el valor "o,*". ?????
NOTE: "arreglo" is the id for the frameset.
function posicionar(){
if (parent.document.all.arreglo.cols = "0,*"
{
sinop.style.left=((800/2)-(250/2))
sinop.left=((800/2)-(250/2))
}
else{
sinop.style.left=((569/2)-(250/2))
sinop.left=((569/2)-(250/2))
}
}
¿Alguien sabe qué ocurre?
Gracias.
Espero que estén teniendo un buen día.
Something etrange is happenning to me: in a function, the query (IF), is not just comparing the actual value from the object's attribute, but giving the attribute the value wich I want to compare. Hard to understand? See the code! It's assigning "0,*" to the .cols of the frameset!
Me ocurre algo extraño y desagradable: en una función, la consulta (if) en javascript, en vez de ir a buscar el valor actual del atributo de un objeto, en este caso el valor de .cols en el frameset "arreglo", y compararlo, le asigna el valor "o,*". ?????
NOTE: "arreglo" is the id for the frameset.
function posicionar(){
if (parent.document.all.arreglo.cols = "0,*"
sinop.style.left=((800/2)-(250/2))
sinop.left=((800/2)-(250/2))
}
else{
sinop.style.left=((569/2)-(250/2))
sinop.left=((569/2)-(250/2))
}
}
¿Alguien sabe qué ocurre?
Gracias.