php and 2 menus per page

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
dor1979
Beginner
Beginner
Posts: 1
Joined: Sun Jul 20, 2003 6:18 pm
Location: uk

php and 2 menus per page

Post by dor1979 »

hi, i was wondering if anyone could help me. At the moment i have a php code that calls a header.inc file. In this file i have
<SCRIPT language=JavaScript src="menu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="mmenu.js" type=text/javascript></SCRIPT>
This brings up the menu fine. BUT i want to a second menu to appear on left hand side of my screen. So i call a file left.inc that has
<SCRIPT language=JavaScript src="menu_array2.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="mmenu2.js" type=text/javascript></SCRIPT>
in it. When i run it i get a "stack overflow" error message. CAN anyone help,
ps i am new to this game
jpierce
Beginner
Beginner
Posts: 1
Joined: Thu Jul 24, 2003 2:17 pm
Location: Minneapolis MN

2 menus per page

Post by jpierce »

dor1979 - Did you figure out how to get 2 menus at the same time yet?
If not this might help. First, I don't think you need the mmenu2.js file.
In your header.inc type ...
<SCRIPT language=JavaScript src="menu_array2.js" type=text/javascript></SCRIPT>

In your menu_array2.js file delete or rem out the line that starts with
menunum=0; .....

That should do it. Let me know if this helps.
Twill
Advanced
Advanced
Posts: 16
Joined: Tue Jul 08, 2003 6:47 am

Post by Twill »

I wouldnt know how to get the PHP thing working, but I have 4 menu arrays running on my site...let me know if I can help with the order of things :)
Post Reply