rtl problem

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
cejko1
Beginner
Beginner
Posts: 6
Joined: Thu Sep 05, 2002 3:16 pm

rtl problem

Post by cejko1 »

Hi!

I couldn't find no bug report topic ... so I decided to post the problem here:

I've test it on menu version 5.09, 5.10, 5.11 with i.e. 6

problem description:
on mouse over ... the menu change its position to the left for about 2px,

I found some other problems when I tryed to resize the the ie. window ... horizontal scroller, submenu dysplays on the right side of the main menu, ...

here's the sample code:
<html dir="rtl">
<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<SCRIPT language=JavaScript src="milonic_src.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="mmenudom.js" type=text/javascript></SCRIPT>
<SCRIPT>
_menuCloseDelay=500 // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150 // The time delay before menus open on mouse over
_subOffsetTop=10 // Sub menu top offset
_subOffsetLeft=-10 // Sub menu left offset

with(menuStyle=new mm_style()){
onbgcolor="#4F8EB6";
oncolor="#ffffff";
offbgcolor="#DCE9F0";
offcolor="#515151";
bordercolor="#296488";
borderstyle="solid";
borderwidth=1;
separatorcolor="#2D729D";
separatorsize="1";
padding=5;
fontsize="75%";
fontfamily="Verdana, Tahoma, Arial";
subimage="arrow.gif";
subimagepadding="2";
}

with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=10;
alwaysvisible=1;
overflow="scroll";
aI("text=Home;url=http://milonic.com/;status=Back To Home Page;");
aI("text=Milonic;showmenu=Milonic;");
}

with(milonic=new menuname("Milonic")){
style=menuStyle;
aI("text=Product Purchasing Page;url=http://milonic.com/cbuy.php;");
}

drawMenus();
</SCRIPT>

</head>
<body>

</body>
</html>
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Can I make a few suggestions first and see if it makes a difference.

First look in menu styles on milonic page for the rtl attribute, I forget. Place that above menuitems below menustyle.

Move the menu from <head> into <body>

Remove the quotes around subimagepadding and separator size.

Remove overflow=scroll completely.

Where you have used the menu name Milonic, use something other than Milonic because its reserved for js use only.

Thanks,
maz
Post Reply