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 changeTab(tab) { | ||
+ | var tabs = $("#kyoto-tabs").children("li"); | ||
+ | for (var i = 0; i < tabs.length; i++) tabs[i].css("border-bottom","1px solid #c8c2b6"); | ||
+ | tab.css("border-bottom","none"); | ||
} | } | ||
Line 15: | Line 21: | ||
setScroll($("#kyoto-menu")); | setScroll($("#kyoto-menu")); | ||
setScroll($(".kyoto-post-it")); | setScroll($(".kyoto-post-it")); | ||
- | $("#kyoto-tabs").children("li").click(function() { | + | $("#kyoto-tabs").children("li").click(function() { changeTab($(this)); } |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
}); | }); | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 04:56, 26 September 2012