Welcome to WebmasterWorld Guest from 54.146.239.96

Forum Moderators: open

Message Too Old, No Replies

DHTML Menu conflicting with onload animation

javascript guru needed for this one

     

kevinj

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

10+ Year Member



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]

IanTurner

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

WebmasterWorld Administrator ianturner is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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

kevinj

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

10+ Year Member



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.

korkus2000

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

WebmasterWorld Senior Member korkus2000 is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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.

kevinj

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

10+ Year Member



Would the call go in the HM_Loader.js file?

kevinj

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

10+ Year Member



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.