Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multi-Level Navigation - showing Lvl2 only on Mouseclick
#1
Hello again everybody!

Right now I am working on a page for a customer (feel free to visit my WORK IN PROGRESS here: http://www.sitekick.info/JANDABUSSE/) - and am using Zegnåt's Scripts (http://get-simple.info/forum/viewtopic.php?id=235) with great success - thank you very much for this enhancement.

But - as you can see on the page - the Navigation stays always completely "unfolded" - Level 2 Navigation is visible on every page.

Is there a way to show the 2nd Level Navigation only once the parent element is clicked (and on all the Lvl2-Content-Pages of course)?

I tried StilgarBF's solutions (http://get-simple.info/forum/viewtopic.php?id=107) but was not able to get it to work.

Perhaps it is possible to "pimp Wink " Zegnåt's Scripts in order to achieve this display feature?

Any help would be very much appreciated!

Thank you from Germany!

BigWill
Reply
#2
It is very possible BigWill. You might have seen that on my own website it does exactly like you want it. It is only showing the subpage about the name of my website when you are on the homepage or on said subpage. On any other pages the submenu is hidden and not even there in the HTML.

This however will need a rewrite of my function.

The other way is to use CSS and hide all submenus:
Code:
.submenu { display: none; }
And then show the currently active submenu:
Code:
.parent .submenu, .active .submenu { display: block; }

Thanks too the many CSS classes almost everything is possible with just CSS.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#3
THANK. YOU. VERY. MUCH!!!!!!! Smile))))))))

Check it out:
http://www.sitekick.info/JANDABUSSE/

It works perfectly!!!!

BigWill
Reply
#4
Looks great.

Isn't CSS wonderful Wink
Clients always want to be able to change the content of their pages, but they are unwilling to do so.

Have you ever coded in your underwear before?
Reply
#5
BigWill Wrote:THANK. YOU. VERY. MUCH!!!!!!! Smile))))))))
No problem, glad I could help. Have fun with GetSimple!

internet54 Wrote:Isn't CSS wonderful Wink
It sure is, although you can save some bandwidth when the menu is big by changing the HTML at the server to not even send the sub menus. Well, I guess your menu will have to be realy big for anyone to notice this, but it is also nice for those that have CSS disabled.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply




Users browsing this thread: 1 Guest(s)