While waiting for Finance department to purchase the menu, we were designing a menu using version 5.735 (Unfortunately it's an intranet site, therefore I can't provide a link).
That's what we had:
Code: Select all
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<img src="/common/images/short.jpg" width="135" height="36">
</td>
<td>
... menu javascript...
</td>
<td width="100%" valign="top" background="/common/images/tail.jpg" style="background-repeat: no-repeat;" bgcolor="'#779DDE">
</td>
</tr>
</table>
And the menu javascript is:
Code: Select all
fixMozillaZIndex=true;
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=2;
_subOffsetLeft=-2;
// styles
with(menuTabStyle=new mm_style()){
bordercolor="#296488";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, Tahoma, Arial";
fontsize="10";
fontstyle="normal";
fontweight="bold";
headerbgcolor="#ffffff";
headercolor="#000000";
itemheight=34;
offbgcolor="transparent";
offcolor="#262626";
onbgcolor="#4F8EB6";
oncolor="#ffffff";
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);";
padding=5;
menubgimage="/common/images/bg.jpg";
pagebgcolor="#ffeec2";
pageborder="1px dashed #ffffff";
separatorcolor="#2D729D";
separatorsize=1;
subimage="/common/js/arrow.gif";
subimagepadding=2;
}
// ... and the menu itself
with(milonic=new menuname("Main Menu")){
alwaysvisible=1;
left=10;
orientation="horizontal";
position="relative";
style=menuTabStyle;
top=10;
aI("showmenu=Menu_817;text=iPortal Home;url=http://{link};itemwidth=60;align=center;")
aI("showmenu=Menu_819;text=Performance Reports;url=http://{link};itemwidth=100;align=center;")
aI("showmenu=Menu_844;text=Company Research;url=http://{link};itemwidth=85;align=center;")
aI("showmenu=Menu_846;text=Risk;url=http://{link};itemwidth=60;align=center;")
aI("showmenu=Menu_866;text=Asset Allocation;url=http://{link};itemwidth=75;align=center;")
aI("showmenu=Menu_874;text=Stock Screening;url=http://{link};itemwidth=85;align=center;")
aI("showmenu=Menu_899;text=Fund & Market Commentary;url=http://{link};itemwidth=180;align=center;")
aI("showmenu=Menu_902;text=About Staff;url=http://{link};itemwidth=60;align=center;")
aI("showmenu=Menu_905;text=Team Sites;url=http://{link};itemwidth=60;align=center;")
}
// ... etc
If I remove "width=100%" from the last TD definition, menu starts working as expected, with itemwidth properly rendered. I looked through the forum for solution to preserve the current page markup and could find one. This means if there isn't any, we would have to re-design the whole graphic solution, which is not desirable, so any help would be greatly appreciated.
Is there any way to disable scaling of the menu, relative to the table it's been enclosed in? In other words, to have the same functionality as in previous versions of the menu.
Another possible solution (minimizing changes to HTML markup) would be to find a way to get the 'real' width of the menu via JavaScript when rendered and then reset the width of the cell which contains the menu. Is there any way to retrieve this 'real' width of the menu? I suppose I can get this value by adding all the item widths together (if setup) via menu property JS interface, but i'd prefer an easier way, if any exist.
Thank you in advance for any hints.
Regards,
Stan