logoExtra: script.aperturas_y_cierres

Descripción: Inicialización de eventos para le página "Transiciones: Aperturas y cierres".


A continuación mostramos los apuntes asociados a este extra:

Transiciones: Aperturas y cierres
Aunque las transiciones de apertura y de cierre son prácticamente iguales, debemos diferenciar en la implementación cosas importantes.
// Descripción para sindicación:
/*
    [rss]Inicialización de eventos para le página "Transiciones: Aperturas y cierres".[/rss]
*/
//<![CDATA[
function objetoTransiciones(l, f, an, al, c, v, b)    {
    this._lapsus_ = l;// milisegundos de la transición
    this._fotogramas_ = f;// número de fotogramas por _lapsus_
    this._escala_ = l / f;
    this._ancho_ = an;// anchura de la zona de transición
    this._alto_ = al;// altura de la zona de transición
    this._capas_ = c;// array con el id de las capas afectadas
    this._visible_ = v;// primera capa visible al inicio. Se actualizará en cada transición...
    this._base_ = b;// contenedor de las capas
    _resguardamos = tag(this._visible_).cloneNode(true);
    tag(this._visible_).parentNode.removeChild(tag(this._visible_))
    tag(this._base_).appendChild(_resguardamos);
    this.id_temp = "objetoTransiciones_" + Math.random() * 1000;
    capa_temp = document.createElement("div");
    capa_temp.style.position = "absolute";
    capa_temp.id = this.id_temp;
    tag(this._base_).appendChild(capa_temp);

    this._limpiar_ = function()    {
        while (tag(this.id_temp).hasChildNodes())
            tag(this.id_temp).removeChild(tag(this.id_temp).firstChild);
    }

    this.asignar_tiempo = function(x)    {
        this._lapsus_ = x;
        this._escala_ = x / this._fotogramas_;
    }

    this.asignaciones = function(x)    {
        _resguardar = tag(this._visible_).cloneNode(true);
        tag(this._visible_).parentNode.removeChild(tag(this._visible_));
        tag(this._base_).appendChild(_resguardar);

        _resguardar = tag(x).cloneNode(true);
        tag(x).parentNode.removeChild(tag(x));
        tag(this._base_).appendChild(_resguardar);
    }
}

objetoTransiciones.prototype.fundido = function(x)    {
    this._limpiar_()
    if (x == this._visible_)    {
        return;
    }
    else    {
        this.asignaciones(x);
        tag(x).style.opacity = "0";
        tag(x).style.top = "0";
        tag(x).style.left = "0";
        for (i = this._fotogramas_; i > 0; i--)    {
            accion = "tag('" + x + "').style.opacity = '" + (i / this._fotogramas_) + "'";
            setTimeout(accion, i * this._escala_);
        }
        this._visible_ = x;
    }
}

objetoTransiciones.prototype.dn = function(x)    {
    this._limpiar_();
    if (x == this._visible_)    {
        return;
    }
    else    {
        this.asignaciones(x);
        _resguardar = tag(this._visible_).cloneNode(true);
        tag(this.id_temp).appendChild(_resguardar);
        _resguardar = tag(x).cloneNode(true);
        _resguardar.style.top = -this._alto_ + "px";
        _resguardar.style.left = "0";
        tag(this.id_temp).appendChild(_resguardar);

        _resguardar = tag(this.id_temp).cloneNode(true);
        tag(this._base_).removeChild(tag(this.id_temp));
        tag(this._base_).appendChild(_resguardar);
        tag(this.id_temp).style.top = "0";
        tag(this.id_temp).style.left = "0";
        for (i = 1, total = this._fotogramas_; i <= total; i++)    {
            accion = "tag('" + this.id_temp + "').style.top = '" + (this._alto_ * i / this._fotogramas_) + "px'";
            setTimeout(accion, i * this._escala_);
        }
        this._visible_ = x;
    }
}

