PDA

View Full Version : Remove down arrow from All Levels menu



kpsony
09-01-2008, 09:58 PM
1) Script Title: All Levels Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...menu/index.htm

3) Describe problem: I want to remove the automatic arrow down for drop down menus, but when I go into the javascript and find the line that adds it:

var arrowpointer=(dir=="sidebar")? "rightarrowpointer" : "downarrowpointer"
this.addpointer(menulink, arrowpointer, this[arrowpointer])
this.buildmenu(mainmenuid, menulink, dropul, this.ulindex, true, dir)

and delete the ": "downarrowpointer"" part, the functions stops working completely.

Help?

magicyte
09-01-2008, 10:01 PM
Dont delete it.

Here. Do this:

var arrowpointer=(dir=="sidebar")? "rightarrowpointer" : return 0;

-magicyte

ddadmin
09-02-2008, 12:23 AM
Actually, that won't do it. Try commenting out the below line inside the .js file instead:


var arrowpointer=(dir=="sidebar")? "rightarrowpointer" : "downarrowpointer"
//this.addpointer(menulink, arrowpointer, this[arrowpointer])

kpsony
09-02-2008, 07:10 AM
wont that disable the submenu arrows, too, though?

ddadmin
09-03-2008, 06:30 AM
No, just the top level down arrows (but not the sub level right arrows).