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: Saturday July 14 2012 - 06:07:13
browser not maximized positioning problem
Poster: djooo
Dated: Friday September 12 2003 - 20:34:14 BST
http://www.rotman-baycrest.on.ca/web_te ... e/home.htm
with the browser not maximized, the menu extends beyond the page
i think i have to place the menu in a cell, but am uncertain how to do that
any help is appreciated
thanks
Poster: Hergio
Dated: Saturday September 13 2003 - 2:54:10 BST
Yes place it in a cell and change its positioning to relative to it stays in there. Then if its right justtified in the cell and the cell is set to a percentage (so it moves with the edge of the page) then menu will follow. I'm pretty sure it will work...havent tried it though.
Poster: djooo
Dated: Monday September 15 2003 - 14:54:19 BST
where do i set the positioning to relative? In the mmenu.js file there are about 9 references to position. Which ones do I change?
Poster: djooo
Dated: Monday September 15 2003 - 15:29:22 BST
i placed the menu in a table cell, and tried to change some position:absolute to position:relative but it messes up the apperance of the menu (does line wrapping, top menu items are not aligned etc..)
Please help!!
Poster: Hergio
Dated: Monday September 15 2003 - 19:27:54 BST
You change the position in the menu_array file to relative, dont touch mmenu! That is a source code for the menu that doesnt require any tweaking. In the menu_array file there should be a place thats commented that tells you about position and gives you the options of aabsolute or relative. It would be declared towards the beginning of your first menu, a couple commas in. And make sure its alwaysvisible attribute is 0. Then inside of the td in your page, put
<SCRIPT>
PlaceMenu('yourmenuname');
</SCRIPT>
in it.
Poster: djooo
Dated: Monday September 15 2003 - 20:33:58 BST
there is no reference to relative/absolute positioning in my menu_array file, this is what I have for the style array and the main menu
timegap=500 // The time delay for menus to remain visible
followspeed=5 // Follow Scrolling speed
followrate=40 // Follow Scrolling Rate
suboffset_top=10; // Sub menu offset Top position
suboffset_left=100; // Sub menu offset Left position
style1=[
"003366", // Mouse Off Font Color
"ffffff", // Mouse Off Background Color
"009933", // Mouse On Font Color
"ffffff", // Mouse On Background Color
"009933", // Menu Border Color
11, // Font Size in pixels
"normal", // Font Style (italic or normal)
"bold", // Font Weight (bold or normal)
"Verdana, Arial", // Font Name
4, // Menu Item Padding
"", // Sub Menu Image
, // 3D Border & Separator bar
"", // 3D High Color
"", // 3D Low Color
"003366", // Current Page Item Font Color
"white", // Current Page Item Background Color
"", // Top Bar image
"", // Menu Header Font Color
"red", // Menu Header Background Color
]
addmenu(menu=[
"mainmenu", // Menu Name -
32, // Menu Top - The Top position of the menu in pixels
459, // Menu Left - The Left position of the menu in pixels
, // Menu Width - Menus width in pixels
0, // Menu Border Width
, // Screen Position -
style1, // Properties Array - this is set higher up, as above
1, // Always Visible
"left", // Alignment -
effect, // Filter -
, // Follow Scrolling -
1, // Horizontal Menu
0, // Keep Alive -
, // Position of TOP sub image left:center:right
, // Set the Overall Width of Horizontal Menu
, // Right To Left - Used in Hebrew for example.
, // Open the Menus OnClick -
, // ID of the div you want to hide on MouseOver (useful for hiding form elements)
, // Reserved for future use
, // Reserved for future use
, // Reserved for future use
Poster: Hergio
Dated: Tuesday September 16 2003 - 2:22:42 BST
Ok sorry I was at school when I sent that so I could not look at any code. I apologize for the incorrect answer. The Screen position attribute can be used to influence the direction of the menu, either left, middle, right, you get the picture. Now to get a menu to position itself relatively, you remove the top and left values (clear them) and set the alwaysvisible attribute to nothing or 0, and then in the td tags, like I said, you put the placemenu call. Try that.
Also search for 'relative' and 'position' in the version 3 forum and there are alot of posts regarding this. Go back a couple months though.
Poster: djooo
Dated: Tuesday September 16 2003 - 16:59:12 BST
i tried all your suggestions but what worked was setting the
screen position to right, specifying a top and left offset and not placing the menu within a table cell
thanks for your help!!
Poster: John
Dated: Tuesday September 16 2003 - 17:59:11 BST
Glad you got it working
Now - make the move to v5...