NameSilo

How to make Sub-Menu expanded by default

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
Watch

dima777

Established Member
Impact
0
Hello there!!!

I wonder if somebody can help me in this undertaking - I exported a menu into html format (have attached it to this post) - I wonder if it CAN be possible to make any if its submenus expanded BY DEFAULT, when you open it in a browser. As you will see it the menu is collapsed by default. I need this to quickly make local menus for different sections of my site - of which I have a few... I think it can be very useful technique so I am looking forward to your assistance....

Million thanks in advance....


Dima
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
Do you want all of them expanded or just "products" "shop online" etc

Add this to the end of your tree() function:

for (var i = 1; i < this.a_index.length; i++)
this.toggle(i);
 
0
•••
i want to have one of them to be expanded - each for specific section of the site....thank you...
 
0
•••
If I understand what you want I have an example for you to look at. I have a pure css menu that expands on a mouseover. It is done by changing visibility of an element (in this case a li). I have modified it by removing the mouseover and setting visibility based on page. Some of the sub-menu links are live and will spoil the flow of the example.

All css in internal/inline

http://www.rosevillepottery.info/menu-test1.htm
 
0
•••
CatchedCatched
Escrow.com
Spaceship
Domain Recover
CryptoExchange.com
Catchy
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back