Problems with the menu and other Javascripts
-
- Beginner
- Posts: 2
- Joined: Wed Sep 04, 2002 10:58 am
- Location: Wales
- Contact:
Problems with the menu and other Javascripts
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
IT Officer
Groundwork Wales
Web: http://www.groundworkwales.org.uk
Green Dragon Environmental Standard: http://www.greendragonwales.com
-
- Beginner
- Posts: 2
- Joined: Wed Sep 04, 2002 10:58 am
- Location: Wales
- Contact:
menu and Javascript
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
IT Officer
Groundwork Wales
Web: http://www.groundworkwales.org.uk
Green Dragon Environmental Standard: http://www.greendragonwales.com
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.
<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.
Dave Hergert
Software Engineer
"Helping to make the menu better, one at a time."
Software Engineer
"Helping to make the menu better, one at a time."