Problem jQuery menu

Problem jQuery menu

Hello
I want to make the same menu style than http://www.toyota.fr (the one with cars).


Here's my attempt:
  1.  $ (Function () (
     
            

    runEffect function () (
                    
    $ ("# MaDIV"). Show ('slide', 500, callback);
            
    )
             
             
                    


    function callback () (
                    
    if ($("# MaDIV "). MouseEnter ()){$("# MaDIV"). bind ("MouseLeave", function () (
                                   
    $ ("# MaDIV: visible"). RemoveAttr ('style'). Hide (). Fadeout ();}, 5000);)
                         
    else (
                            
    {$("# Menu-item-54 "). Bind (" MouseLeave ", function () (
                                   
    $ ("# MaDIV: visible"). RemoveAttr ('style'). Hide (). Fadeout ();}, 5000);)
                         
    )
                             
            

    )
             
             
            


    $ ("# Menu-item-54"). MouseEnter (function () (
                
    runEffect ();
                
    return false;
            
    ));
             
            

    $ ("# MaDIV"). Hide ();
        
    ));




When I pass on my link, MaDIV appears good, then when I go to my view and it remains MaDIV when I leave it closes, until all was going well. The problem is that if I go to the link and I left without going through MaDIV, MaDIV not close ...


I felt I never fit in my loop else ... idea?


I made calls to the amateur of jQuery, I need help
Thank you in advance
    • Topic Participants

    • dev