Results 1 to 3 of 3

Thread: Force drop up all the time instead of auto up/down per size of browser.

  1. #1
    Join Date
    Jun 2011
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Force drop up all the time instead of auto up/down per size of browser.

    1) Script Title: AnyLink CSS Menu v2.2

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

    3) Describe problem:

    Hi,

    I am new to using scripts in my html/css pages. Just got over using wysiwyg editors and have gone to plain code. The scripts I have downloaded work great and have been really straight forward.

    However I have one problem with Anylink Css menu 2.0.

    I would like the menu to always drop up rather than flip between up and down as per the size of the browser.

    I have tried to use a rev="up" in my anchorlink. Which doesn't change anything. For interests sake I changed it to rev="lr" and it did go to the right instead like its supposed to.

    Is there anyway to force it up all the time. Maybe somewhere in the .js file.



    Thanks

    Nick

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Try finding the below lines inside the .js file, and comment out the following two (added code in red):
    Code:
    	//if (posy+this.dimensions.dropmenuh>this.dimensions.docscrolly+this.dimensions.docheight){  //drop up instead?
    		posy=Math.max(posy-this.dimensions.dropmenuh - (menu.orientation=="lr"? -this.dimensions.anchorh : this.dimensions.anchorh), this.dimensions.docscrolly) //position above anchor or window's top edge
    	//}
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    gotoplanf (06-08-2011)

  4. #3
    Join Date
    Jun 2011
    Posts
    4
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Thanks,


    This took care of it exactly. I need to do some reading up on java to get a better grasp of it. I guess this is why nav bars usually go at the top of the page.

    Thanks again for the quick reply

    Nick.

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
  •