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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:37:24+00:00 2026-06-03T04:37:24+00:00

I have 2 Mootools challenges/issues with this site (Built with Joomla) and I would

  • 0

I have 2 Mootools challenges/issues with this site (Built with Joomla) and I would appreciate it if someone can help me out Link to the site.

As you can see, I have 4 accordion items that include some child menu items. The main issue is that the first one is opened by default regardless of which other items have been clicked and are active. For example, the aforementioned link is under the WEBBDesign accordion. What I need to accomplish is to basically check if the child link is active and open the respective parent panel.

The second issue is that I want to make the top menu item (Tjänster) active if any of the children in the accordion are active.

Thank you in advance.

  • 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-03T04:37:26+00:00Added an answer on June 3, 2026 at 4:37 am

    I notice your call to create the accordion menu has

    display: 0,

    This option opens the menu with the specified index.
    You need to have each page declare where it is in the accordion menu with a snippet of javascript:

    <script>
      mymenupos = n;
    </script>
    

    and then later pass that the Fx.accordion constructor:

        var myAccordion = new Fx.Accordion($('ja-accordion104'), $$('.ja-accordion-title104'), $$('.ja-accordion-content104'), {
            alwaysHide: true,
            display: mymenupos,
            // etc
    

    Consider using show instead of display, as according to the docs, show creates the menu with the item already showing, rather than animating to show it, which would be redundant in this case.

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

Sidebar

Related Questions

I am moving from jQuery to MooTools (for the fun..) and I have this
Have someone tried out DeCAL in Delphi 2009? I'm thinking about upgrading from 2007,
This is a funny one... I have created a mootools accordion with tabs, each
I have a site that has both Mootools and jQuery present. How will selectivizr
I have this class method in a mootools class: getData : function(){ var r
I have the following piece of Mootools 1.11 code (not upgradable as this is
I have some javascript that is built on top of mootools that is basically
Hi I have been using Rokstories, a mootools javascript slideshow in Joomla, I am
I have a problem with the Mootools get method and IE8. This is the
I have difficulties with using the this keyword in a MooTools (1.3) class. The

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.