Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 05:46:25 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155476 Posts in 21708 Topics by 7734 Members
Latest Member: rofroodoOvego
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Implementing a jquery dropdown menu  (Read 5348 times)
SlaY3R

Offline Offline

Posts: 18


« on: February 02, 2009, 10:29:04 PM »

Hi guys,

First i wanna say i love this CMS system!

But i got a problem. I'm creating with a mate a template for Website baker and we are trying to implement a jquery menu that we found over here: http://javascript-array.com/scripts/jquery_simple_drop_down_menu/

Is it possible to manipulate the show_menu(1); output (with parameters) that it will be conform like the drop down menu require on the site shown above?

example:
this code wil work for the jquery menu
Code:
<ul id="jsddm">
    <li><a href="#">JavaScript</a>
        <ul>
            <li><a href="#">Drop Down Menu</a></li>
            <li><a href="#">jQuery Plugin</a></li>
            <li><a href="#">Ajax Navigation</a></li>
        </ul>
    </li>
    <li><a href="#">Effect</a>
        <ul>
            <li><a href="#">Slide Effect</a></li>
            <li><a href="#">Fade Effect</a></li>
            <li><a href="#">Opacity Mode</a></li>
            <li><a href="#">Drop Shadow</a></li>
            <li><a href="#">Semitransparent</a></li>
        </ul>
    </li>
    <li><a href="#">Navigation</a></li>
    <li><a href="#">HTML/CSS</a></li>
    <li><a href="#">Help</a></li>
</ul>

but the output of a default show_menu() is like this:
and the dropdown part (Missie) wont show:(
Code:
<ul id="jsddm">            
<ul>
    <li><span class="menu_current"><a href="#" target="_top"  class="menu_current"> Harmony </a></span>
    <ul>
        <li><span class="menu_default"><a href="#" target="_top"  class="menu_default"> Missie </a></span>
        </li>
    </ul>
    </li>
    <li><span class="menu_default"><a href="#" target="_top"  class="menu_default"> Service </a></span>
    </li>
    <li><span class="menu_default"><a href="#" target="_top"  class="menu_default"> Winkel </a></span>
    </li>
    <li><span class="menu_default"><a href="#" target="_top"  class="menu_default"> Bedrijven </a></span>
    </li>
    <li><span class="menu_default"><a href="#" target="_top"  class="menu_default"> Zorg </a></span>
    </li>
    </ul>            
</ul>


Does anyone got a solution how i can fix this?

Greets,

SlaY3R
Logged
Bramus
Forum Team
*****
Offline Offline

Posts: 601


WWW
« Reply #1 on: February 02, 2009, 11:33:59 PM »

Why are you using jQuery to make a drop down menu? Because there also other ways (with for example just css) to make a nice dropdown menu.

If you think you can do with just css check out: http://www.seoconsultants.com/css/menus/tutorial/  I used that for one of my sites for a vertical dropdown menu and it works like a charm in the most common browsers i have tested.
Logged

BRAMUS Internet Services
pcwacht
AddOn Development
*
Offline Offline

Posts: 2856



WWW
« Reply #2 on: February 02, 2009, 11:38:17 PM »

don't use show_menu()  for these ass, use show_menu2()

hunt forum or addons page


Have fun,
John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
Backwash

Offline Offline

Posts: 5


« Reply #3 on: July 23, 2009, 06:21:27 PM »

Would anyone be able to give me an example of how I would use a css horizontal drop down menu in conjunction with show_menu2 to use with WB?

I've spent a lot of time looking through forums and the show_menu2 examples, but can't find example code to grasp how it would work.  It doesn't necessarily have to be a css menu.  My main goal is to have a horizontal drop down menu integrate with WB so if you guys know of an easier way, I'm open to all suggestions.  grin

Thanks in advance!
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6975


WWW
« Reply #4 on: July 23, 2009, 06:23:53 PM »

The the Documentation site, there they have demo of UDM4: http://code.jellycan.com/sm2test/

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

Backwash

Offline Offline

Posts: 5


« Reply #5 on: July 23, 2009, 06:36:37 PM »

Thanks for the quick response!

Edit:  I moved additional questions to the modules section, since this is technically a show_menu2 question.

http://www.websitebaker2.org/forum/index.php/topic,14631.0.html
« Last Edit: July 23, 2009, 08:37:50 PM by Backwash » Logged
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!