PDA

View Full Version : Resolved Flex Level Drop Down Menu - make sub menu open to the left



michael_zz
02-16-2010, 06:57 PM
1) Script Title:
Flex Level Drop Down Menu

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex1/flexdropdown.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 :cool:

ddadmin
02-16-2010, 10:27 PM
Try finding the below line inside the script:


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:

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

michael_zz
02-17-2010, 01:23 AM
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 ..

http://img130.imageshack.us/img130/3296/michael.png

is there any specific css or javascript commands that can fix this ??

michael_zz
02-17-2010, 09:23 PM
Please guys , any Ideas ??
it's a big site , and delayed because of this error ..
Thanks in advance :)

ddadmin
02-18-2010, 01:53 AM
Ok, try also finding the below line:


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:


x=x-$ul.data('dimensions').parentliw-$ul.data('dimensions').w

stringcugu
02-18-2010, 07:22 AM
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>

michael_zz
02-18-2010, 05:51 PM
Niiiiiiiiiiice :) :)
It works :D
Thanks guys , I really appreciate that :D