Click to See Complete Forum and Search --> : center cascading menu


henk
07-04-2003, 04:56 AM
I am using cascading-menu from:
http://javascript.internet.com/navigation/cascading-menu.html
and I want to center the menu. when you look at out schoolwebsite: http://www.walburgcollege.nl/vakken/natuurkunde/ntnujava/index.html
you will see that everything is on the left side starting with mechanica until info and I want it to center all these items
Can anybody help me????
greetings henk

Asch
07-04-2003, 08:33 AM
Thats the problem when people don t do the scripts them semlf, they dont know what ther doeing :O)...
but I can understand making a menu like this is a crasy work :O) lol

so here is what you have to change (look @ this line in your script) :

menu[0][0] = new Menu(false, '', 5, 27, 17, '#669999', '#006666', '', 'itemText');


the position is always definied in X,Y caus it s 2 dimensions...
x is horizontale yours is 5 form the left increas this number to go to the middle...

y , 27 ,is vertical same for the height...

17 musst be the height of the menu itself....


have fun


cheers

asch
:D

henk
07-07-2003, 02:42 AM
hi asch
thanks for the remarks
but i knew how to change this line but how to center it for any window resolution¿¿¿¿¿
cheers henk