View Full Version : Jim's DHTML horizontal positioning

05-09-2005, 02:01 AM
Now I am needing help on centering the toolbar in our webpage.

tmoodaddicts (http://tmoodaddicts.blogspot.com)

I've centered it before at 274 but have changed it to 174 position in order to 'compromise' with the other visitors who aren't getting theirs centered. I think it has to do with the resolution (or browser version also) of the screen.

Is there a code I can use (or replace what's existing) so that everyone can see the toolbar centered?

Thanks in advance for any help.

05-09-2005, 08:50 AM
I see you are using the:

menus[0].floatMenu(1024, 768, 20, 50);

option in your config.js. The documentation says that the 50 you have there should be:

". . .how you want the menu's positioned (i.e. horizontally, vertically or both [0, 1, 2])"

Not 50.

Also, where you have '20' above, the documentation has '10'. No explanation is given for this parameter so, it would probably be best to leave it at '10'

Once that is set properly and you configure the menu using the left (red) and top (blue) here:

menus[0] = new menu(20, "horizontal", 260, 20

to appear as you wish at 1024x768 (the first two parameters in floatMenu), all other resolutions should work well with it.