Team:Tsinghua/header
From 2011.igem.org
(Difference between revisions)
GuoQiangChen (Talk | contribs) |
|||
(54 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"> | ||
Line 12: | Line 12: | ||
<li id="nav-team"><a href="/Team:Tsinghua/team">Team</a></li> | <li id="nav-team"><a href="/Team:Tsinghua/team">Team</a></li> | ||
<li id="nav-project"><a href="/Team:Tsinghua/project">Project</a></li> | <li id="nav-project"><a href="/Team:Tsinghua/project">Project</a></li> | ||
- | <li id="nav-model"><a href="/Team:Tsinghua/ | + | <li id="nav-model"><a href="/Team:Tsinghua/modeling">Model</a></li> |
<li id="nav-notebook"><a href="/Team:Tsinghua/experiments">Notebook</a></li> | <li id="nav-notebook"><a href="/Team:Tsinghua/experiments">Notebook</a></li> | ||
<li id="nav-parts"><a href="/Team:Tsinghua/parts">Parts</a></li> | <li id="nav-parts"><a href="/Team:Tsinghua/parts">Parts</a></li> | ||
<li id="nav-safety"><a href="/Team:Tsinghua/safety">Safety</a></li> | <li id="nav-safety"><a href="/Team:Tsinghua/safety">Safety</a></li> | ||
- | <li id="nav-human"><a href="/Team:Tsinghua/HumanPractice">Human Practice</a></li> | + | <li id="nav-human"><a href="/Team:Tsinghua/HumanPractice">Human<br />Practice</a></li> |
</ul> | </ul> | ||
</div> | </div> | ||
Line 35: | Line 35: | ||
</div> | </div> | ||
<script> | <script> | ||
+ | $(document).ready(function(){ | ||
+ | $("#catlinks").remove(); | ||
+ | $("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(){ | $('li[id*="nav-"]').hover(function(){ | ||
- | $(this).animate({"fontSize": "22px", "paddingTop": "4px", "paddingLeft": | + | var dpad = 0; |
- | + | dpad = Math.round($(this).attr("offsetWidth")/19); | |
- | }, function(){}); | + | 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> | </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