// // Definicion de Objetos para navegador cruzado // // función para instanciar objetos de ecualizador function setup() { capas = document.all.tags("DIV"); numcapa= new Array(capas.length); nomcapa = new Array(capas.length); for (i = 0; i < capas.length; i++){ numcapa[i] = new ie_object(capas[i]); nomcapa[capas[i].id] = new ie_object(capas[i]); } } // crear objeto ecualizador en DHTML function ie_object(obj) { this.css1 = obj; this.hide = hide_me; this.show = show_me; this.move = move_object; this.moveby = moveby; } // ocultar elemento function hide_me() { this.css1.style.visibility = "hidden"; } // mostrar elemento function show_me() { this.css1.style.visibility = "inherit"; } // realizar movimiento absoluto function move_object(newleft, newtop) { this.css1.style.left = newleft; this.css1.style.top = newtop; } // mover relativo a la posición actual function moveby(left, top) { this.css1.style.left= this.css1.style.pixelLeft + left; this.css1.style.top = this.css1.style.pixelTop + top; }