Two menus using "include" command

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
inhymndave
Beginner
Beginner
Posts: 3
Joined: Thu Aug 07, 2003 2:38 am
Contact:

Two menus using "include" command

Post by inhymndave »

Hi!

I just downloaded the menu this week and have it working very well. I have two problems, however.

1.) I have the menu working in a horizontal mode and nested in a centered table using the PlaceMenu command. I have my page margins set at 23 to give my pages a nice offset look, but the menu is causing a green line (The background color of the menu) to run down the left edge of the page at about 21 pixels from the left edge of the screen. How can I correct that?

2.) The above menu and an identical but vertical menu are on separate pages, but I use the "Include" command to bring them as my header and left column to all of my pages. I use Front Page and this has proven to be much more stable than the shared borders. The problem is that I get the "stack overflow" message. I am only using one mmenu.js and I tried eliminating the first line of script from each of the _array.js files. I still get the script overflow message but one of the scripts will run ok.

Thanks in advance for any help you can give.

InHymnDave :D
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

For best help always provide a URL so we can see what's happening and also look at your code.
John
inhymndave
Beginner
Beginner
Posts: 3
Joined: Thu Aug 07, 2003 2:38 am
Contact:

URLS for the work!

Post by inhymndave »

Thanks jgillett!

I should have done that before.

The Url for the menu in the left column is:
http://www.yorkbaptists.org/includes/menu2.htm

For the header:
http://www.yorkbaptists.org/includes/header2.htm

They will be placed on the page using the includes command as in:
http://www.yorkbaptists.org/
except that I have substituted two other menus for now.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Couple problems right away...

If at all possible, GET RID OF FRONT PAGE :!: OK, I feel better now.

It does, very quietly and behind your back, terrible things to your code. For instance...

Code: Select all

<body  topmargin=" leftmargin=" bgcolor="#002B00" 23" 23">
That is not valid markup for this tag. Guess who did it...

Also...

Code: Select all

<!--webbot bot="HTMLMarkup" startspan --><script language=javascript>PlaceMenu("Mainmenu2") </script> <!--webbot bot="HTMLMarkup" endspan -->
Why in the world do you need a bot in the way just to place a script call (not "you" as such - FP)? Trust me, it takes over.

Just a suggestion, but try not to use the charset=windows-1252 meta. That's not the only gang out here. A better one is...

Code: Select all

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
It's more generic. Won't change your page, other than more folks will be able to look at it.

Other than the above mentioned items, is there a problem with the side menu? It appears to work OK (and FP hasn't messed up your <body> yet!).

Try cleaning up that header page in something other than you-know-what if you can. Then we'll go from there.
John
inhymndave
Beginner
Beginner
Posts: 3
Joined: Thu Aug 07, 2003 2:38 am
Contact:

Still have the problem!

Post by inhymndave »

I fixed the things you said. I am hopelessly lost, however, without FP.

Yes, the menu2.htm works fine and so does the header except for the green stripe. The problem comes when I call both these pages up as includes on another page. I tried this on a page where I had no other javascript and I still get the stack overflow message, so I am sure that they are not interacting with anything else. I could live with the green stripe, but I don't want to.
Post Reply