The following warnings occurred: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
|
Multi-Level Navigation - showing Lvl2 only on Mouseclick - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Scripts & Components (http://get-simple.info/forums/forumdisplay.php?fid=11) +--- Thread: Multi-Level Navigation - showing Lvl2 only on Mouseclick (/showthread.php?tid=239) |
Multi-Level Navigation - showing Lvl2 only on Mouseclick - BigWill - 2009-12-07 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 " Zegnåt's Scripts in order to achieve this display feature? Any help would be very much appreciated! Thank you from Germany! BigWill Multi-Level Navigation - showing Lvl2 only on Mouseclick - Zegnåt - 2009-12-07 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; } Code: .parent .submenu, .active .submenu { display: block; } Thanks too the many CSS classes almost everything is possible with just CSS. Multi-Level Navigation - showing Lvl2 only on Mouseclick - BigWill - 2009-12-07 THANK. YOU. VERY. MUCH!!!!!!! )))))))) Check it out: http://www.sitekick.info/JANDABUSSE/ It works perfectly!!!! BigWill Multi-Level Navigation - showing Lvl2 only on Mouseclick - internet54 - 2009-12-08 Looks great. Isn't CSS wonderful Multi-Level Navigation - showing Lvl2 only on Mouseclick - Zegnåt - 2009-12-08 BigWill Wrote:THANK. YOU. VERY. MUCH!!!!!!! ))))))))No problem, glad I could help. Have fun with GetSimple! internet54 Wrote:Isn't CSS wonderfulIt 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. |