Difference between revisions of "Template:Team:Aachen/Footer"

 
(9 intermediate revisions by the same user not shown)
Line 118: Line 118:
 
     });
 
     });
 
</script>
 
</script>
 +
  
 
<!--Mousover for Menu-->
 
<!--Mousover for Menu-->
 
<script>
 
<script>
jQuery(".dropdown-menu li.dropdown").on("mouseenter", function () {
+
var t;
+
$(".dropdown-menu li.dropdown").on("mouseenter", function () {
jQuery(this).find( ".dropdown-menu").show();
+
$('.ac-submenu').hide();
 
+
$(this).find( ".dropdown-menu").show();
}).on("mouseleave", function () {
+
});
setTimeout(function () {
+
 
jQuery(this).find( ".dropdown-menu").hide(1000);
+
$(".ac-submenu").on("mouseleave", function () {
 +
t = setTimeout(function () {
 +
$(".ac-submenu").hide();
 
         }, 1000);
 
         }, 1000);
 +
});
 +
 +
$(".ac-submenu").on("mouseenter", function () {
 +
      clearTimeout(t);
 
});
 
});
 
</script>
 
</script>

Latest revision as of 03:45, 19 September 2015