Template:Team:Amsterdam/scripts

From 2012.igem.org

(Difference between revisions)
Line 48: Line 48:
$("#navmenu ul ul").css({display: "none", height:'auto'}); // Opera Fix
$("#navmenu ul ul").css({display: "none", height:'auto'}); // Opera Fix
-
//$("#navmenu ul li:has(ul) a").toggle(
+
$("#navmenu ul li:has(ul) a").toggle(
-
$("#navmenu ul li").has('ul').toggle(
+
function(){$(this).siblings('ul').animate({display:'block', height:'show'},{queue:true, duration:400});},
function(){$(this).siblings('ul').animate({display:'block', height:'show'},{queue:true, duration:400});},
function(){$(this).siblings('ul').animate({height:'hide', display:'none'},{queue:true, duration:400});}
function(){$(this).siblings('ul').animate({height:'hide', display:'none'},{queue:true, duration:400});}

Revision as of 18:05, 25 September 2012