Team:Edinburgh/header

From 2012.igem.org

(Difference between revisions)
Line 10: Line 10:
if(content_width<1085){
if(content_width<1085){
document.getElementById("content").style.width="1085px";
document.getElementById("content").style.width="1085px";
 +
}
 +
function expand_tab(tab_name){
 +
document.getElementById(tab_name + "-tab-img").style.top="-121px";
 +
document.getElementById(tab_name + "-tab-description").style.top="81px";
 +
}
 +
function collapse_tab(tab_name){
 +
document.getElementById(tab_name + "-tab-img").style.top="-9000px";
 +
document.getElementById(tab_name + "-tab-description").style.top="-9000px";
}
}
//-->
//-->
Line 89: Line 97:
<li id="home-page">
<li id="home-page">
<ul>
<ul>
-
<a href="https://2012.igem.org/Team:Edinburgh">
+
<a href="https://2012.igem.org/Team:Edinburgh"
 +
onmouseover="expand_tab("home-page");"
 +
onmouseout="collapse_tab("home-page")">
<p>Home</p>
<p>Home</p>
</a>
</a>
-
<li class="tab-img">
+
<li 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 class="tab-description">
+
<li class="home-page-tab-description">
<p>Welcome!</p>
<p>Welcome!</p>
</li>
</li>

Revision as of 11:15, 5 September 2012