Template:Kyoto/js

From 2012.igem.org

(Difference between revisions)
Line 10: Line 10:
     var children = document.getElementById("kyoto-tab-contents").childNodes;
     var children = document.getElementById("kyoto-tab-contents").childNodes;
     for (var i = 0; i < children.length; i++) {
     for (var i = 0; i < children.length; i++) {
-
         if (children[i].nodeType == 1) children[i].style.display = "none";
+
         if (children[i].nodeType == 1) {
 +
            children[i].style.display = "none";
 +
            children[i].style.zIndex = "99";
 +
        }
     }
     }
-
     document.getElementById(tabname).style.display = "block";
+
     var selfelement = document.getElementById(tabname);
 +
    selfelement.style.display = "block";
 +
    selfelement.style.zIndex = 101;
}
}
</script>
</script>
</html>
</html>

Revision as of 03:49, 26 September 2012