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:34

Need help placing Menu in a Table?


Poster: Jyn
Dated: Friday June 21 2002 - 6:11:28 BST

I have searched the forum for information on placing the menus in a table, and I <b>still</b> haven't been able to get it to work.

Also, a lot of the links people have forwarded other people to in this forum are no longer working.

I am very frusterated by now, because I wish there were more detailed instructions in this area, and this site by far has been the most help yet.

I understand the "<SCRIPT>PlaceMenu("mainmenu")</SCRIPT>
        &nbsp;" feature, but <b><i>WHERE</i></b> in the table to you put it and do you include the other data for your form in with it also?

Can anyone help me, pretty please? :cry:


Poster: vishmehra
Dated: Friday June 21 2002 - 12:10:35 BST

I simply did this:
<table>
<tr>
<td valign="top" width="200">
<SCRIPT language=JavaScript src="menu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="mmenu.js" type=text/javascript></SCRIPT>
<NOSCRIPT>Our old navigation goes here</NOSCRIPT>
</td>
<td valign="top">
Content goes here.</td>
</tr>
</table>

Hope this helps!

Placing Menu in Table


Poster: racine
Dated: Friday June 21 2002 - 20:52:45 BST

This also worked well for me:

<table><TR><TD>
<SCRIPT>PlaceMenu("menu1")</SCRIPT>
&nbsp;
</TD></TR></TABLE>

Note the &nbsp; was important as i recall


Poster: Roy
Dated: Saturday June 22 2002 - 2:43:16 BST

It should be noted the way vishmehra did it will crash and burn in NS4

The menu needs to have a table all to itself like racine did it. That table can then be placed inside a td cell on your page.

<td>
<table><tr><td>
<script>PlaceMenu("menu1")</script>
&nbsp;
</td></tr></table>
</td>


Poster: rsnavin
Dated: Saturday June 22 2002 - 10:18:11 BST

I even have problems placing my menu on a table. I still don't understand how to do it. Please help. Thank you.


Poster: Roy
Dated: Saturday June 22 2002 - 14:22:52 BST

Here's a way that seems to work.

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

</head>
<body>

<table>
<tr>
<td align="center">

<table width="150"><tr><td>
<script>PlaceMenu("menu1")</script>
&nbsp;
</td></tr></table>

</td>
<td> other stuff on your webpage. </td>
</tr></table>
</body>
This assumes that you have a menu less than 150 wide
(w3 wants use to stop using width in pixels, but I find it way to handy to give up)

When you give a position in your array, make it -300 or some number that places it off the screen. This way you won't get that rubberband effect when the menu is called from the table.

MENU IN A TABLE - DOES ANYONE KNOW HOW TO DO? REALLY????


Poster: tcash501
Dated: Thursday July 4 2002 - 18:02:22 BST

these methods of putting this awesome menu in a table just don't work! I can't add anything to the page but the menu. Can't add my graphics. If I could control the menu in the table, maybe i could add some graphics. !!

Please help this frustrated new web designer look good! Jobs are hard to come by!!

:x 8)

menu in table


Poster: racine
Dated: Thursday July 4 2002 - 22:50:26 BST

Give us a sample of your code so we can look at it. The above sample in i's basic form works fine, and adding graphics should have no effect.

Are you using some sort of GUI editor?

Close


Poster: ctreeves __at__ attbi.com
Dated: Friday July 5 2002 - 18:24:55 BST

I got the menu to reside insode of a table cell, kinda. I am getting an error of Line:483, Error"'menu10' is undefined.

The menu works great without the table, here is the code I cam using, essentially what was prevously posted:
<HTML>
<body>
<head>
<SCRIPT language=JavaScript src="menu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="mmenu.js" type=text/javascript></SCRIPT>

</head>
<body>

<table>
<tr>
<td align="center">

<table width="100"><tr><td>
<script>PlaceMenu("menu1")</script>
&nbsp;
</td></tr></table>

</td>
<td><cfinclude template="../admin_pages/minutes/newform.cfm"></td>
</tr></table>
</body>
</HTML>

Even if I remove the included file I still get the Runtime error.

Any tips?


Poster: NetWhiz
Dated: Tuesday July 9 2002 - 19:03:25 BST

What is the problem with a menu inside a table cell? I have one cell that contains 5 images. When you roll-over these images, a menu is displayed below the image. I have no problems with menus inside table cells unless this is something different?


