Drop Down Menu / Posts /

Add two menus in the same page

0

Can I add two ddmenu in the same page? 

David  2 years ago   viewed: 3144    

3 Answers

0

Below are the steps to add multiple menus into the same page. 

HTML

<nav id="ddmenu">(...this is the first menu...)</nav> ...... <nav id="ddmenu2">(...this is the second menu...)</nav>

JavaScript ddmenu.js:

Open the ddmenu.js with Notepad, and make the following changes:

var ddmenuOptions={ menuId: "ddmenu", linkIdToMenuHtml: null, open: "onmouseover", // or "onclick" delay: 50, speed: 0.3, license: "mylicense" }; var ddmenu2Options={ menuId: "ddmenu2", linkIdToMenuHtml: null, open: "onmouseover", // or "onclick" delay: 50, speed: 0.3, license: "mylicense" }; var ddmenu = new Ddmenu(ddmenuOptions); var ddmenu2 = new Ddmenu(ddmenu2Options); /* Menucool Drop Down Menu v2015.8.19 Copyright www.menucool.com */ (...the script remains to be a single copy and untouched...)

CSS:

Open the ddmenu.css, copy all the content and paste it to the bottom of the file. Select and highlight all the newly pasted content, and use the search and replace tool to update all the #ddmenu to #ddmenu2.

Milo   2 years ago
0

Hi I may you please explain why linkIdToMenuHtml should be null? And what does it actually do?
Thank you!
var ddmenuOptions={ menuId: "ddmenu", linkIdToMenuHtml: null, open: "onmouseover", // or "onclick" delay: 50, speed: 0.3, license: "mylicense" };

Zhay
  one year ago
-1

It is explained here: One menu for all pages

Milo   one year ago

   

Your name*
Password
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question: