Team:Tsinghua/header

From 2011.igem.org

(Difference between revisions)
Line 9: Line 9:
<div id="topbar">
<div id="topbar">
     <ul id="topbarul">
     <ul id="topbarul">
-
     <li id="nav-home"><a id="navb" href="/Team:Tsinghua/home">Home</a></li>
+
     <li id="nav-home"><a href="/Team:Tsinghua/home">Home</a></li>
-
     <li id="nav-team"><a id="navb" href="/Team:Tsinghua/team">Team</a></li>
+
     <li id="nav-team"><a href="/Team:Tsinghua/team">Team</a></li>
     <li id="nav-project"><a id="navb" href="/Team:Tsinghua/project">Project</a></li>
     <li id="nav-project"><a id="navb" href="/Team:Tsinghua/project">Project</a></li>
     <li id="nav-experiment"><a id="navb" href="/Team:Tsinghua/experiments">Experiment</a></li>
     <li id="nav-experiment"><a id="navb" href="/Team:Tsinghua/experiments">Experiment</a></li>
Line 34: Line 34:
</div>
</div>
<script>
<script>
-
$('#navb').hover(function(){
+
$('#topbarul').get().hover(function(){
-
$(this).animate({"font-size": "+=5pt", "color": "#FFFFFF"}, 200, function(){
+
$(this).animate({"fontSize": "22px", "paddingTop": "0px", "paddingLeft": "30px", "paddingRight": "28px"}, 200, function(){
-
     $this.animate("font-size": "-=5pt", "color": "#FAB51C")});
+
     $(this).animate({"fontSize": "18px", "paddingTop": "5px", "paddingLeft": "34px", "paddingRight": "34px"}, 200)});
-
});
+
}, null);
</script>
</script>
</html>
</html>

Revision as of 16:10, 10 August 2011