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

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

Latest revision as of 03:45, 19 September 2015