objetoTransiciones.prototype.ds = function(x)    {
    this._limpiar_();
    if (x == this._visible_)    {
        return;
    }
    else    {
        this.asignaciones(x);
        _resguardar = tag(this._visible_).cloneNode(true);
        _resguardar.id = "id_temp2_" + (Math.random() * 1000);
        tag(this.id_temp).appendChild(_resguardar);
        _resguardar = tag(x).cloneNode(true);
        _resguardar.style.top = this._alto_ + "px";
        _resguardar.style.left = "0";
        _resguardar.id = "id_temp2_" + (Math.random() * 1000);
        tag(this.id_temp).appendChild(_resguardar);

        _resguardar = tag(this.id_temp).cloneNode(true);
        tag(this._base_).removeChild(tag(this.id_temp));
        tag(this._base_).appendChild(_resguardar);
        tag(this.id_temp).style.top = "0";
        tag(this.id_temp).style.left = "0";
        for (i = this._fotogramas_; i > 0; i--)    {
            accion = "tag('" + this.id_temp + "').style.top = '" + -(this._alto_ * i / this._fotogramas_) + "px'";
            setTimeout(accion, i * this._escala_);
        }
        this._visible_ = x;
    }
}

objetoTransiciones.prototype.do = function(x)    {
    this._limpiar_();
    if (x == this._visible_)    {
        return;
    }
    else    {
        this.asignaciones(x);
        _resguardar = tag(this._visible_).cloneNode(true);
        _resguardar.id = "id_temp2_" + (Math.random() * 1000);
        tag(this.id_temp).appendChild(_resguardar);
        _resguardar = tag(x).cloneNode(true);
        _resguardar.style.left = -this._ancho_ + "px";
        _resguardar.style.top = "0";
        _resguardar.id = "id_temp2_" + (Math.random() * 1000);
        tag(this.id_temp).appendChild(_resguardar);

        _resguardar = tag(this.id_temp).cloneNode(true);
        tag(this._base_).removeChild(tag(this.id_temp));
        tag(this._base_).appendChild(_resguardar);
        tag(this.id_temp).style.left = "0";
        tag(this.id_temp).style.top = "0";
        for (i = 1, total = this._fotogramas_; i <= total; i++)    {
            accion = "tag('" + this.id_temp + "').style.left = '" + (this._ancho_ * i / this._fotogramas_) + "px'";
            setTimeout(accion, i * this._escala_);
        }
        this._visible_ = x;
    }
}

objetoTransiciones.prototype.de = function(x)    {
    this._limpiar_();
    if (x == this._visible_)    {
        return;
    }
    else    {
        this.asignaciones(x);
        _resguardar = tag(this._visible_).cloneNode(true);
        _resguardar.id = "id_temp2_" + (Math.random() * 1000);
        tag(this.id_temp).appendChild(_resguardar);
        _resguardar = tag(x).cloneNode(true);
        _resguardar.style.left = this._ancho_ + "px";
        _resguardar.style.top = "0";
        _resguardar.id = "id_temp2_" + (Math.random() * 1000);
        tag(this.id_temp).appendChild(_resguardar);

        _resguardar = tag(this.id_temp).cloneNode(true);
        tag(this._base_).removeChild(tag(this.id_temp));
        tag(this._base_).appendChild(_resguardar);
        tag(this.id_temp).style.left = "0";
        tag(this.id_temp).style.top = "0";
        for (i = this._fotogramas_; i > 0; i--)    {
            accion = "tag('" + this.id_temp + "').style.left = '" + -(this._ancho_ * i / this._fotogramas_) + "px'";
            setTimeout(accion, i * this._escala_);
        }
        this._visible_ = x;
    }
}

