Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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:30

positioning of dynamically fetched menu items horidhtml menu


Poster: sumathys
Dated: Tuesday August 21 2007 - 6:49:27 BST

i have my main menu items ( displays horizontally)in a separate file and my submneus (displays vertically)in a separate file.

Currently, i am fetching the main menu items dynamically.The positioning of these items overlaps each other.

How could i set the position such that every item follows one after the other.

Give me a clear idea where and how can i set the position.
Expecting reply ASAP.


Thank you.


Poster: Ruth
Dated: Tuesday August 21 2007 - 8:40:54 BST

Hi,

I really have to have a page to see what's going on. You can position the main menu by using the top and left position, or you can position it in a table using the relative positioned menu directions at the top of this forum. Without a page with the menu I cannot give you any advice on this.

Ruth


Poster: sumathys
Dated: Tuesday August 21 2007 - 9:36:07 BST

This on_menu.xsl fetches the menu_header items using xsl tag.I have a list of 6 items which is assigned to a variable 'c'.This value ,i am using in the aI().


My sub menu items are in menu_data_body.js


<xsl:for-each select="faml/subMenu/menuitem">

<script type="text/javascript">

_menuCloseDelay=0; // The time delay for menus to remain visible on mouse out
_menuOpenDelay=0; // The time delay before menus open on mouse over
_subOffsetTop=0; // Sub menu top offset
_subOffsetLeft=-205; // Sub menu left offset

/// Style Definitions ///

with(mainStyleHoriz=new mm_style()){
onbgcolor="#9EE3A9";
oncolor="#1D3B23";
offbgcolor="#61A76D";
offcolor="#F7F9F7";
bordercolor="#367E45";
borderstyle="solid";
borderwidth=1;
separatorcolor="#325235";
separatorsize=2;
padding=4;
fontsize=12;
fontstyle="normal";
fontfamily="Verdana, Tahoma, Arial";
subimage="";
onsubimage="";
menuwidth="50%";
itemwidth="100%";
screenposition="right;bottom;";

}

var c = '<xsl:value-of select="./ __at__ menudesc"/>';

with(milonic=new menuname("mainMenuHoriz")){
style=mainStyleHoriz;
top=0;
left=205;
orientation="horizontal";
alwaysvisible=1;



aI("text= "+c+";showmenu=sub2;target=frame_BuySell;onfunction=openSubmenu();offfunction=closeSubmenu();");


}

drawMenus();
</script>
</xsl:for-each>


My menu has to display Account summary,Myorder,Myportfolio,Help,Logoff
The problem is that these items overlapone another and dispalys as

Logoff r lio mmary
//assume the space to be the border


Poster: Ruth
Dated: Thursday August 23 2007 - 20:24:07 BST

Hi,

I will post this to Milonic, but I believe they will also ask you for a page. I can't see how your main menu items are overlapping since according to what you posted there is only 1 item in the main menu. You are also using frames, and the frames menu has some different parameters. Without a page I don't see how anyone can help you. I have not seen any menu in which the main menu items are overlapping each other, I've don't remember ever getting a post with such a problem in all the years I've been here.

The forum really would like to help you with the issue, but I could guess a hundred reasons and never get the correct answer. We really do need to see the page.

Ruth