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(self) {
 
-
var tabs = $("#kyoto-tabs").children("li");
 
-
for (var i = 0; i < tabs.length; i++) tabs[i].css("z-index","99");
 
-
self.css("z-index","101");
 
-
alert(self);
 
}
}
$(function() {
$(function() {
-
    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() {
-
alert();
+
var tabs = $("#kyoto-tabs").children("li");
-
changeTab($(this));
+
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