Results 1 to 7 of 7

Thread: Flex Level Drop Down Menu - make sub menu open to the left

  1. #1
    Join Date
    Feb 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightbulb Flex Level Drop Down Menu - make sub menu open to the left

    1) Script Title:
    Flex Level Drop Down Menu

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

    3) Describe problem:
    Hiii .. I'm a web developer from Egypt ..
    I'm using the flex level script to build the site menus,
    my problem is how to make the "sub menu" opens to the left instead of opening to the right , as I'm making a website in arabic language that goes from right to left (unlike english that goes from left to right) ..
    Thanks in advance
    Last edited by michael_zz; 02-18-2010 at 05:51 PM.

  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 line inside the script:

    Code:
    			x=(x+$ul.data('dimensions').w > docrightedge)? x-(anchorsetting.useroffsets[0]*2)-$ul.data('dimensions').w+$anchor.outerWidth()+(anchorsetting.dir=="h"? -($anchor.outerWidth()*2) : 0) : x //if not enough horizontal room to the ridge of the cursor
    and change that to:
    Code:
    			x=x-(anchorsetting.useroffsets[0]*2)-$ul.data('dimensions').w+$anchor.outerWidth()+(anchorsetting.dir=="h"? -($anchor.outerWidth()*2) : 0) //if not enough horizontal room to the ridge of the cursor
    DD Admin

  3. #3
    Join Date
    Feb 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    sorry but after using the menu , another problem occurred!
    the menu itself comes from the right and it's very good , but submenus also comes at the wrong direction "to the right not the left" , check this picture ..



    is there any specific css or javascript commands that can fix this ??
    Last edited by michael_zz; 02-17-2010 at 09:10 AM. Reason: another problem came up !

  4. #4
    Join Date
    Feb 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Please guys , any Ideas ??
    it's a big site , and delayed because of this error ..
    Thanks in advance

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

    Default

    Ok, try also finding the below line:

    Code:
    			x=(parentlioffset.left+x+$ul.data('dimensions').w > docrightedge)? x-$ul.data('dimensions').parentliw-$ul.data('dimensions').w : x //if not enough horizontal room to the ridge parent LI
    and change that to:

    Code:
    			x=x-$ul.data('dimensions').parentliw-$ul.data('dimensions').w
    DD Admin

  6. #6
    Join Date
    Aug 2009
    Posts
    92
    Thanks
    0
    Thanked 9 Times in 9 Posts

    Default

    style="text-align:left"
    ---------TO---------
    style="text-align:right"

    <p style="text-align:right"><a href="http://www.dynamicdrive.com" data-flexmenu="flexmenu1">Dynamic Drive</a></p>

  7. #7
    Join Date
    Feb 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Niiiiiiiiiiice
    It works
    Thanks guys , I really appreciate that

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
  •