Template:Team:Amsterdam/ernst/scripts

From 2012.igem.org

(Difference between revisions)
Line 1: Line 1:
<html>
<html>
-
<script type='text/javascript' src ='http://cherne.net/brian/resources/jquery.hoverIntent.minified.js'></script>
 
-
 
<!-- Methode of injecting stuff into the header before page load! :D thank god that mediawiki includes jquery standard ;) -->
<!-- Methode of injecting stuff into the header before page load! :D thank god that mediawiki includes jquery standard ;) -->
<script type='text/javascript'>
<script type='text/javascript'>
Line 30: Line 28:
<!-- JQuery menu animations -->
<!-- JQuery menu animations -->
 +
<script type='text/javascript' src ='http://cherne.net/brian/resources/jquery.hoverIntent.minified.js'></script>
<script type='text/javascript'>
<script type='text/javascript'>
-
 
+
function navmenu(){
-
function submenu(){
+
-
$(" #submenu ul ul ").css({display: "none"}); // Opera Fix
+
-
$(" #submenu ul li").hover(function(){
+
-
$(this).find('ul:first').show(400);
+
-
},function(){
+
-
$(this).find('ul:first').hide(400);
+
-
});
+
-
}
+
-
 
+
-
 
+
-
function submenu2(){
+
-
 
+
-
$(" #submenu ul ul ").css({display: "none", height:'auto'}); // Opera Fix
+
-
 
+
-
$(" #submenu ul li").hoverIntent(function(){
+
-
$(this).find('ul:first').animate({display:'block', height:'show'},{queue:true, duration:400});
+
-
},function(){
+
-
$(this).find('ul:first').animate({height:'hide', display:'none'},{queue:true, duration:400});
+
-
});
+
-
}
+
-
 
+
-
function submenu3(){
+
$(" #submenu ul ul ").css({display: "none", height:'auto'}); // Opera Fix
$(" #submenu ul ul ").css({display: "none", height:'auto'}); // Opera Fix
Line 70: Line 47:
   
   
$(document).ready(function(){
$(document).ready(function(){
-
//submenu();
+
navmenu();
-
//submenu2();
+
-
submenu3();
+
});
});
-
 
-
 
</script>
</script>

Revision as of 11:13, 11 September 2012