homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

DHTML Menu conflicting with onload animation
javascript guru needed for this one

 12:05 am on Oct 26, 2002 (gmt 0)

I've got a page <sorry, no URLs> that has an image flipping at the top and I also want to use HierMenus.

The onload="animate()" in the body tag appears to be not allowing my menuloader js file to load up as well. When I remove the onload from the body tag, the menu that I've just started works when you roll over academic programs.

Any thoughts Javascript gurus?

[edited by: tedster at 4:24 pm (utc) on Oct. 26, 2002]
[edit reason] sorry, no url's please [/edit]



 9:23 am on Oct 26, 2002 (gmt 0)

I can see two possiblities.

1 There is a conflict in function/aray names between the HM functions and the animate functions.

2 onload is preventing the document.write functions in the HM scripts from being exceuted.

I have seen a similar sort of behaviour before with menu scripts. I think if you set the timer in the inline javascript you will be okay


 1:32 pm on Oct 26, 2002 (gmt 0)

Thanks for the advice. Can you give me a brief sample of what I would do with the timer. I'm limited with my Javascript skills.


 1:49 pm on Oct 26, 2002 (gmt 0)

I have work a lot with HierMenus. You cannot use any onLoad events or it breaks. I always put the function call I needed at onLoad in the HierMenus initiallization functions.


 3:48 pm on Oct 26, 2002 (gmt 0)

Would the call go in the HM_Loader.js file?


 3:55 pm on Oct 26, 2002 (gmt 0)

Ah, I got it to work. I removed the onload function call and put it in the HM_ScriptDOM.js file. Thanks for everyone's help.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved