Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:33
Menu works on page 1 only, not on rest of site
Poster: jmsbc
Dated: Saturday July 6 2002 - 1:28:24 BST
I'm pleased that I was easily able to set up the menu and got it to work right away, since I am not an expert at html.
However, I was exceedingly disappointed when I copied the codes to my succeeding pages in the site (there are 10, I think), and found it didn't work on them. I know it's there, 'cos I see a little line up in the left hand corner of the pages.
Could someone please give me a clue as to why this isn't working? Is there some extra code I should add on the succeeding pages?
Please be gentle . . . as I say, I'm not an expert!
Many thanks.
juls
Poster: Andy
Dated: Monday July 8 2002 - 12:15:14 BST
It could be any number of reasons why your menu won't work.
Could you let us know what the URL of your site is so that i can take a look.
Cheers
Andy
Poster: Maze
Dated: Wednesday July 17 2002 - 16:21:14 BST
If the other pages are inside directory folders you'll need to adjust the pathway to the menu script files accordingly.
For example, if your home page (the one that works) is in the same directory/folder as the menu files, then your script call would look like this:
<SCRIPT language=JavaScript src="menu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="mmenu.js" type=text/javascript></SCRIPT>
But if your other pages are inside folders and are trying to call the menu scripts from within those folders, then they need to be coded like this:
<SCRIPT language=JavaScript src="../menu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="../mmenu.js" type=text/javascript></SCRIPT>
Hope that helps