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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:02:10+00:00 2026-05-24T14:02:10+00:00

I am trying to make a menu that works like the one on this

  • 0

I am trying to make a menu that works like the one on this website: http://www.latimes.com/. But it is doesn’t works so good as on Los Angeles Times.

How can I fix it? Is there another way?

Here is the code shows/hides submenu by click on item.

<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
        var $j = jQuery.noConflict();
        $j(document).ready(function() {
        });
        function Reveal(a){
            var ul = a.parentNode.getElementsByTagName("UL").item(0);
            $j(ul).show({height: 'toggle' ,opacity: 'toggle'}, 1);
        }
</script>

I call the Reveal function on mouse over:

<li><a href="#" onmousover="Reveal(this);">testimonials</a>
  • 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-24T14:02:11+00:00Added an answer on May 24, 2026 at 2:02 pm

    Doesn’t work so good or doesn’t work at all? I am afraid you are mis-using the show function. And that toggle parameter is also unclear for me.

    I didn’t see any animations in the LA Times menu, but that syntax (defining the toggle variables and using them without quotes) would be more suitable for the jQuery animate function than for show. It is .animate( properties, [duration,] [easing,] [complete] )

    See http://api.jquery.com/show/ and http://api.jquery.com/animate/

    Following somehow the way you try to accomplish it, I would do something like (not tested!)

    <script type="text/javascript">
        var $j = jQuery.noConflict();
        $j(document).ready(function() {
           $j('#mainNavi > li').hover(function() {
                  $j(this).children('ul').show();
            }, function() {
                  $j('#mainNavi > li > ul').hide();
            });
        });
    </script>
    

    As HTML, you would have something like:

    <ul id="mainNavi">  
        <li>  
             <a href="">link1</a>  
             <ul style="display: none">  
                  <li>submenu item1</li>  
                  <li>submenu item2</li>  
             </ul>  
        </li>  
        <li>  
             <a href="">link2</a>  
             <ul style="display: none">  
                  <li>submenu item1</li>  
                  <li>submenu item2</li>  
             </ul>  
        </li>  
    </ul>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to make a menu that works like the one on this
Hi I'm trying to make a menu like one I have seen but cant
I am trying to make a jquery menu that when I click on one
I am trying to make a dropdown menu that when you click dropdown a
I'm trying to make dynamic menu using xml data, I'm creating that menu using
I'm trying to make a simple app that sits on the Mac OSX menu
I am trying to make a dropdown menu with pure html and css, but
i'm trying to make a menu, i want my menu looks like centered to
I'm trying to make a menu that has different states depending of the width
I have this context menu resource: <ResourceDictionary xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml> <ContextMenu x:Key=FooContextMenu> <ContextMenu.CommandBindings> <CommandBinding Command=Help

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.