window.onload problem with milonic

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
cw
Beginner
Beginner
Posts: 2
Joined: Mon May 16, 2005 11:13 pm

window.onload problem with milonic

Post by cw »

I'm using frames and my menu is in two parts (frames_header_array.js and frames_body_array.js).

In one of my pages I need to execute some javascript when the page loads. Using onLoad=... in the <body> tag doesn't work. So I tried using window.onload=myFunctionName within a <script ...> tag. This works fine, but it breaks the Milonic menu which stops working.

Is there any way, using frames, to keep the Milonic menu working AND execute some javascript when the page loads?

Thanks for any help.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi CW,

Given that you are saying frames_header_array.js I am assuming this is version 3 of the menu. If so that version is no longer supported, it has been out of development for a long time and most of us do not have any knowledge of the program. Is that the case, that this is version 3?

There is a version 5 frames sample you could try. The version 5 sample is here. It has in depth explanations.

Ruth
cw
Beginner
Beginner
Posts: 2
Joined: Mon May 16, 2005 11:13 pm

Thank you for suggestion

Post by cw »

Thank you very much for the advice, Ruth. Version 5 works much better!
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

You're very welcome. I'm glad you like it. I think it's great. And the advantage is that it is being developed constantly to cover all the new things being created on the web.

Ruth
Post Reply