Template:Team:Amsterdam/ernst/scripts
From 2012.igem.org
(Difference between revisions)
(21 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
<html> | <html> | ||
- | |||
<!-- 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 26: | Line 25: | ||
}); | }); | ||
</script> | </script> | ||
- | |||
<!-- 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(){ | ||
+ | $(" #navmenu ul ul ").css({display: "none", height:'auto'}); // Opera Fix | ||
- | + | var config = { | |
- | + | over: function(){ | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
$(this).find('ul:first').animate({display:'block', height:'show'},{queue:true, duration:400}); | $(this).find('ul:first').animate({display:'block', height:'show'},{queue:true, duration:400}); | ||
- | + | }, | |
+ | timeout: 2500, // number = milliseconds delay before onMouseOut | ||
+ | out: 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}); | ||
- | + | } | |
+ | }; | ||
+ | |||
+ | $(" #navmenu ul li").hoverIntent(config); | ||
} | } | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
$(document).ready(function(){ | $(document).ready(function(){ | ||
- | + | navmenu(); | |
- | + | ||
- | + | ||
}); | }); | ||
- | |||
- | |||
</script> | </script> | ||
- | <!-- Facebook | + | <!-- Facebook RSS Feed Processor --> |
- | <script type='text/javascript' | + | <script type='text/javascript' src='http://www.zazar.net/developers/jquery/zrssfeed/jquery.zrssfeed.min.js'></script> |
- | + | <script type='text/javascript' src='scripts/fb-feed-collector.js?action=raw'></script> | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | </script> | + | |
</html> | </html> |
Latest revision as of 13:05, 12 September 2012