Team:Alberta/Templates/Header

From 2012.igem.org

(Difference between revisions)
Line 285: Line 285:
         $(menu).css("display","block");
         $(menu).css("display","block");
     $(menu). offset({top: 100 + 30 * $('.headerMenu').index($(parent) )} );
     $(menu). offset({top: 100 + 30 * $('.headerMenu').index($(parent) )} );
-
   
 
-
}
 
-
$(.mainBody).mouseover( function() {
+
$(menu).mouseleave( function() {
$(".subMenu").css("display","none");
$(".subMenu").css("display","none");
});
});
 +
   
 +
}
</script>
</script>

Revision as of 15:13, 26 September 2012