나는 Joomla 확장 기능을 사용하고 있습니다 (YT 메가 메뉴). 기존 코드를 약간 업데이트하고 싶습니다. 여기 Joomla yt megamenu 플러그인을위한 jQuery 슬라이드 지연
는mouseenter
및
mouseleave
코드입니다 :
mouseleave
에
li.addEvent('mouseenter', function (e) {
//if (objectReference.hasOpenning) return;
log('enter parent of ' + (ul ? ul.id : 'li has not child'));
li.addClass('hover');
if (ulexists) {
objectReference.showChild(ul);
}
});
li.addEvent('mouseleave', function (e) {
log('leave parent of ' + (ul ? ul.id : 'li has not child'));
li.removeClass('hover');
if (ulexists) {
if (ul.pinned) return false;
objectReference.hideChild(ul);
}
});
내가 ul
을 숨기고 전에 지연을 원한다. 이 작업을 수행 할 수있는 방법이 있습니까?
도와주세요. 나는 초보자이며 혼란 스럽다. mouseleave
에
감사합니다. – Hareesh