문제

I need a navigation that when I mouse out, waits for 1 sec, and then hide,

I got my code here

http://jsfiddle.net/xR83q/

but it does not work correctly

Can you please tell me what I'm doing wrong?

도움이 되었습니까?

해결책

Use mouseenter and mouseleave instead - change the last 2 lines to:

$j('#menu-navegacion-principal > li')
    .bind('mouseenter', navIn)
    .bind('mouseleave', navOut);

$j('#menu-navegacion-principal > li:has(ul)')
    .bind('mouseenter', navInS)
    .bind('mouseleave', navOutS)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top