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>
</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.
two menus, one page, one in table
- trytrix
- Super Advanced
- Posts: 92
- Joined: Thu Sep 26, 2002 9:46 pm
- Location: Flanders / Belgium
- Contact:
Hi,
Just put the menu includes right under the <BODY> tag : you only need to include the "mmenu.js" once !
For the table menu use the Placemenu() function i.e. :
See the example at :
http://milonic.com/menu/menusample.php?sampleid=21
Cheers,
Trytrix
(Hit me at http://www.ransbecca.be)
Just put the menu includes right under the <BODY> tag :
Code: Select all
<BODY>
<SCRIPT language=JavaScript src="/include/mmenu.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="/include/menu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="/include/incude2/menu_array.js" type=text/javascript></SCRIPT>
For the table menu use the Placemenu() function i.e. :
Code: Select all
<TD><script language=JavaScript>PlaceMenu("YourMenuHere")</script></TD>
http://milonic.com/menu/menusample.php?sampleid=21
Cheers,
Trytrix
(Hit me at http://www.ransbecca.be)
You're Never Fully Dressed Without A
Smile !
"From
Flanders, one of Europe's most dynamic regions" - Visit : http://www.toerismevlaanderen.be

"From

no body tags
Thanks for the reply. The place menu code works, sort of.
I'm working in an include file, so no body tags. And which ever menu i put immediately before the mmenu.js is the menu that shows up.
This displays the sidebar menu:
<SCRIPT language=JavaScript src="/include/sidebar_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="/include/mmenu.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="/include/menu_array.js" type=text/javascript></SCRIPT>
and moving mmenu.js to the bottom displays the other menu.
Thanks again.
I'm working in an include file, so no body tags. And which ever menu i put immediately before the mmenu.js is the menu that shows up.
This displays the sidebar menu:
<SCRIPT language=JavaScript src="/include/sidebar_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="/include/mmenu.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="/include/menu_array.js" type=text/javascript></SCRIPT>
and moving mmenu.js to the bottom displays the other menu.
Thanks again.
- trytrix
- Super Advanced
- Posts: 92
- Joined: Thu Sep 26, 2002 9:46 pm
- Location: Flanders / Belgium
- Contact:
Hi again,
This is probably due to the fact that you have not removed the line of code that sets up the menus in the second array.
Forgot to tell this, sorry...
What is happening is that your second menu is wiping out the first menu.
You need to remove the line of code that start with
menunum=0;menus=new Array();_d=docum . . . in the second array.
Greetings,
Trytrix
( Hit me at http://www.ransbecca.be )
This is probably due to the fact that you have not removed the line of code that sets up the menus in the second array.
Forgot to tell this, sorry...
What is happening is that your second menu is wiping out the first menu.
You need to remove the line of code that start with
menunum=0;menus=new Array();_d=docum . . . in the second array.
Greetings,
Trytrix
( Hit me at http://www.ransbecca.be )
You're Never Fully Dressed Without A
Smile !
"From
Flanders, one of Europe's most dynamic regions" - Visit : http://www.toerismevlaanderen.be

"From