objetoTransiciones.prototype.an = function(x)    {// apertura desde el norte
    this._limpiar_();
    if (x == this._visible_)    {
        return;
    }
    else    {
        this.asignaciones(x);
        _resguardar = tag(this._visible_).cloneNode(true);
        tag(this.id_temp).appendChild(_resguardar);
        _resguardar = tag(this.id_temp).cloneNode(true);
        tag(this._base_).removeChild(tag(this.id_temp));
        tag(this._base_).appendChild(_resguardar);
        tag(this.id_temp).style.top = "0";
        tag(this.id_temp).style.left = "0";
        tag(this.id_temp).style.height = this._alto_ + "px";
        tag(this.id_temp).style.width = this._ancho_ + "px";
        for (i = 1, total = this._fotogramas_; i <= total; i++)    {
            accion = "tag('" + this.id_temp + "').style.top = '" + -(this._alto_ * i / this._fotogramas_) + "px'";
            setTimeout(accion, i * this._escala_);
        }
        this._visible_ = x;
    }
}

objetoTransiciones.prototype.as = function(x)    {// apertura desde el sur
    this._limpiar_();
    if (x == this._visible_)    {
        return;
    }
    else    {
        this.asignaciones(x);
        _resguardar = tag(this._visible_).cloneNode(true);
        _resguardar.id = "id_temp2_" + (Math.random() * 1000);
        tag(this.id_temp).appendChild(_resguardar);
        _resguardar = tag(this.id_temp).cloneNode(true);
        tag(this._base_).removeChild(tag(this.id_temp));
        tag(this._base_).appendChild(_resguardar);
        tag(this.id_temp).style.top = "0";
        tag(this.id_temp).style.left = "0";
        for (i = 1, total = this._fotogramas_; i <= total; i++)    {
            accion = "tag('" + this.id_temp + "').style.top = '" + (this._alto_ * i / this._fotogramas_) + "px'";
            setTimeout(accion, i * this._escala_);
        }
        this._visible_ = x;
    }
}

objetoTransiciones.prototype.ao = function(x)    {// apertura desde el oeste
    this._limpiar_();
    if (x == this._visible_)    {
        return;
    }
    else    {
        this.asignaciones(x);

        _resguardar = tag(this._visible_).cloneNode(true);
        _resguardar.id = "id_temp2_" + (Math.random() * 1000);
        tag(this.id_temp).appendChild(_resguardar);

        _resguardar = tag(this.id_temp).cloneNode(true);
        tag(this._base_).removeChild(tag(this.id_temp));
        tag(this._base_).appendChild(_resguardar);
        tag(this.id_temp).style.top = "0";
        tag(this.id_temp).style.left = "0";
        for (i = 1, total = this._fotogramas_; i <= total; i++)    {
            accion = "tag('" + this.id_temp + "').style.left = '" + -(this._ancho_ * i / this._fotogramas_) + "px'";
            setTimeout(accion, i * this._escala_);
        }
        this._visible_ = x;
    }
}

objetoTransiciones.prototype.ae = function(x)    {// apertura desde el este
    this._limpiar_();
    if (x == this._visible_)    {
        return;
    }
    else    {
        this.asignaciones(x);
        _resguardar = tag(this._visible_).cloneNode(true);
        _resguardar.id = "id_temp2_" + (Math.random() * 1000);
        tag(this.id_temp).appendChild(_resguardar);
        _resguardar = tag(this.id_temp).cloneNode(true);
        tag(this._base_).removeChild(tag(this.id_temp));
        tag(this._base_).appendChild(_resguardar);
        tag(this.id_temp).style.top = "0";
        tag(this.id_temp).style.left = "0";
        for (i = 1, total = this._fotogramas_; i <= total; i++)    {
            accion = "tag('" + this.id_temp + "').style.left = '" + (this._ancho_ * i / this._fotogramas_) + "px'";
            setTimeout(accion, i * this._escala_);
        }
        this._visible_ = x;
    }
}

