Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 01:24:09 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155538 Posts in 21712 Topics by 7737 Members
Latest Member: deanmacullam
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: SM2: Submenu only visible after clicking topmenu: HOW??  (Read 670 times)
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« on: November 25, 2010, 01:50:56 PM »

Ok..ok...I feel dumb. I checked the forum, I check the documentation but no way I came up with an answer so here's the deal:

I've got a horizontal SM2 menu:

Code:


<?php show_menu2(1SM2_ROOTSM2_ALLSM2_ALLfalse"\n</li>"falsefalsefalse'<ul id="header_menu" class="menu">'); ?>



When hovering this menu the submenu appears. My client wants the submenu only to appear after clicking the topmenu.

No doubt that there is a simple answer but I couldn't find it.

Solution would be belpfull. Smiley

Boudi

« Last Edit: December 06, 2010, 12:09:20 PM by Argos » Logged

...:: Bake the Unbakable ::...
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1706



« Reply #1 on: November 25, 2010, 02:56:32 PM »

Hi mate,

take a look at this tutorial:

http://www.noupe.com/tutorial/drop-down-menu-jquery-css.html

cheers

Edit:
there is even more simple solution for this if it is not dropdown menu, for top menu, you use       show_menu2(0,SM2_ROOT, SM2_CURR ......)    and then where you want seccond level to appear, show_menu2(0,SM2_ROOT+1, SM2_CURR  or sm_all for all levels ......)
« Last Edit: November 25, 2010, 03:00:47 PM by crnogorac081 » Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Boudi
Addon Team

Offline Offline

Posts: 816



WWW
« Reply #2 on: November 25, 2010, 03:21:47 PM »

yo!

Thnx for responding. The website is almost live so I simply don't have the time for testing new jquery things out.
The only thing for now is editing the SM2 so that the submenu's are only visible after clicking the topmenu.

Your solution though ends up in only showing the toplevel and/or 1 level deep but still the submenu appears on hover.

Boudi
Logged

...:: Bake the Unbakable ::...
crnogorac081
AddOn Development
*
Offline Offline

Posts: 1706



« Reply #3 on: November 25, 2010, 03:26:36 PM »

Hi mate, send me the link for site on pm, so maybe I can quick take a look for make a fast solution with JQ
Logged

Wow, I coded something myself: PM Messanger Modul ,Searchbox with suggestions
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!