Team:Tsinghua/header

From 2011.igem.org

(Difference between revisions)
 
(65 intermediate revisions not shown)
Line 5: Line 5:
<div id="background"></div>
<div id="background"></div>
<div id="topmost">
<div id="topmost">
-
<img src="https://static.igem.org/mediawiki/2011/b/bc/THUHeader.png" class="headerpic"/>
+
<a href="/" title="iGEM 2011 Main Page"><img alt="Main Page" src="https://static.igem.org/mediawiki/2011/b/bc/THUHeader.png" class="headerpic"/></a>
</div>
</div>
<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</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 href="/Team:Tsinghua/project">Project</a></li>
-
     <li id="nav-experiment"><a id="navb" href="/Team:Tsinghua/experiments">Experiment</a></li>
+
     <li id="nav-model"><a href="/Team:Tsinghua/modeling">Model</a></li>
-
     <li id="nav-parts"><a id="navb" href="/Team:Tsinghua/parts">Parts</a></li>
+
    <li id="nav-notebook"><a href="/Team:Tsinghua/experiments">Notebook</a></li>
-
     <li id="nav-support"><a id="navb" href="/Team:Tsinghua/support">Support</a></li>
+
     <li id="nav-parts"><a href="/Team:Tsinghua/parts">Parts</a></li>
-
     <li id="nav-human"><a id="navb" href="/Team:Tsinghua/HumanPractice">Human Practice</a></li>
+
     <li id="nav-safety"><a href="/Team:Tsinghua/safety">Safety</a></li>
 +
     <li id="nav-human"><a href="/Team:Tsinghua/HumanPractice">Human<br />Practice</a></li>
     </ul>
     </ul>
</div>
</div>
Line 34: Line 35:
</div>
</div>
<script>
<script>
-
$('#navb').hover(function(){
+
$(document).ready(function(){
-
$(this).animate({"font-size": "+=5pt", "color": "#FFFFFF"}, 200, function(){
+
    $("#catlinks").remove();
-
    $this.animate("font-size": "-=5pt", "color": "#FAB51C")});
+
    $("span[id=a-tip]").hover(function(){
 +
        var tip="";
 +
        try{
 +
            tip="<div class='tipdiv'>" + $(this).find('.div-tip').text() + "</div>";
 +
 
 +
            $(this).append(tip);
 +
            $(this).find('.tipdiv').fadeIn('slow');
 +
        }catch(e){}
 +
    }, function(){
 +
        try{
 +
            $(this).find('.tipdiv').fadeOut('fast');
 +
            $(this).find('.tipdiv').remove();
 +
        }catch(e){}
 +
    });
});
});
 +
$('li[id*="nav-"]').hover(function(){
 +
    var dpad = 0;
 +
    dpad = Math.round($(this).attr("offsetWidth")/19);
 +
    if(isNaN(dpad))
 +
        dpad = Math.round($(this)[0].offsetWidth / 19);
 +
    dpad = 25 - dpad;
 +
    dpad += "px";
 +
    $(this).animate({"fontSize": "22px", "paddingTop": "4px", "paddingLeft": dpad, "paddingRight": dpad}, 400, function(){
 +
        $(this).animate({"fontSize": "18px", "paddingTop": "5px", "paddingLeft": "25px", "paddingRight": "24px"}, 200)});
 +
    }, function(){});
 +
 +
</script>
 +
<img id="wprint" src="https://static.igem.org/mediawiki/2011/e/eb/Sh3.png" />
</html>
</html>

Latest revision as of 14:27, 26 October 2011

Main Page