Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7176755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:34:23+00:00 2026-05-28T16:34:23+00:00

i have created a jquery onhover vertical sliding menubar now i need to implement

  • 0

i have created a jquery onhover vertical sliding menubar now i need to implement horizontal sliding also i am facing some problem with the styling it is not coming horizontally

i have created a demo in jsfiddle link to demo

on hovering over ‘manage’ in the vertical slidedown menu there is lookup management menu under which there are 2 submenus(hi and hello) which i want to slide horizontally but unable to do so, it seems there is some problem with the javascript can someone help me out

the javascript is here

    var menuShowDelay = 500;
var menuHoverTimer = null;
$(function () {
    bindMenuSliding();
});

function bindMenuSliding() {
    // Expand menu on mouse over.
    $('.ulMiddleMenu li').hover(function () {
        // Clear previous mouse hover timer.
        if (menuHoverTimer) {
            clearTimeout(menuHoverTimer);
            menuHoverTimer = null;
        }



        var targetElement = $(this); // Get the target element.

        // Display the menu after a certain time interval.
        menuHoverTimer = setTimeout(function () {
            targetElement.parent('ul').find('ul').stop(true, true).css('display', 'none');
            targetElement.find('ul').slideDown('medium');
        }, menuShowDelay);
    },
    function () {
        // Clear previous mouse hover timer.
        if (menuHoverTimer) {
            clearTimeout(menuHoverTimer);
            menuHoverTimer = null;
        }

        // Hide the menu.
        $(this).find('ul').slideUp('fast');
    });
}

you can copy paste this in the javascript panel of jsfiddle

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T16:34:24+00:00Added an answer on May 28, 2026 at 4:34 pm

    Two main problems. One, you were showing all sub-menus on hover, instead of just the child. Two, you had no logic to distinguish between levels of navigation, so there was no way to expect the lower levels to behave differently at all.

    // Display the menu after a certain time interval.
    menuHoverTimer = setTimeout(function () {
        var $parent = targetElement.parent('ul');
        $parent.find('ul').stop(true, true).hide();
        //test for first level nav 
        if( $parent.hasClass("ulMiddleMenu") ){
            targetElement.children('ul').slideDown('medium');
        }else{
            targetElement.find('ul').width(0).show().animate({width:'100%'},1000);
        }
    
    }, menuShowDelay);
    

    jsFiddle. This still leaves some issues for you to sort out in terms of display. You should consider scrapping your CSS and starting from scratch because it is going to get harder and harder to dig your way out of that mess.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a simple JQuery script with hovering effect on some links. The
I have created some JQuery that on click of specified HTML it then becomes
I have created some jQuery and put it in an ascx include. It works
I have created a jQuery elastic plugin. I have the problem that if I
I have created app using jQuery Mobile and need to get a Dialog box
Here is my problem: The Problem I have created Tabs using jQuery which is
I have created a div using jquery and put some text in it: var
I have some tabs created with jQuery UI After I create a new tab
I have created a list in jquery mobile which directs to some page on
I have some tabs created with jquery and i want to add new tabs.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.