Template:Team:HokkaidoU Japan/LargeDropDown/JS

From 2014.igem.org

(Difference between revisions)
 
(60 intermediate revisions not shown)
Line 2: Line 2:
<script type="text/javascript">
<script type="text/javascript">
-
var _gaq = _gaq || [];
+
$(function() {
-
   _gaq.push(['_setAccount', 'UA-7243260-2']);
+
    var $menu = $('#ldd_menu');
-
  _gaq.push(['_trackPageview']);
+
                    var $child   = $menu.children(".menu_button");
 +
                    $child.hover(function() {
 +
                    var $number = $child.index(this);
 +
 +
            $child.eq($number).find('.ldd_submenu').stop().slideDown(300);
 +
} ,function(){
 +
                                          $child.find('.ldd_submenu').stop(true).slideUp(300);
 +
});
 +
});
-
 
-
 
-
 
-
  (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() {
 
-
var $menu = $('#ldd_menu');
 
-
                                var $child = $menu.children("li");
 
-
                                var $number = $menu.children("li").index(this);
 
-
$child.eq(number).hover(function(){
 
-
$child.find('.ldd_submenu').slideDown(300);
 
-
} ,function(){
 
-
$child.find('.ldd_submenu').stop(true,true).hide();
 
-
});
 
-
});
 
</script>
</script>
</html>
</html>

Latest revision as of 13:12, 17 October 2014