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

  • SEARCH
  • Home
  • 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 7415535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:19:17+00:00 2026-05-29T07:19:17+00:00

If someone could help me point in the right direction that would be awesome

  • 0

If someone could help me point in the right direction that would be awesome as I have been looking for a solution to this issues for hours.

http://jamessuske.com/will/

I have a menu with 3 menu items on it. if you hover over the last two menu items, a div with items from a different list appear. That part works fine, but if I go to roll over the other menu items from another list, they disappear again.

This is my JavaScript:

<script type="text/javascript">

function showGalleryNav(){

document.getElementById('headerNavGallery').style.display = "";

}

function showInfoNav(){

document.getElementById('headerNavInfo').style.display = "";

}


function hideGalleryNav(){

document.getElementById('headerNavGallery').style.display = "none";

}

function hideInfoNav(){

document.getElementById('headerNavInfo').style.display = "none";

}

</script>

And The HTML

<div class="headerNav">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#" onmouseover="javascript:showGalleryNav()" onmouseout="javascript:hideGalleryNav()">Gallery</a></li>
<li><a href="#" onmouseover="javascript:showInfoNav()" onmouseout="javascript:hideInfoNav()">Info</a></li>
</ul>
</div><!--headerNav-->

<div class="headerNavGallery" id="headerNavGallery" style="display:none;">
<ul>
<li><a href="#">Categoies</a></li>
<li><a href="#">Products</a></li>
</ul>
</div><!--headerNavGallery-->

<div class="headerNavInfo" id="headerNavInfo" style="display:none;">
<ul>
<li><a href="#">William Ruppel</a></li>
<li><a href="#">CV</a></li>
<li><a href="#">Artist Bio</a></li>
<li><a href="#">Video</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div><!--headerNavInfo-->

I’ve tried different Attributes, but none of them are working, I have also tried switching to jQuery with

$('#headerNavGallery").css("display", "");

also didn’t work,

Any ideas would be greatly apperiated.

  • 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-29T07:19:17+00:00Added an answer on May 29, 2026 at 7:19 am

    Check that typeo, nvm…
    Setting the display property should always have a value “none” or “block”, empty(“”) is a bad reset… try this:

    <script>
        $(".galleryNavToggle").on("mouseenter mouseleave", function(event){
        var headNavGal = $("#headerNavGallery");
        if(event.type === "mouseenter"){
          headNavGal.show();
        }else if(event.type ==="mouseleave" &&
                 ((event.relatedTarget !== headNavGal[0] && $.inArray(event.relatedTarget, headNavGal.find("*")) <=0) ||
                 $.inArray(event.relatedTarget, $(".galleryNavInfoToggle")) > 0)){
            headNavGal.hide();
        }
    });
    $("#headerNavGallery").on("mouseleave", function(event){
        var headNavGal = $(this);
        if(event.type ==="mouseleave"){
            headNavGal.hide();
        }
    });
    
    </script>
    

    HTML

    <div class="headerNav">
    <ul>
    <li><a href="#">Home</a></li>
    <li><a href="" class='galleryNavToggle'>Gallery</a></li>
    <li><a href="" class='galleryNavInfoToggle'>Info</a></li>
    </ul>
    </div><!--headerNav-->
    
    <div class="headerNavGallery" id="headerNavGallery" style="display:none;">
    <ul>
    <li><a href="#">Categoies</a></li>
    <li><a href="#">Products</a></li>
    </ul>
    </div><!--headerNavGallery-->
    

    AND CSS

    .headerNav{
         border:thin solid black;
         float:left;
    }
    .headerNavGallery{
     float:left;
     border:thin solid black;
      margin-left:-1px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Could someone help me on this, I have created simple web services using axis2
Would someone be able to point in the right direction for a similar jquery
Could someone please point me in the right direction on how to allow the
I hope someone could help me on this. I want to add a month
I'm kinda stuck with this one so I hoped someone could help me. I
I have 2 blocks of code, if someone could help me put them together
could someone help me on this problem, i want to access facebook API through
could someone help me with the regex pattern that i could use to match
I'm having an issue and I'm hoping someone could point me in the right
I wonder if someone could help me figure out how to parse a string

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.