Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:33
rtl problem
Poster: cejko1
Dated: Thursday April 15 2004 - 12:26:57 BST
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://www.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://www.milonic.com/cbuy.php;");
}
drawMenus();
</SCRIPT>
</head>
<body>
</body>
</html>
Poster: Maz
Dated: Thursday April 15 2004 - 17:39:05 BST
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