Template:Kyoto/js
From 2012.igem.org
(Difference between revisions)
Line 10: | Line 10: | ||
} | } | ||
document.getElementById(tabname).style.display = "block"; | document.getElementById(tabname).style.display = "block"; | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
} | } | ||
$(function() { | $(function() { | ||
- | + | setScroll($("#kyoto-menu")); | |
- | + | setScroll($(".kyoto-post-it")); | |
$("#kyoto-tabs").children("li").click(function() { | $("#kyoto-tabs").children("li").click(function() { | ||
- | + | var tabs = $("#kyoto-tabs").children("li"); | |
- | + | for (var i = 0; i < tabs.length; i++) tabs[i].css("border","1px solid #000000"); | |
+ | $(this).css("z-index","101"); | ||
}); | }); | ||
}); | }); | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 04:43, 26 September 2012