objetoTransiciones.prototype.ano = function(x)    {// apertura desde el norte/oeste
    this._limpiar_();
    if (x == this._visible_)    {
        return;
    }
    else    {
        this.asignaciones(x);

        _resguardar = tag(this._visible_).cloneNode(true);
        _resguardar.id = "id_temp2_" + (Math.random() * 1000);
        tag(this.id_temp).appendChild(_resguardar);

        _resguardar = tag(this.id_temp).cloneNode(true);
        tag(this._base_).removeChild(tag(this.id_temp));
        tag(this._base_).appendChild(_resguardar);
        tag(this.id_temp).style.top = "0";
        tag(this.id_temp).style.left = "0";
        for (i = 1, total = this._fotogramas_; i <= total; i++)    {
            accion1 = "tag('" + this.id_temp + "').style.top = '" + -(this._alto_ * i / this._fotogramas_) + "px'";
            setTimeout(accion1, i * this._escala_);
            accion2 = "tag('" + this.id_temp + "').style.left = '" + -(this._ancho_ * i / this._fotogramas_) + "px'";
            setTimeout(accion2, i * this._escala_);
        }
        this._visible_ = x;
    }
}

objetoTransiciones.prototype.ane = function(x)    {// apertura desde el norte/este
    this._limpiar_();
    if (x == this._visible_)    {
        return;
    }
    else    {
        this.asignaciones(x);

        _resguardar = tag(this._visible_).cloneNode(true);
        _resguardar.id = "id_temp2_" + (Math.random() * 1000);
        tag(this.id_temp).appendChild(_resguardar);

        _resguardar = tag(this.id_temp).cloneNode(true);
        tag(this._base_).removeChild(tag(this.id_temp));
        tag(this._base_).appendChild(_resguardar);
        tag(this.id_temp).style.top = "0";
        tag(this.id_temp).style.left = "0";
        for (i = 1, total = this._fotogramas_; i <= total; i++)    {
            accion1 = "tag('" + this.id_temp + "').style.top = '" + -(this._alto_ * i / this._fotogramas_) + "px'";
            setTimeout(accion1, i * this._escala_);
            accion2 = "tag('" + this.id_temp + "').style.left = '" + (this._ancho_ * i / this._fotogramas_) + "px'";
            setTimeout(accion2, i * this._escala_);
        }
        this._visible_ = x;
    }
}

objetoTransiciones.prototype.aso = function(x)    {// apertura desde el sur/oeste
    this._limpiar_();
    if (x == this._visible_)    {
        return;
    }
    else    {
        this.asignaciones(x);

        _resguardar = tag(this._visible_).cloneNode(true);
        _resguardar.id = "id_temp2_" + (Math.random() * 1000);
        tag(this.id_temp).appendChild(_resguardar);

        _resguardar = tag(this.id_temp).cloneNode(true);
        tag(this._base_).removeChild(tag(this.id_temp));
        tag(this._base_).appendChild(_resguardar);
        tag(this.id_temp).style.top = "0";
        tag(this.id_temp).style.left = "0";
        for (i = 1, total = this._fotogramas_; i <= total; i++)    {
            accion1 = "tag('" + this.id_temp + "').style.top = '" + (this._alto_ * i / this._fotogramas_) + "px'";
            setTimeout(accion1, i * this._escala_);
            accion2 = "tag('" + this.id_temp + "').style.left = '" + -(this._ancho_ * i / this._fotogramas_) + "px'";
            setTimeout(accion2, i * this._escala_);
        }
        this._visible_ = x;
    }
}

objetoTransiciones.prototype.ase = function(x)    {// apertura desde el sur/este
    this._limpiar_();
    if (x == this._visible_)    {
        return;
    }
    else    {
        this.asignaciones(x);

        _resguardar = tag(this._visible_).cloneNode(true);
        _resguardar.id = "id_temp2_" + (Math.random() * 1000);
        tag(this.id_temp).appendChild(_resguardar);

        _resguardar = tag(this.id_temp).cloneNode(true);
        tag(this._base_).removeChild(tag(this.id_temp));
        tag(this._base_).appendChild(_resguardar);
        tag(this.id_temp).style.top = "0";
        tag(this.id_temp).style.left = "0";
        for (i = 1, total = this._fotogramas_; i <= total; i++)    {
            accion1 = "tag('" + this.id_temp + "').style.top = '" + (this._alto_ * i / this._fotogramas_) + "px'";
            setTimeout(accion1, i * this._escala_);
            accion2 = "tag('" + this.id_temp + "').style.left = '" + (this._ancho_ * i / this._fotogramas_) + "px'";
            setTimeout(accion2, i * this._escala_);
        }
        this._visible_ = x;
    }
}

