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: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:44

How to place the menu inside a table?


Poster: sberry __at__ annex.net
Dated: Tuesday February 26 2002 - 0:24:47 GMT

I'm a novice, I just know a bit of html and css coding; I tried several times to insert the menu in a table cell, but as soon I place it in the table it disappears! Could you please help me? Thanks in advance!

One more question: I have running another javascript code in my site (it shows the date and time). It stops working as soon as I place the menu somewhere (outside a table). My script loads using this command: <body onload="show_clock()">. Any ideas?

Thanks in advance!

Re: Tables


Poster: Anonymous
Dated: Sunday May 19 2002 - 19:52:10 BST

Problem resolved! But still have questions... :)
See my other post! Please, help somebody!

M.

Re: Tables


Poster: Andy
Dated: Tuesday February 5 2002 - 9:36:33 GMT

How did you fix the froblem?

Re: Tables


Poster: Andy
Dated: Tuesday February 5 2002 - 9:37:03 GMT

No problem, here's the code I used in my page to get the menu working in Netscape 4.7, 6.2, and IE 6.0 (browsers I tested it with):

<body ...>
<SCRIPT language=JavaScript src="lib/menu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="lib/mmenu.js" type=text/javascript></SCRIPT>

[ note: "lib" is the folder I placed the menus on the server. Now I'll place a part of the table the menu is actually "glued" i. The menu is at the end of the table:

[.......]
<tr>
<td align=left valign=bottom height=20>
<SCRIPT>PlaceMenu("mainmenu")</SCRIPT>
</table>

[See there's no ending /tr and /td tags. That's very important!
OK, that's all in the webpage.]

That's almost all. Also, to combat a strange "jumping" effect of the menu (right before it appears on the webpage) I recommend using the following settings in the menu_array.js file:

[.....]

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
-100, // Menu Top - The Top position of the menu in pixels
-100, // Menu Left - The Left position of the menu in pixels

[You'll easily find the place in the file. Strange, but without such settings (or like them), the menu "jumps" to its current position when loading.]


If you're curious see all of the code of my test page I put for the time the menu, and how it works, you may see it here:

http://members.tripod.com/iwns/testmenu.html

I'll not remove it for some time, until I resolve another problem with OnLoad (partial incompatibility with another script?), and some more testing.


Excluding that, the menu works fine. 'm happy if I were of some use.

Michel

Re: Tables


Poster: Anonymous
Dated: Sunday May 19 2002 - 19:52:13 BST

Thanx for the tip - worked like a charm at my site (http://www.mobital.net)

Didn't have to remove the /tr

Tables


Poster: urbank __at__ uni.de
Dated: Tuesday May 7 2002 - 12:36:51 BST

My test page is on http://members.tripod.com/iwns/testmenu.html

I followed a link in the FAQ section, which must explain how to do this, but it's not working! http://www.milonic.co.uk/menu/placemenu_sample.php

Thanks! Your menu is really great! I spent already a whole night trying to customize it the way it'll suit my page, but not being able put it in a table..
OK, bye

Re: Tables


Poster: jnfls
Dated: Tuesday May 28 2002 - 4:29:50 BST

hi...I have been following the discussion board and I am having the same problem in placing the nav into a table. I could not call the PlaceMenu() for some reasons. Can you please let me know how should i be setting the placemenu as i am clueless.

thank you in advance.