Menu Positioning

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
User avatar
yadin
Super Advanced
Super Advanced
Posts: 69
Joined: Sun May 19, 2002 8:23 pm
Location: State College, PA, USA
Contact:

Re: menu positioning

Post by yadin »

You can not set the width to a percentage if that is what you are asking. I suggest setting the width of your menu to about 750/#menus so that in horizontal mode on a 600x800 screen it about covers the top of the page. Then set the alignment to center so on wider screens it is at least centered on the page.
Hope this helps,
Yadin
GregM@insightcargo.com
Beginner
Beginner
Posts: 2
Joined: Sun May 19, 2002 7:24 pm

Re: menu positioning

Post by GregM@insightcargo.com »

Yadin, thanks for the response, but which file do i set the menu width in. menu array.js or mmenu.js
thanks again for you help
User avatar
yadin
Super Advanced
Super Advanced
Posts: 69
Joined: Sun May 19, 2002 8:23 pm
Location: State College, PA, USA
Contact:

Re: menu positioning

Post by yadin »

All configuration is done in the array file, you should never touch the mmenu.js file unless you're looking to re-program the applet. The array file has all the lines commented to help you in customization.
michael.manion@fmr.com
Beginner
Beginner
Posts: 1
Joined: Sun May 19, 2002 7:23 pm

Menu Positioning

Post by michael.manion@fmr.com »

I'm attempting to use your menu within a JavaScript template layout structure (all HTML layout code is in document.write files - header, footer, etc.). I need my menu to render where ever I place it in the HTML(via doc.write), relatively positioned, not absolutely positioned. I read a forum thread regarding something simlar, however this does not work in my situation.

I've tried:
document.write('<SCRIPT language=JavaScript src="scripts/menu_array.js" type=text/javascript><\/SCRIPT>');
document.write('<SCRIPT language=JavaScript src="scripts/mmenu.js" type=text/javascript><\/SCRIPT>');
document.write('<script language=JavaScript>PlaceMenu("mainmenu")<\/script>');

...within my HTML layout doc.write file. In IE the menu appears in the body of my document, but nowhere near the location my HTML layout doc.write file is defining.

In NS I get a "e10 is not defined" error.

I hope I've made myself clear.

Thanks for a great menu!!!

Regards,
Mike
User avatar
Willy
Beginner
Beginner
Posts: 8
Joined: Thu Aug 08, 2002 10:30 am
Location: Madrid, Spain
Contact:

Re: menu positioning

Post by Willy »

yadin wrote:You can not set the width to a percentage if that is what you are asking. I suggest setting the width of your menu to about 750/#menus so that in horizontal mode on a 600x800 screen it about covers the top of the page. Then set the alignment to center so on wider screens it is at least centered on the page.
Hope this helps,
Yadin
And so maybe you know how to fix that. I'm using SSI pages with an exact size table centered on the screen for all the pages, so i added a fixed horizontal menu perfectly but then i wanted to add a second vertical follow-the-scrolling menu in a specific position within the page that varies according to the screen resolution. There's an example in http://www.sportingdevallecas.es/noticias.shtml
C.D.E. Sporting de Vallecas, C.F.
http://www.sportingdevallecas.es
User avatar
Willy
Beginner
Beginner
Posts: 8
Joined: Thu Aug 08, 2002 10:30 am
Location: Madrid, Spain
Contact:

Re: menu positioning

Post by Willy »

Willy wrote: And so maybe you know how to fix that. I'm using SSI pages with an exact size table centered on the screen for all the pages, so i added a fixed horizontal menu perfectly but then i wanted to add a second vertical follow-the-scrolling menu in a specific position within the page that varies according to the screen resolution. There's an example in http://www.sportingdevallecas.es/noticias.shtml
And as nobody helped i finally found a solution by myself which is to use some JavaScript code inside, like

Code: Select all

addmenu(menu=["menuname",160,(screen.width-770)/2,130,,,style...
Just in case anyone was looking for it,
Willy.
C.D.E. Sporting de Vallecas, C.F.
http://www.sportingdevallecas.es
Post Reply