really interesting...

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
gjensen
Advanced
Advanced
Posts: 18
Joined: Fri Mar 04, 2005 2:38 pm

really interesting...

Post by gjensen »

I took the page source of the webpage of the broken menu, and created a test file... loaded to the server ....and it worked !!! So there is a problem of when the body code (of the included JS) is NOT parsed by the browser after the header code...in that sequence. If it does not parse in that sequence, it will not work. Somehow the JS code in the body is being parsed before the code in the head.
Understand? Think there's a way to fix it?

http://www.eaglepeople.us
George
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

You have some other problems on the page, but the reason for the error and the menu not showing is in the url=

Code: Select all

<? echo "/edit.php" ;?>;
The program is expecting a ) after the semi_colon just before the ? You need to escape that ? The code should be

Code: Select all

aI("text=sample text;url=<? echo '/edit.php' `;?>;");
I downloaded the page to get at the source code. Could you say what it is you are trying to do? When I look at the page, it seems you have the subbmenu samples set to always visible and placed in a div with position="relative", but then in the menu_data.php file you have the main menu by itself and set at top=180. First, you shouldn't put the menu in a div, it can cause it to break or become non-functioning in some browsers.

The other thing is you've split the 3 program files, putting milonic_src in the head and the other two in the body, you should put the calls together, best place is the first thing after the body tag.

If you could tell us how you want the menu to display we can help with that.

Ruth
Post Reply