Harleyy
08-20-2012, 08:15 AM
Hello Everyone.
I am working on a dropup menu that animates from bottom to top on mouse hover.
This is the script for it.
$(function() {
$('.menu > li ').hover(
function () {
var $this = $(this);
$('a',$this).stop(true,true).animate({
'bottom':'0px'
}, 600);
$('i',$this).stop(true,true).animate({
'top':'-10px'
}, 700);
},
function () {
var $this = $(this);
$('a',$this).stop(true,true).animate({
'bottom':'-300px'
}, -1);
$('i',$this).stop(true,true).animate({
'top':'50px'
}, 700);
}
);
});
This script drops up the menu.
I am trying to integrate the dyamic drive menu which is http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/demo2.htm inside the drop up menu.
What happens is that when i hover the mouse on the drop up menu, the menu drop ups with the ddlevelsmenu, but when I hover on say CSS library and when I take my mouse to the items inside css library, my drop up menu closes.
What I want is that when I hover to any level from the ddlevelsmenu, my drop up menu should not close untill i mouse out entirely from all the items inside it.
Awaiting Solutions.
Regards,
Harley
I am working on a dropup menu that animates from bottom to top on mouse hover.
This is the script for it.
$(function() {
$('.menu > li ').hover(
function () {
var $this = $(this);
$('a',$this).stop(true,true).animate({
'bottom':'0px'
}, 600);
$('i',$this).stop(true,true).animate({
'top':'-10px'
}, 700);
},
function () {
var $this = $(this);
$('a',$this).stop(true,true).animate({
'bottom':'-300px'
}, -1);
$('i',$this).stop(true,true).animate({
'top':'50px'
}, 700);
}
);
});
This script drops up the menu.
I am trying to integrate the dyamic drive menu which is http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/demo2.htm inside the drop up menu.
What happens is that when i hover the mouse on the drop up menu, the menu drop ups with the ddlevelsmenu, but when I hover on say CSS library and when I take my mouse to the items inside css library, my drop up menu closes.
What I want is that when I hover to any level from the ddlevelsmenu, my drop up menu should not close untill i mouse out entirely from all the items inside it.
Awaiting Solutions.
Regards,
Harley