We're using a horizontal Milonic menu on a frames-based web-site. I am trying reverse the menu direction when the site is displayed in Arabic, so the menu switches from the top-left to the top-right corner, with popups on the left.
I can't get first-level submenus to align to the right hand side of the image, so the rightmost menus hang over the right hand side of the page.
E.g. I get this
Code: Select all
<=>
+---+
|---|
|---|
+---+
Code: Select all
<=>
+---+
|---|
|---|
+---+
Code: Select all
_menuCloseDelay=200; // The time delay for menus to remain visible on mouse out
_menuOpenDelay=100; // The time delay before menus open on mouse over
_subOffsetTop=6; // Sub menu top offset
_subOffsetLeft=-4; // Sub menu left offset
var subAdjustTop_H = 0;
var subAdjustLeft_H = 0;
var subAdjustTop_V = 0;
var subAdjustLeft_V = 0;
// Style Definitions
with(mainStyleHoriz=new mm_style()) {
borderstyle="none";
borderwidth=0;
separatorsize=0;
padding=4;
fontsize=12;
fontstyle="normal";
fontfamily="Verdana, Arial, sans-serif";
swap3d=1;
followscroll=0;
}
// Main Menu
with(milonic=new menuname("mainMenuHoriz")){
style=mainStyleHoriz;
top=45;
left=0;
orientation="horizontal";
// TODO: can't get menu to align with right of button
screenposition="right";
openstyle="rtl";
align="right";
alwaysvisible=1;
aI("image=/Menu/logout.png;overimage=/Menu/logout-over.png;status=الإدارة;url=/Logout.stml;target=_top;onfunction=parent.frames['content'].popdown();offfunction=closeSubmenuInFrame();");
aI("image=/Menu/devtools.png;overimage=/Menu/devtools-over.png;status=Developer Tools;showmenu=devtools;url=/servlet/LoadServlet?run=Logon2.HsAdminMenu.run;target=content;onfunction=openSubmenuInFrame();offfunction=closeSubmenuInFrame();");
aI("image=/Menu/docs.png;overimage=/Menu/docs-over.png;status=Document Manager;url=javascript:doLink(\"/common/FileSystem.stml\", \"Document Manager\");;onfunction=parent.frames['content'].popdown();offfunction=closeSubmenuInFrame();");
aI("image=/Menu/reports.png;overimage=/Menu/reports-over.png;status=Reports;showmenu=reports;target=content;onfunction=openSubmenuInFrame();offfunction=closeSubmenuInFrame();");
aI("image=/Menu/admin.png;overimage=/Menu/admin-over.png;status=الإدارة;showmenu=admin;target=content;onfunction=openSubmenuInFrame();offfunction=closeSubmenuInFrame();");
aI("image=/Menu/payroll.png;overimage=/Menu/payroll-over.png;status=كشف الأجور;showmenu=payroll;url=/payroll/PayrollInformation.stml;target=content;onfunction=openSubmenuInFrame();offfunction=closeSubmenuInFrame();");
aI("image=/Menu/hr.png;overimage=/Menu/hr-over.png;status=الموارد البشرية;showmenu=hr;url=/hr/EmployeeSearch.stml;target=content;onfunction=openSubmenuInFrame();offfunction=closeSubmenuInFrame();");
}
// Submenu Definitions
with(milonic=new menuname("hr")){
style=subStyle;
// TODO: I can't get the menus to align with the right side of each button
openstyle="rtl";
align="right";
aI("text=البحث عن موظف;status=البحث عن موظف;url=javascript:doLink(\"/hr/EmployeeSearch.stml\", \"البحث عن موظف\");");
aI("text=مستجد;status=مستجد;url=javascript:doLink(\"/employee/NewEmpPreqCheck.stml\", \"مستجد\");");
}
etc... (more submenu definitions skipped)
Thanks,
Pete