Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:30
Centering horizontal menu
Poster: wolfe70
Dated: Thursday July 25 2002 - 1:37:36 BST
I have read all the "posts" and am more confussed than when I started.
Can I edit the script so that no matter what size monitor is viewing my page, the menu would alway be equidistant from the sides of the page? I would alway like it to be centered on all monitors and browsers.
Now, I have it centered using the
// Menu Top - The Top position of the menu in pixels and
// Menu Left - The Left position of the menu in pixels
However, when my friend w/ a larger monitor views my site he says that the menu is more on the left and less on the right.
I have also seen the:
// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
does this have any control over the menu for my purposes?
If so how do edit taht script and what would I do with the "Menu Top" & "Menu Left" script.
Just getting started with script.
Thanks
Poster: Andy
Dated: Thursday July 25 2002 - 9:46:55 BST
Hi,
The menu scripts are plain text so atext editor is the best solution until we get the menu builder complete.
If add "center" to Screen Position this will position your menu in the center on all browser sizes.
Cheers
Andy
Poster: wolfe70
Dated: Thursday July 25 2002 - 18:21:25 BST
Still a little confused. The following is part of the script.
Can you edit it like it should read for centered?
// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style1, // Properties Array - this is set higher up, as above
1, // Always Visible - allows the menu item to be visible at all time (1=on/0=off)
Thanks,
The Wolfe
Poster: MrImperfect
Dated: Thursday July 25 2002 - 21:11:09 BST
Hey, I am also having trouble just centering my menu- it wont budge from where it is at. I have this so far but it wont do anything
addmenu(menu=[ // This is the array that contains your menu properties and details
"mainmenu", // Menu Name - This is needed in order for the menu to be called
0, // Menu Top - The Top position of the menu in pixels
20, // Menu Left - The Left position of the menu in pixels
0, // Menu Width - Menus width in pixels
1, // Menu Border Width
"center", // Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style1, // Properties Array - this is set higher up, as above
1, /
Thanks
Poster: John
Dated: Thursday July 25 2002 - 22:39:32 BST
wolfe70 wrote:
Still a little confused. The following is part of the script.
Can you edit it like it should read for centered?
// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
etc.
Can you edit it like it should read for centered?
// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
etc.
Try...
center, // Screen Position
Poster: John
Dated: Thursday July 25 2002 - 22:42:30 BST
MrImperfect wrote:
Hey, I am also having trouble just centering my menu- it wont budge from where it is at. I have this so far but it wont do anything
20, // Menu Left - The Left position of the menu in pixels
0, // Menu Width - Menus width in pixels
20, // Menu Left - The Left position of the menu in pixels
0, // Menu Width - Menus width in pixels
Looks like you have the menu hard-fixed at 20px left (above). Remove to 20 (leave the comma) and try it again.
I am a bit curious how you're getting by with a 0px width menu
Poster: MrImperfect
Dated: Friday July 26 2002 - 0:03:36 BST
When I had the menu width at 0 it was because I had just tried it and forgot to remove the zero. I have tried everything I can think of- NOTHING seems to work, you can goto http://www.praystation7.com/mrimperfect that is where I am testing it.
As far as the dead set 20 or 200, I have removed those and put them back SEVERAL times and NOTHING seems to work, I repeated myself- sorry....
Poster: MrImperfect
Dated: Friday July 26 2002 - 0:35:27 BST
Oh no.....I mean really? Please kind sir, tell me how you got it. I am so desperate to know how to make it work. Thanks
Poster: wolfe70
Dated: Friday July 26 2002 - 1:04:23 BST
Here's my script:
addmenu(menu=[ // This is the array that contains your menu properties and details
"mainmenu", // Menu Name - This is needed in order for the menu to be called
90, // Menu Top - The Top position of the menu in pixels
, // Menu Left - The Left position of the menu in pixels
122, // Menu Width - Menus width in pixels
1, // Menu Border Width
"center", // Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style1, // Properties Array - this is set higher up, as above