Team:DTU-Denmark/Templates/Standard page begin FRONTPAGE
From 2011.igem.org
(Difference between revisions)
Line 36: | Line 36: | ||
function(){ | function(){ | ||
$("ul.subnav").parent().find("> a").append("<span> ▼</span>"); | $("ul.subnav").parent().find("> a").append("<span> ▼</span>"); | ||
- | $("ul.topnav li"). | + | $("ul.topnav li").hover( |
function() { | function() { | ||
// Hover over | // Hover over | ||
$(this).find("ul.subnav").show(); | $(this).find("ul.subnav").show(); | ||
// Hover out | // Hover out | ||
- | $(this). | + | $(this).hover( |
+ | function() { | ||
+ | }, | ||
function(){ | function(){ | ||
- | $(this).find("ul.subnav" | + | $(this).find("ul.subnav").slideUp('slow'); |
} | } | ||
); | ); | ||
+ | }, | ||
+ | function(){ | ||
+ | $(this).find("ul.subnav").slideUp('slow'); | ||
} | } | ||
+ | |||
); | ); | ||
} | } |
Revision as of 11:55, 16 September 2011