Team:Edinburgh/header
From 2012.igem.org
(Difference between revisions)
Line 10: | Line 10: | ||
<script language="JavaScript"> | <script language="JavaScript"> | ||
<!-- | <!-- | ||
+ | var current_page = "none"; | ||
var content_width=document.getElementById("content").offsetWidth; | var content_width=document.getElementById("content").offsetWidth; | ||
if(content_width<1085){ | if(content_width<1085){ | ||
Line 15: | Line 16: | ||
} | } | ||
//--> | //--> | ||
+ | |||
+ | function blind_down(tab){ | ||
+ | if(current_page != tab){ | ||
+ | Effect.BlindDown(tab + '-tab-description', {duration: 0.5}) | ||
+ | } | ||
+ | } | ||
+ | |||
+ | function blind_up(tab){ | ||
+ | if(current_page != tab){ | ||
+ | Effect.BlindDown(tab + '-tab-description', {duration: 0.5}) | ||
+ | } | ||
+ | } | ||
</script> | </script> | ||
<!--[if IE]> | <!--[if IE]> | ||
Line 94: | Line 107: | ||
<ul> | <ul> | ||
<a href="https://2012.igem.org/Team:Edinburgh" | <a href="https://2012.igem.org/Team:Edinburgh" | ||
- | onmouseover=" | + | onmouseover="blind_down('home-page');" |
- | onmouseout=" | + | onmouseout="blind_up('home-page');"> |
<p>Home</p> | <p>Home</p> | ||
</a> | </a> | ||
- | <li id="home-page-tab-img"> | + | <li class="tab-img" id="home-page-tab-img"> |
<img src="https://static.igem.org/mediawiki/2012/7/73/Edi-home-tab-lemon-bac.png" /> | <img src="https://static.igem.org/mediawiki/2012/7/73/Edi-home-tab-lemon-bac.png" /> | ||
</li> | </li> | ||
- | <li id="home-page-tab-description" style=" | + | <li class="tab-description" id="home-page-tab-description" style="display:none;"> |
<p>Welcome!</p> | <p>Welcome!</p> | ||
</li> | </li> |
Revision as of 12:22, 7 September 2012