Template:Team:Amsterdam/ernst/scripts

From 2012.igem.org

(Difference between revisions)
Line 30: Line 30:
<!-- JQuery menu animations -->
<!-- JQuery menu animations -->
<script type='text/javascript'>
<script type='text/javascript'>
-
function mainmenu(){
 
-
$(" #nav ul ").css({display: "none"}); // Opera Fix
 
-
$(" #nav li").hover(function(){
 
-
$(this).find('ul:first').css({visibility: "visible",display: "none"}).show(400);
 
-
},function(){
 
-
$(this).find('ul:first').css({visibility: "hidden"});
 
-
});
 
-
}
 
function submenu(){
function submenu(){
Line 57: Line 49:
},function(){
},function(){
$(this).find('ul:first').animate({height:'hide', display:'none'},{queue:true, duration:400});
$(this).find('ul:first').animate({height:'hide', display:'none'},{queue:true, duration:400});
-
});
 
-
}
 
-
 
-
function submenu3(){
 
-
$(" #submenu ul ul ").css({display: "none"}); // Opera Fix
 
-
$(" #submenu ul li").hover(function(){
 
-
$(this).find('ul:first').slideDown(400);
 
-
},function(){
 
-
$(this).find('ul:first').slideUp(400);
 
});
});
}
}
   
   
-
$(document).ready(function(){
+
$(document).ready(function(){
-
mainmenu();
+
//submenu();
//submenu();
submenu2();
submenu2();
-
//submenu3();
 
});
});

Revision as of 23:42, 10 September 2012