Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:07
bracket missing
Poster: Neo
Dated: Saturday October 4 2003 - 16:42:14 BST
If I put the menu in tables, i always get first the error message there was a ) missing.
There are no other SCRIPTS inside the Document.
I can only post the source code here because the page is not online yet.
So here are the relevant parts of the code:
Code:
<head>
<SCRIPT language=JavaScript src="milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>");
</script>
<SCRIPT language=JavaScript src="menu_data.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>");
</script>
<SCRIPT language=JavaScript src="menu_data.js" type=text/javascript></SCRIPT>
...
Code:
<td class="trenner" align="left"><script>
with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=10;
left=10;
alwaysvisible=1;
orientation="horizontal";
position="relative";
aI("text=Ergebnisse;url=index.html;status=Back To Home Page;");
aI("text=Dienstlesitung;showmenu=Dienstleistung;");
aI("text=Produktion;showmenu=Produktion;");
aI("text=Fazit;url=ergebnisse/fazit.html;");
aI("text=Zusammenfassung;showmenu=Zusammnfassung;");
}
drawMenus();
</script></td>
[/code]
with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=10;
left=10;
alwaysvisible=1;
orientation="horizontal";
position="relative";
aI("text=Ergebnisse;url=index.html;status=Back To Home Page;");
aI("text=Dienstlesitung;showmenu=Dienstleistung;");
aI("text=Produktion;showmenu=Produktion;");
aI("text=Fazit;url=ergebnisse/fazit.html;");
aI("text=Zusammenfassung;showmenu=Zusammnfassung;");
}
drawMenus();
</script></td>
Poster: John
Dated: Saturday October 4 2003 - 16:56:21 BST
I don't see any problems with what you posted, but I also don't see the menuStyle part of the code or the code for the new menus you are calling.
While what you did is per the examples, many of us have had better luck with the following...
1. Put everything back into the menu_data.js the way it was originally (with your menu definitions, of course).
2. In the <td> where you want the menu, have only the following call...
Code:
<SCRIPT language=JavaScript src="menu_data.js" type=text/javascript></SCRIPT>
Just move it from where it is now.
If this doesn't work, let us see the entire menu_data.js file. I'm assuming you haven't touched anything in the other 3 code files.
Poster: John
Dated: Saturday October 4 2003 - 17:55:02 BST
What did you do to fix it (helps others to know)?
Poster: Neo
Dated: Saturday October 4 2003 - 18:11:25 BST
I just did what you said:
Quote:
1. Put everything back into the menu_data.js the way it was originally (with your menu definitions, of course).
2. In the <td> where you want the menu, have only the following call...
Code:
<SCRIPT language=JavaScript src="menu_data.js" type=text/javascript></SCRIPT>
2. In the <td> where you want the menu, have only the following call...
Code:
<SCRIPT language=JavaScript src="menu_data.js" type=text/javascript></SCRIPT>