WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • SM2: Submenu only visible after clicking topmenu: HOW??
  • Print
Pages: [1]   Go Down

Author Topic: SM2: Submenu only visible after clicking topmenu: HOW??  (Read 4261 times)

Offline Boudi

  • Posts: 1190
  • Gender: Male
  • //o_-\\
    • Yze Webdesign
SM2: Submenu only visible after clicking topmenu: HOW??
« 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: [Select]


<?php show_menu2(1, SM2_ROOT, SM2_ALL, SM2_ALL, false, "\n</li>", false, false, false, &#39;<ul id="header_menu" class="menu">&#39;); ?>



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. :)

Boudi

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

Offline crnogorac081

  • Posts: 2162
  • Gender: Male
Re: SM2: Submenu only visible after clicking topmenu: HOW??
« 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
Web developer

Offline Boudi

  • Posts: 1190
  • Gender: Male
  • //o_-\\
    • Yze Webdesign
Re: SM2: Submenu only visible after clicking topmenu: HOW??
« 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 ::...

Offline crnogorac081

  • Posts: 2162
  • Gender: Male
Re: SM2: Submenu only visible after clicking topmenu: HOW??
« 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
Web developer

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • SM2: Submenu only visible after clicking topmenu: HOW??
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2