objetoTransiciones.prototype.cn = function(x)    {// cierre desde el norte
    this._limpiar_();
    if (x == this._visible_)    {
        return;
    }
    else    {
        this.asignaciones(x);
        tag(x).style.top = -this._alto_ + "px";
        tag(x).style.left = "0";
        for (i = 1; i <= this._fotogramas_; i++)    {
            accion = "tag('" + x + "').style.top = '" + -parseInt(this._alto_ - ((i / this._fotogramas_) * this._alto_)) + "px'";
            setTimeout(accion, i * this._escala_);
        }
        this._visible_ = x;
    }
}

objetoTransiciones.prototype.cs = function(x)    {// cierre desde el sur
    this._limpiar_();
    if (x == this._visible_)    {
        return;
    }
    else    {
        this.asignaciones(x);
        tag(x).style.top = this._alto_ + "px";
        tag(x).style.left = "0";
        for (i = 1; i <= this._fotogramas_; i++)    {
            accion = "tag('" + x + "').style.top = '" + parseInt(this._alto_ - ((i / this._fotogramas_) * this._alto_)) + "px'";
            setTimeout(accion, i * this._escala_);
        }
        this._visible_ = x;
    }
}

objetoTransiciones.prototype.co = function(x)    {// cierre desde el oeste
    this._limpiar_();
    if (x == this._visible_)    {
        return;
    }
    else    {
        this.asignaciones(x);
        tag(x).style.left = -this._ancho_ + "px";
        tag(x).style.top = "0";
        for (i = 1; i <= this._fotogramas_; i++)    {
            accion = "tag('" + x + "').style.left = '" + -parseInt(this._ancho_ - ((i / this._fotogramas_) * this._ancho_)) + "px'";
            setTimeout(accion, i * this._escala_);
        }
        this._visible_ = x;
    }
}

objetoTransiciones.prototype.ce = function(x)    {// apertura desde el este
    this._limpiar_();
    if (x == this._visible_)    {
        return;
    }
    else    {
        this.asignaciones(x);
        tag(x).style.left = this._ancho_ + "px";
        tag(x).style.top = "0";
        for (i = 1; i <= this._fotogramas_; i++)    {
            accion = "tag('" + x + "').style.left = '" + parseInt(this._ancho_ - ((i / this._fotogramas_) * this._ancho_)) + "px'";
            setTimeout(accion, i * this._escala_);
        }
        this._visible_ = x;
    }
}

objetoTransiciones.prototype.cno = function(x)    {// cierre desde el norte/oeste
    this._limpiar_();
    if (x == this._visible_)    {
        return;
    }
    else    {
        this.asignaciones(x);
        tag(x).style.top = -this._alto_ + "px";
        tag(x).style.left = -this._ancho_ + "px";
        for (i = 1; i <= this._fotogramas_; i++)    {
            accion1 = "tag('" + x + "').style.top = '" + -parseInt(this._alto_ - ((i / this._fotogramas_) * this._alto_)) + "px'";
            setTimeout(accion1, i * this._escala_);
            accion2 = "tag('" + x + "').style.left = '" + -parseInt(this._ancho_ - ((i / this._fotogramas_) * this._ancho_)) + "px'";
            setTimeout(accion2, i * this._escala_);
        }
        this._visible_ = x;
    }
}

objetoTransiciones.prototype.cne = function(x)    {// cierre desde el norte/este
    this._limpiar_();
    if (x == this._visible_)    {
        return;
    }
    else    {
        this.asignaciones(x);
        tag(x).style.top = -this._alto_ + "px";
        tag(x).style.left = this._ancho_ + "px";
        for (i = 1; i <= this._fotogramas_; i++)    {
            accion1 = "tag('" + x + "').style.top = '" + -parseInt(this._alto_ - ((i / this._fotogramas_) * this._alto_)) + "px'";
            setTimeout(accion1, i * this._escala_);
            accion2 = "tag('" + x + "').style.left = '" + parseInt(this._ancho_ - ((i / this._fotogramas_) * this._ancho_)) + "px'";
            setTimeout(accion2, i * this._escala_);
        }
        this._visible_ = x;
    }
}

