Team:Alberta/Templates/Header

From 2012.igem.org

(Difference between revisions)
Line 203: Line 203:
<script>
<script>
-
function showSubMenu(menu) {
+
function showSubMenu(menu, parent) {
     var show = false;
     var show = false;
Line 212: Line 212:
     $(".subMenu").css("display","none");
     $(".subMenu").css("display","none");
         $(menu).css("display","block");
         $(menu).css("display","block");
-
//alert("This index: " + $("li.headerMenu").index( this ) );
+
alert("This index: " + $("li.headerMenu").index( parent ) );
      
      
}
}
Line 223: Line 223:
<a href="http://www.ualberta.ca/"><img src="https://static.igem.org/mediawiki/2012/6/67/UofaLogo.png" /></a>
<a href="http://www.ualberta.ca/"><img src="https://static.igem.org/mediawiki/2012/6/67/UofaLogo.png" /></a>
<ul id="menu">
<ul id="menu">
-
<li class="headerMenu" onMouseOver="showSubMenu(null);"><a href="/Team:Alberta"><span>Home</span></a></li>
+
<li class="headerMenu" onMouseOver="showSubMenu(null, this);"><a href="/Team:Alberta"><span>Home</span></a></li>
-
<li class="headerMenu" onMouseOver="showSubMenu(null);"><a href="https://2012.igem.org/Team:Alberta/Team"><span>Team</span></a></li>
+
<li class="headerMenu" onMouseOver="showSubMenu(null, this);"><a href="https://2012.igem.org/Team:Alberta/Team"><span>Team</span></a></li>

Revision as of 19:37, 25 September 2012