Results 1 to 3 of 3

Thread: Anylink CSS Menu - possible to make the menus go up, not down?

  1. #1
    Join Date
    Oct 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Anylink CSS Menu - possible to make the menus go up, not down?

    1) Script Title: Anylink CSS Menu

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

    3) Describe problem: I was wondering if it's possible to make the menus go up instead of down. I tried modifying the script myself, but I couldn't get the positioning right at all.

    Thanks for your help,

    Jake Jones

  2. #2
    Join Date
    Aug 2004
    Posts
    9,887
    Thanks
    3
    Thanked 962 Times in 951 Posts
    Blog Entries
    15

    Default

    Sure, within anylink.js, find the code block:

    Code:
    if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
    edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
    if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
    edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
    }
    and comment out most lines:

    Code:
    //if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
    edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
    //if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
    //edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
    //}
    This basically tells the menu to always drop up.

  3. #3
    Join Date
    Oct 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Perfect. Thank you so much.

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
  •