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
Menu Positioning
-
- Beginner
- Posts: 2
- Joined: Sun May 19, 2002 7:24 pm
Re: menu positioning
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
thanks again for you help
- yadin
- Super Advanced
- Posts: 69
- Joined: Sun May 19, 2002 8:23 pm
- Location: State College, PA, USA
- Contact:
Re: menu positioning
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.
-
- Beginner
- Posts: 1
- Joined: Sun May 19, 2002 7:23 pm
Menu Positioning
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
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
Re: menu positioning
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.shtmlyadin 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
C.D.E. Sporting de Vallecas, C.F.
http://www.sportingdevallecas.es
http://www.sportingdevallecas.es
Re: menu positioning
And as nobody helped i finally found a solution by myself which is to use some JavaScript code inside, likeWilly 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
Code: Select all
addmenu(menu=["menuname",160,(screen.width-770)/2,130,,,style...
Willy.
C.D.E. Sporting de Vallecas, C.F.
http://www.sportingdevallecas.es
http://www.sportingdevallecas.es