Results 1 to 5 of 5

Thread: Remove down arrow from All Levels menu

  1. #1
    Join Date
    Aug 2008
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Remove down arrow from All Levels menu

    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:
    Code:
    	
    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?

  2. #2
    Join Date
    Jun 2008
    Posts
    589
    Thanks
    13
    Thanked 54 Times in 54 Posts
    Blog Entries
    1

    Default

    Dont delete it.

    Here. Do this:

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

    -magicyte

  3. #3
    Join Date
    Aug 2004
    Posts
    9,918
    Thanks
    3
    Thanked 969 Times in 957 Posts
    Blog Entries
    15

    Default

    Actually, that won't do it. Try commenting out the below line inside the .js file instead:

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

  4. #4
    Join Date
    Aug 2008
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    wont that disable the submenu arrows, too, though?

  5. #5
    Join Date
    Aug 2004
    Posts
    9,918
    Thanks
    3
    Thanked 969 Times in 957 Posts
    Blog Entries
    15

    Default

    No, just the top level down arrows (but not the sub level right arrows).
    DD Admin

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •