Problems with the menu and other Javascripts

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
Dennis Jones
Beginner
Beginner
Posts: 2
Joined: Wed Sep 04, 2002 10:58 am
Location: Wales
Contact:

Problems with the menu and other Javascripts

Post by Dennis Jones »

:cry:

Hi, at the moment I have the Milonic menu working great on my website. The problem comes when I want other JavaScripts to work on the same page.

The JavaScript I want to work is a news scroller. This news script works fine when used on its own but when combined with the menu it ceases to work.

As soon as I include the javascript files this is when the news scoller stops working:

<SCRIPT language=JavaScript src="sidemenu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="mmenu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="mmenu.js" type=text/javascript></SCRIPT>

I have included both the news scroll not working correctly and the page which does work.


Newsscroller does not work
http://www.groundworkwales.org.uk/newss ... thmenu.htm


Newsscroller does work
http://www.groundworkwales.org.uk/newsscroller.htm

I would be grateful if someone can help me get the menu and the news scroll to work on the same page.

Thank you.
Dennis Jones B.Sc.
IT Officer
Groundwork Wales

Web: http://www.groundworkwales.org.uk

Green Dragon Environmental Standard: http://www.greendragonwales.com
Kramer
Beginner
Beginner
Posts: 3
Joined: Thu Sep 05, 2002 2:46 am

Post by Kramer »

I'm having this problem as well. When I add some scripts, the menu stops working. With others, the added script fails and the menu continues to work. I have yet to get the menu to work with another script. Any help appreciated. I'll try to post an example soon. Thanks.
User avatar
Scott
Advanced
Advanced
Posts: 26
Joined: Thu Aug 08, 2002 10:03 am
Location: U.K.

Post by Scott »

Tried to have a look a Dennis's non working example and the page failed.
Dennis Jones
Beginner
Beginner
Posts: 2
Joined: Wed Sep 04, 2002 10:58 am
Location: Wales
Contact:

menu and Javascript

Post by Dennis Jones »

:?

I managed to get it to work but I had to move most of my code around so it runs in a different order to what it originally did.


My advice is to play with the order of the codes. e.g. my menu code does not work if it sits in between the head tags. Also I've had to delcare my news scroll code before my menu code otherwise it won't show.

Have fun playing.


See it here:

http://www.groundworkwales.org.uk/

The news scroll should be on the right hand side of the page unless your viewing it with Netscape and then it doesn't even appear.
Dennis Jones B.Sc.
IT Officer
Groundwork Wales

Web: http://www.groundworkwales.org.uk

Green Dragon Environmental Standard: http://www.greendragonwales.com
User avatar
Scott
Advanced
Advanced
Posts: 26
Joined: Thu Aug 08, 2002 10:03 am
Location: U.K.

Post by Scott »

Netscape's great like that ;)
The lobsters are coming!!!
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

I've tried getting my menu to work with a love digital clock. They way I worked it was I just changed the order in which I listed my scripts. For example, my script was...
<script src=menu_array.js></script>
<script src=clock.js></script>
<script src mmenu.js></script>

and to make it work, I just switched the ordering of the scripts until it worked. The only rule here is you have to declare menu_array before mmenu, obviously. :idea:
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Having the same problem here with some, but not all, combination pages. On those that fail I have tried changing the order and placement of the calls, but so far nothing has worked.
John
Post Reply