Milonic Menu + other JavaScripts

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
TinoG
Beginner
Beginner
Posts: 5
Joined: Sun Aug 03, 2003 1:24 am

Milonic Menu + other JavaScripts

Post by TinoG »

hello,

i am testing the to add a ilayer javascript in a html site with the dhtml milonic menu. but only the ilayer javascript is working. if i remove the ilayer java the menu works fine.

http://www.cat-design.com/test/test.htm

the ilayer works with a

window.onload=getcontent_height

the milonic menu works with a window.onload too.
i know that both order can be put in the body tag. like:

<body onload="dothis();dothat()">

but it dosent work, cause the onload from the menu is in the mmenu.js file.

can anyone help me?

tino
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

Here's what I would try...
Look in the source file where its setting functions to be called from the onLoad event. Remove them, but remember what its doing. Then in your onLoad attribute of your body tag, paste what you need done AND what the menu needs to be done. It doesn't matter where you specify what should be called from the onLoad event, since it always gets called after the page loads. Whats happenin in your case is the onLoad event is getting overwritten by the menu, or by you, whomever does it last. It might be easiest to create a function that gets called from the onLoad event. And INSIDE of that function you so all that you need to do, plus what the menu needs.
Best of Luck!
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Post Reply