objetoTransiciones.prototype.cso = function(x)    {// apertura desde el sur/oeste
    this._limpiar_();
    if (x == this._visible_)    {
        return;
    }
    else    {
        this.asignaciones(x);
        tag(x).style.top = this._alto_ + "px";
        tag(x).style.left = -this._ancho_ + "px";
        for (i = 1; i <= this._fotogramas_; i++)    {
            accion1 = "tag('" + x + "').style.top = '" + parseInt(this._alto_ - ((i / this._fotogramas_) * this._alto_)) + "px'";
            setTimeout(accion1, i * this._escala_);
            accion2 = "tag('" + x + "').style.left = '" + -parseInt(this._ancho_ - ((i / this._fotogramas_) * this._ancho_)) + "px'";
            setTimeout(accion2, i * this._escala_);
        }
        this._visible_ = x;
    }
}

objetoTransiciones.prototype.cse = function(x)    {// apertura desde el sur/este
    this._limpiar_();
    if (x == this._visible_)    {
        return;
    }
    else    {
        this.asignaciones(x);
        tag(x).style.top = this._alto_ + "px";
        tag(x).style.left = this._ancho_ + "px";
        for (i = 1; i <= this._fotogramas_; i++)    {
            accion1 = "tag('" + x + "').style.top = '" + parseInt(this._alto_ - ((i / this._fotogramas_) * this._alto_)) + "px'";
            setTimeout(accion1, i * this._escala_);
            accion2 = "tag('" + x + "').style.left = '" + parseInt(this._ancho_ - ((i / this._fotogramas_) * this._ancho_)) + "px'";
            setTimeout(accion2, i * this._escala_);
        }
        this._visible_ = x;
    }
}

objetoTransiciones.prototype.estudio_zig_zag = function(x)    {// zig-zag desde el sur/este
    this._limpiar_();
    if (x == this._visible_)    {
        return;
    }
    else    {
        this.asignaciones(x);
        tag(x).style.left = this._ancho_ + "px";
        tag(x).style.top = this._alto_ + "px";
        _t_ = [];
        for (i = 1; i <= this._fotogramas_ + .5; i += .5)    _t_.push(i * this._escala_);
        for (i = 1; i <= this._fotogramas_; i++)    {
            accion1 = "tag('" + x + "').style.left = '" + parseInt(this._ancho_ - ((i / this._fotogramas_) * this._ancho_)) + "px'";
            accion2 = "tag('" + x + "').style.top = '" + parseInt(this._alto_ - ((i / this._fotogramas_) * this._alto_)) + "px'";
            setTimeout(accion1, _t_.shift());
            setTimeout(accion2, _t_.shift());
        }
        this._visible_ = x;
    }
}

function abrir_zig_zag(x)    {
    for (i = 0, botones = tag("botonera_transiciones").getElementsByTagName("button"), total = botones.length; i < total; i++)
        botones[i].disabled = true;

    _efectos_.asignar_tiempo(5000);
    _efectos_.estudio_zig_zag(_capas_[++_efecto_actual_ % _capas_.length]);
    setTimeout("cerrar_zig_zag()", 5000);
}

function cerrar_zig_zag(){
    _efectos_.asignar_tiempo(1000);
    for (i = 0, botones = tag("botonera_transiciones").getElementsByTagName("button"), total = botones.length; i < total; i++)
        botones[i].disabled = false;

}


var _efectos_;
var _efecto_actual_ = 3;
var _capas_ = ["capa_1", "capa_2", "capa_3", "capa_4"];
resguardamos_transiciones_apertura_y_cierre = window.onload;
window.onload = function()    {
    _efectos_ = new objetoTransiciones(1000, 25, 480, 360, _capas_, "capa_4", "capas");
    poner_evento(tag("boton_f"), "click", function(x){_efectos_.fundido(_capas_[++_efecto_actual_ % _capas_.length])});

    poner_evento(tag("boton_dn"), "click", function(x){_efectos_.dn(_capas_[++_efecto_actual_ % _capas_.length])});
    poner_evento(tag("boton_ds"), "click", function(x){_efectos_.ds(_capas_[++_efecto_actual_ % _capas_.length])});
    poner_evento(tag("boton_de"), "click", function(x){_efectos_.de(_capas_[++_efecto_actual_ % _capas_.length])});
    poner_evento(tag("boton_do"), "click", function(x){_efectos_.do(_capas_[++_efecto_actual_ % _capas_.length])});

    poner_evento(tag("boton_an"), "click", function(x){_efectos_.an(_capas_[++_efecto_actual_ % _capas_.length])});
    poner_evento(tag("boton_as"), "click", function(x){_efectos_.as(_capas_[++_efecto_actual_ % _capas_.length])});
    poner_evento(tag("boton_ae"), "click", function(x){_efectos_.ae(_capas_[++_efecto_actual_ % _capas_.length])});
    poner_evento(tag("boton_ao"), "click", function(x){_efectos_.ao(_capas_[++_efecto_actual_ % _capas_.length])});

    poner_evento(tag("boton_ano"), "click", function(x){_efectos_.ano(_capas_[++_efecto_actual_ % _capas_.length])});
    poner_evento(tag("boton_ane"), "click", function(x){_efectos_.ane(_capas_[++_efecto_actual_ % _capas_.length])});
    poner_evento(tag("boton_ase"), "click", function(x){_efectos_.ase(_capas_[++_efecto_actual_ % _capas_.length])});
    poner_evento(tag("boton_aso"), "click", function(x){_efectos_.aso(_capas_[++_efecto_actual_ % _capas_.length])});

    poner_evento(tag("boton_cn"), "click", function(x){_efectos_.cn(_capas_[++_efecto_actual_ % _capas_.length])});
    poner_evento(tag("boton_cs"), "click", function(x){_efectos_.cs(_capas_[++_efecto_actual_ % _capas_.length])});
    poner_evento(tag("boton_ce"), "click", function(x){_efectos_.ce(_capas_[++_efecto_actual_ % _capas_.length])});
    poner_evento(tag("boton_co"), "click", function(x){_efectos_.co(_capas_[++_efecto_actual_ % _capas_.length])});

    poner_evento(tag("boton_cno"), "click", function(x){_efectos_.cno(_capas_[++_efecto_actual_ % _capas_.length])});
    poner_evento(tag("boton_cne"), "click", function(x){_efectos_.cne(_capas_[++_efecto_actual_ % _capas_.length])});
    poner_evento(tag("boton_cse"), "click", function(x){_efectos_.cse(_capas_[++_efecto_actual_ % _capas_.length])});
    poner_evento(tag("boton_cso"), "click", function(x){_efectos_.cso(_capas_[++_efecto_actual_ % _capas_.length])});


    //poner_evento(tag("boton_zz"), "click", function(x){_efectos_.estudio_zig_zag(_capas_[++_efecto_actual_ % _capas_.length])});
    poner_evento(tag("boton_zz"), "click", function(x){abrir_zig_zag(_capas_[++_efecto_actual_ % _capas_.length])});



    if (resguardamos_transiciones_apertura_y_cierre != undefined)
        resguardamos_transiciones_apertura_y_cierre();
}
//]]>

Este código ha sido leído en 98 ocasiones.

Zona de comentarios

Esta extra aún no tiene comentarios.

Evaluación

Valoración de esta página: (extra.script.aperturas_y_cierres) valor

Valoración evaluar evaluar evaluar evaluar evaluar evaluar evaluar evaluar evaluar evaluar

Respuesta: Zona de mensajes (proceso de evaluación)

Listados: imágenes, categorías, etiquetas, extras | Anuarios: 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024 | Otros enlaces: buscador