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 8234405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:27:52+00:00 2026-06-07T18:27:52+00:00

I have a problem to insert another new submenu to my navigation. Here is

  • 0

I have a problem to insert another new submenu to my navigation.

Here is my Javscript code:

// Main Nav Javascript Function *****************************************
var navTimer = "";
bop = new Object();
bop.targetDiv = "";
bop.hide = function(){
document.getElementById(bop.targetDiv).style.visibility = "hidden";
}

function openNav(myDiv){
if(bop.targetDiv != "") bop.hide();
    bop.targetDiv = myDiv;
    clearTimeout(navTimer);
    document.getElementById(myDiv).style.visibility = "visible";
    document.getElementById(myDiv).onmouseout = function(){
        navTimer = setTimeout("bop.hide()", 100);
    }
    document.getElementById(myDiv).onmouseover = function(){
        clearTimeout(navTimer);
    }
}

function hideNav(myDiv){
    bop.targetDiv = myDiv;
    navTimer = setTimeout("bop.hide()", 150);
}

<!-- Display Sub Nav / Clear Sub Nav -->
function SubNav(myVar){
document.getElementById(myVar).style.visibility = "visible";
}

function clearNav(myVar){
document.getElementById(myVar).style.visibility = "hidden";
}

function shortPopUp( url, name, width, height, scrollbars ) { 
    var top  = "0"; 
    var left = "0"; 

    if( scrollbars == null ) scrollbars = "0"; 

    str  = ""; 
    str += "resizable=1,titlebar=1,menubar=1,"; 
    str += "toolbar=0,location=0,directories=0,status=0,"; 
    str += "scrollbars=1" + scrollbars + ","; 
    str += "width=" + width + ","; 
    str += "height=" + height + ","; 
    str += "top=" + top + ","; 
    str += "left=" + left; 

    window.open( url, name, str ); 
}

And here is my HTML code:

><div class="navItem" onMouseOver="SubNav('seat-twenty');" onMouseOut="clearNav('seat-twenty');"><a href="fps_twenty2.html" target="frame">Twenty2</a><div id='seat-twenty' class="dropDown" onMouseOver="SubNav('seat-twenty');" onMouseOut="clearNav('seat-twenty');">
<div class="navItem"><a href="fps_twenty2.html" target="frame">Twenty2 Overview</a></div>
<div class="navItem"><a href="fb_twenty2_black.html" target="frame">Twenty2</a></div>
<div class="navItem"><a href="fb_twenty2_red.html" target="frame">Twenty2-US</a></div>
<div class="navItem"><a href="fb_twenty2_red_black.html" target="frame">Twenty2-UP</a></div>
</div></div>

The page on the server can be found here.

The problem is under the seating tab of the navigation, when I tried to insert the new tag “Twenty2”, instead of open an extra submenu, the submenu still stay in the same dropdown menu…. and I check the code over and over, there’s no different between my error code and the correct code.

Here’s the code that works fine:

> <div class="navItem" onMouseOver="SubNav('seat-heavy');"
> onMouseOut="clearNav('seat-heavy');"><a href="fps_heavy_duty.html"
> target="frame">Heavy Duty</a><div id='seat-heavy' class="dropDown"
> onMouseOver="SubNav('seat-heavy');"
> onMouseOut="clearNav('seat-heavy');">

Does anybody know what’s wrong?

  • 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-06-07T18:27:53+00:00Added an answer on June 7, 2026 at 6:27 pm

    Your working menu items have an associated stylesheet rule with them, e.g.

    #seat-healthcare {
        background-color: #E7E7E7;
        position: absolute;
        margin-top: -18px;
        margin-left: 130px;
        z-index: 199;
        width: 119px;
        padding-top: 3px;
        padding-bottom: 4px;
    }
    

    but you don’t have one for #seat-twenty, so when it pops up it instantly disappears because it thinks you scrolled out because it doesn’t have a margin-left set.

    All in all the menu works in a goofy way, I’d really recommend having something more generic so you don’t have to have a stylesheet entry for every item.

    Relevant JS that inserts your stylesheet stylesheet

    // Browser & Platform Detection & Style Sheet Documentation *******************
    if(navigator.userAgent.indexOf("Safari")!=-1){
        document.write("<link href='styles/MacSafari_style.css' rel='stylesheet' type='text/css'>");
    
    }
    if(navigator.userAgent.indexOf("Firefox")!=-1){
        if(navigator.appVersion.indexOf("Mac")!=-1){
        // Added Fix for High Rez Screens
        if((screen.width >= 1400) && (screen.height >= 1050)){
            document.write("<link href='styles/HighRez_MacMozilla_style.css' rel='stylesheet' type='text/css'>");
        } else {
            document.write("<link href='styles/MacMozilla_style.css' rel='stylesheet' type='text/css'>");
        }
    } else {
        document.write("<link href='styles/Mozilla_style.css' rel='stylesheet' type='text/css'>");
        }
    }
    if(navigator.appName == "Microsoft Internet Explorer"){
        if(navigator.appVersion.indexOf("Mac")!=-1){ 
            document.write("<link href='styles/MacIE_style.css' rel='stylesheet' type='text/css'>");
        } else {
        document.write("<link href='styles/IE_style.css' rel='stylesheet' type='text/css'>");
    }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem running an insert query via C# OleDbCommand to an Access
I have a little problem to insert from 2 different table's in C# to
I have a problem reading a txt file to insert in the mysql db
I have some problem whith such mysql_query INSERT INTO table VALUES ('', CURDATE()-1) why
I am creating an insert process in php but I have a problem in
I have a little problem where I would like to insert a svn diff
Gday All, I have a baffling problem whilst trying to insert some chinese characters
My problem is this, I have a UC called profile that contains another UC
Here is one very interesting problem. I am using SQL Server 2008. I have
I have a problem with C#, I have a Class with a function for

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.