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

Controlling Menu Width


Poster: BrendanChandler
Dated: Friday October 17 2008 - 1:39:37 BST

I want to control the width of the menu.

I added code "maxwidth=130;"

I also tried setting 'menuwidth=130' which has the same effect;

The menu loads correctly and then shrinks the width to something much less.

Is there another feature that it conflicts with.

Should I be able to find the answers to these queries somewhere on your site. I have tried searching.

Brendan

Re: Controlling Menu Width


Poster: Ruth
Dated: Friday October 17 2008 - 14:12:20 BST

Hi,

Do you have a page up with this on it so we can test it? If not, can you post your html, css and menu data file here so I can try and make a page and test it?

Ruth

Re: Controlling Menu Width


Poster: Ruth
Dated: Friday October 17 2008 - 14:29:26 BST

Ok, I went to your other post and that page. I am seeing the menu at 140px wide in IE6. It doesn't load in FF but that is because of whatever it is you did with the call. Your call or the files needs to be this

Code:
<SCRIPT language=JavaScript src="milonic_src.js" type=text/javascript</SCRIPT>

<SCRIPT language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>");</SCRIPT>

<SCRIPT language=JavaScript src="menu_data.js"
type=text/javascript </SCRIPT>


Whatever all that other stuff is that you have needs to be removed or put someplace else, it is coming up in the middle of the calls removing the ending tags of some of the script calls.

Anyway, I fixed them and loaded it on my desktop and the menu is fine, set at 140px wide. You can add itemwidth=140; to the menu if you want. Also, you need to upload the arrow to your site, you are linking to the Milonic site for it.

Ruth

Re: Controlling Menu Width


Poster: John
Dated: Friday October 17 2008 - 15:41:47 BST

Even easier, assuming you're using the latest version of the menu, are the following new calls...
Code:
<script type="text/javascript" src="milonic_src.js"></script>
<noscript><a href="http://www.milonic.com/">JavaScript DHTML Menu Powered by Milonic</a></noscript>
<script type="text/javascript" src="mmenudom.js"></script>
<script type="text/javascript" src="menu_data.js"></script>

These assume no support for NS4.

Re: Controlling Menu Width


Poster: BrendanChandler
Dated: Friday October 17 2008 - 16:46:12 BST

Hi John and Ruth,

Thank you both for your efforts. I really do appreciate them.

There are many places where I am confused. My ignorance is vast.

Many of the variables have values but I have no idea what units are being used so everything is a guess work for me.

Ruth in her post refers to 'FF' what is that?

John refers to NS4, what is that.

Is 'the following new call' a replacemment for what you refer to as 'the following JavaScript tags'? I guess so I will try substituting the new code.

Thank you

Brendan

Re: Controlling Menu Width


Poster: John
Dated: Friday October 17 2008 - 16:58:36 BST

FF is Firefox.

NS4 is the old Netscape 4 browser. Andy had to write a special module just to handle it, but most folks (including me) no longer support it.

The calls I posted replace those at the top of Ruth's message.