Poster: racine
Dated: Tuesday July 9 2002 - 19:32:51 BST

odd, i thought he posted over the weekend he resolved the issue (forgot the complete <script>PlaceMenu("menu1")</script> ) as i recall. But I don't see the replay now :?

PlaceMenu


Poster: NetWhiz
Dated: Tuesday July 9 2002 - 19:36:33 BST

My question is not regarding his issue, it is a general question about PlaceMenu and why it is needed?


Poster: racine
Dated: Tuesday July 9 2002 - 20:31:51 BST

Oh, I see what you're saying. I think there are actually some issues with having the JS script outside of the HEAD tags as i recall (with only certain browsers?) not sure of the exact issues tho.

still crazy trying to put menu into table


Poster: tcash501
Dated: Friday July 26 2002 - 16:22:26 BST

Roy, I tried your method. I get an error in Line 484 ("Menu10 is undefined"). Funny because I only have 24 lines in my program.
I get a two cell, one row table, but the menu floats above it, doesn't reside in it.

I tried all the other methods on the forum so far. I've written the staff.

In two weeks I will be given the awesome responsibility of putting up the company's new website. It will be a life change if I can succeed and a total disaster if I fail.

I welcome any help and advice from you brainiacs.

I need to put the menu in a row of a table that contains the main graphic for the page.

Anyone that wants to write me directly: tcash __at__ teleco.com

THANKS IN ADVANCE for your help.

Terri's Table Trials and Tribulations


Poster: tcash501
Dated: Friday July 26 2002 - 16:25:14 BST

here is the code i'm using
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
<SCRIPT language=JavaScript src="menu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="mmenu.js" type=text/javascript></SCRIPT>
</head>
<body>

<table><TR><TD align="center">
<table width="500" bordercolor="#FF00FF" border="2">
<tr>
<td>
<SCRIPT>PlaceMenu("menu1")</SCRIPT> &nbsp;
</TD></TR></TABLE>
</td>
<td bgcolor="#00FFFF">
other stuff
</td>
</tr>
</table>

</body>


Poster: racine
Dated: Friday July 26 2002 - 20:42:58 BST

That looks fine, but there are also some specific settings you need to have in your menu.

addmenu(menu=["pageedit",
21, // Menu Top - The Top position of the menu in pixels
0, // Menu Left - The Left position of the menu in pixels
, // Menu Width - Menus width in pixels
1, // Menu Border Width
"top:right", // ** You need this when using the table method** Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style3, // Properties Array - this is set higher up, as above

blah blah

then

<SCRIPT>PlaceMenu("pageedit")</SCRIPT>

in your table cell.

I'm actually placing different menus in two differnt tables, works awesome. Altho the 'initial' placement is the overall alignment (ie top right of the whole screen) in the menu settings, it will the -bounce- to the cell once the page hits that "placemenu" tag.

OH! I just remembered! make sure this is on:
1, // Always Visible - allows the menu item to be visible at all time (1=on/0=off)

Otherwise, guess what, no menu!

tables in include files


Poster: teo
Dated: Thursday October 31 2002 - 18:54:07 GMT

Ok, I'm attempting an ambitious change on our website which should be simpler since every page has a header server side include file, right?;)

Using my header.inc
I want one menu at the top, then later in a table another menu. td closes, but new td opens for the body of the calling htm file. Footer.inc closes the td.

I can't seem to get both to work. I either get one, but not the other or a stack over flow error and only one.
Here's one iteration of the code (header.inc) file:----------

<table width=800 border=0>
<tr>
<td width=800 align="center">
<img src="/images/banner.jpg" alt="" border="0">
</td>
</tr>
</table>
<SCRIPT language=JavaScript src="/include/menu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="/include/mmenu.js" type=text/javascript></SCRIPT>
<p>
<table width="800" cellspacing="2" cellpadding="2" align="absMiddle">
<tr>
<td width=200 valign="top">

<SCRIPT language=JavaScript src="/include/mmenu.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="/include/incude2/menu_array.js" type=text/javascript></SCRIPT>
&nbsp;
</td>

<td valign="top">

end
-------

And the call page: test.bible.org/docs/maintoc.htm

By the way, I tried removing the lines 13-15 in the menu_array.js file, and it got rid of my stack overflow, but still didn't show the menu.

Thanks all.