Template:Team:HokkaidoU Japan/LargeDropDown/JS

From 2014.igem.org

(Difference between revisions)
 
(59 intermediate revisions not shown)
Line 1: Line 1:
<html>
<html>
<script type="text/javascript">
<script type="text/javascript">
-
 
-
var _gaq = _gaq || [];
 
-
  _gaq.push(['_setAccount', 'UA-7243260-2']);
 
-
  _gaq.push(['_trackPageview']);
 
-
 
-
 
-
  (function() {
 
-
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
 
-
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 
-
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
 
-
  })();
 
$(function() {
$(function() {
    var $menu = $('#ldd_menu');
    var $menu = $('#ldd_menu');
-
                     var $child = $menu.children("li");
+
                     var $child   = $menu.children(".menu_button");
-
                     var $number = $child.index(this);
+
                     $child.hover(function() {
-
        $child.eq(number).hover(function(){
+
                    var $number = $child.index(this);
-
  $child.find('.ldd_submenu').slideDown(300);
+
 +
            $child.eq($number).find('.ldd_submenu').stop().slideDown(300);
} ,function(){  
} ,function(){  
-
                                           $child.find('.ldd_submenu').stop(true,true).hide();
+
                                           $child.find('.ldd_submenu').stop(true).slideUp(300);
 +
 
});
});
});
});
 +
</script>
</script>
</html>
</html>

Latest revision as of 13:12, 17 October 2014