PDA

View Full Version : Modding Jim's DHTML Menu



htdefiant
09-18-2007, 08:05 PM
1) Script Title: Jim's DHTML Menu V5.7

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/jimmenu/

3) Describe problem: I am using this script on www.oratid.org. It is fantastic, but the menu is getting a little large. Is there any way someone can do it so the menu looks the same, but when one hovers over "Education" a sub menu opens to the right? That way there could be fewer links on the main menu.
Thanks.

boogyman
09-18-2007, 08:11 PM
take a look at
http://www.dynamicdrive.com/dynamicindex1/jimmenu/example2.htm

your navigation doesn't use the ability of that script at all.

htdefiant
09-18-2007, 08:13 PM
Thanks. Someone else set it up originally, and I am totally new at this kind of coding. I'll let you know how it goes.

boogyman
09-18-2007, 08:23 PM
oops sorry... i posted the wrong link..

http://www.dynamicdrive.com/dynamicindex1/jimmenu/config2.js

is the file that actually contains the scripts and fields you need to edit...
if you have any questions let us know

htdefiant
09-18-2007, 08:25 PM
OK, I made an effort (you can see the results at oratid.org/test.htm), and I just have trouble with the code. Here is my current config.js:

function init()
{
//Main Menu items:
menus[0] = new menu(130, "vertical", 5, 144, -2, -2, "#FFFFFF", "#0000A0", "Arial", 9,
"bold", "bold", "black", "white", 1, "#0000FF", 2, "", false, true, true, false, 0, true, 4, 4, "#0000FF");
menus[0].addItem("http://www.oratid.org", "", 20, "center", "Home",0);
menus[0].addItem("http://www.oratid.org/about.htm", "", 20, "center", "About Or Atid",0);
menus[0].addItem("http://www.oratid.org/admin.htm", "", 20, "center", "Or Atid Staff", 0);
menus[0].addItem("http://www.oratid.org/contact.htm", "", 20, "center", "Executive Board",0);
menus[0].addItem("http://www.oratid.org/committees.htm", "", 20, "center", "Committees",0);
menus[0].addItem("http://www.oratid.org/rabbi.htm", "", 20, "center", "Rabbi's Page",0);
menus[0].addItem("http://www.oratid.org/directions.htm", "", 20, "center", "Directions",0);
menus[0].addItem("http://www.oratid.org/services.htm", "", 20, "center", "Services", 0);
menus[0].addItem("http://www.oratid.org/education.htm", "", 20, "center", "Education", 0);
menus[0].addItem("http://www.oratid.org/usy.htm", "", 20, "center", "USY & Kadima",0);
menus[0].addItem("http://www.oratid.org/ladaat.htm", "", 20, "center", "LaDa'at",0);
menus[0].addItem("http://www.oratid.org/adulted.htm", "", 20, "center", "Adult Education", 0);
menus[0].addItem("http://www.oratid.org/sisterhood.htm", "", 20, "center", "Sisterhood",0);
menus[0].addItem("http://www.oratid.org/mensclub.htm", "", 20, "center", "Men's Club",0);
menus[0].addItem("http://www.oratid.org/events.htm", "", 20, "center", "Events",0);
menus[0].addItem("http://www.oratid.org/calendars/August07.htm", "", 20, "center", "Calendar",0);
menus[0].addItem("http://www.oratid.org/donate.htm", "", 20, "center", "Donate and Help", 0);
menus[0].addItem("http://www.oratid.org/forums", "", 20, "center", "Or Atid Forums", 0);


} //OUTER CLOSING BRACKET. EVERYTHING ADDED MUST BE ABOVE THIS LINE.


May someone please make me an example of how to do it like the config2.js file boogeyman just posted but make it look like the current one? No need to change the links, I just want to see how it will look. I would like Education to have a submenu, and if I just see how that is done, hopefully I can proceed on my own.

Thanks.

htdefiant
09-21-2007, 09:25 PM
Respectful bump