Tags: javascript,css

Sort by: Date / Title /

  1. 1 month ago by jacinmontava
    1. if ($("div#capa_1").height() > $("div#capa_2").height()) {
    2.             $("div#capa_2").height($("div#capa_1").height())
    3. }else{
    4.             $("div#capa_1").height($("div#capa_2").height())
    5.  }
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/2093"></script>
  2. 2 years ago by yasakani
    Sencilla, pero util funcion para mostrar u ocultar una capa dentro de una pagina web con javascript. Hay que tener un poco de conocimientos de DOM y CSS.
    1. // MOSTRAR - OCULTAR
    2.        
    3. function mostrarOcultar(id) {
    4.         divID = document.getElementById(id);
    5.         if(divID.style.display == "")
    6.                 divID.style.display = "none";
    7.         else
    8.                 divID.style.display = "";
    9. }
    10.  
    11. // Enlace y Capa
    12.  
    13. <a href="#" onclick="mostrarOcultar('capa'); return false;">Mostrar-Ocultar</a>
    14. <div id="capa" style="display: none;">Contenido de la Capa.</div>
    Paste this in your website: <script type="text/javascript" src="http://www.posteet.com/embed/637"></script>

First / Previous / Next / Last / Page 1 of 1 (2 posteets)