Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Jan 2011
    Posts
    8
    Member #
    26480
    I have a jQuery fall down menu problems.
    My html looks like this and that should be a fall down menu as you can see.
    The problem is that i cant handle with jQuery in this case and my menu is unstable.
    I mean when mouse pointer is over the mune1.2 the menu slide up and disappear.
    If some one know how to fix this problem or may be have an idea please help


    My jQuery looks like this

    <script type="text/javascript">

    $(document).ready(function(){
    $("ul#list li a").mouseover(function(){
    $(this).parent().find("ul:first").slideDown("norma l");
    $(this).parent().find("ul:first").css("display","b lock");
    });

    $("ul#list li ul").mouseout(function(){
    $("ul#list li ul").slideUp("normal");
    $("ul#list li ul").css("display","none");
    });


    });

    </script>

    my styles
    #list{margin: 0 auto; height:30px; position:relative; float:left; line-height:12px;}
    #list > li{float:left; display:block; width:107px; position:relative; padding:0px 1px; height:30px;}

    #list li ul{display: none; z-index:100; position:absolute; width:123px; }
    #list li ul li{height:30px; width:107px; position:relative; padding:0px 1px; margin:0px auto; list-style-type:none; }
    #list li.topm{ height:13px; position:absolute; width:123px; padding:0px;}
    #list li.topm1{ height:10px; width:121px; padding:0px; margin-bottom:-10px;}

    My html

    <body>
    <ul id="listset">

    <li><a href="#">menu1</a>
    <ul>
    <li class="topm"></li>
    <li><a href="#"> menu1.1</a></li>
    <li><a href="#"> menu1.2</a></li>
    <li class="topm1"></li>
    </ul>
    </li>

    <li><a href="#">menu1</a></li>

    <li><a href="#">menu1</a>
    <ul>
    <li class="topm"></li>
    <li><a href="#">menu1.1</a></li>
    <li><a href="#">menu1.2</a></li>
    <li class="topm1"></li>
    </ul>
    </li>


    </ul>
    </body>

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    You don't need to change the block attribute when you use slideUp and slideDown. That's done for you.

    After that...well...I can't figure out what it is that you're trying to say. So I'm going to suggest putting your page up somewhere and showing us a link to it.

    I'm on vacation right now, so someone else will probably get to it before I do.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  4. #3
    Junior Member
    Join Date
    Jan 2011
    Posts
    8
    Member #
    26480
    10x for the replay anyway, sorry about my english and after all i solve this enigma drop down menu problem with only 2 line of code. The problem was into the correct selector, so i add emty class into the main <li> and that solve my problem


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search tags for this page

falldown menu
,

jquery fall down menu

,
jquery fell down menu
Click on a term to search for related topics.
All times are GMT -6. The time now is 10:38 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com