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:15
Unable to activate sample menu
Poster: BrendanChandler
Dated: Wednesday October 15 2008 - 12:23:35 BST
I created a new web page containing only the code shown below
I downloaded the 4 *.js files to the same directory as the webpage.
I opened the page in I.E.7 and the blank page containing the icon for the menu is displayed plus the following line <script language=JavaScript src=mmenudom.js>
This is the code contained in the test page:
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Milonic Menu</title>
<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>
</head>
<body>
<p><img border="0" src="Miloni1.gif" width="16" height="16"></p>
</body>
</html>
Re: Unable to activate sample menu
Poster: Andy
Dated: Wednesday October 15 2008 - 12:36:13 BST
Sounds like a file location problem.
Are you sure you uploaded the files to the same directory as the file you are loading?
Do you have a URL that we can see?
-- Andy
Re: Unable to activate sample menu
Poster: BrendanChandler
Dated: Wednesday October 15 2008 - 15:20:53 BST
Thanks for reply,
I have checked and all 4 .js files are in the same folder as the webpage, both on my machine and on the web server. I would have posted a copy image of the folder contents but could not paste an image of the screen here, so I added it to the web page.
http://www.greatgaygatherings.co.uk/milonicmenutest.htm
Brendan
Re: Unable to activate sample menu
Poster: John
Dated: Wednesday October 15 2008 - 15:25:36 BST
Your call to mmenudom.js is invalid (that's why that line shows up on the page you posted). Use the new calls as provided in the download...
Code:
<script type="text/javascript" src="milonic_src.js"></script>
<noscript><a href="http://www.milonic.com/">JavaScript DHTML Menu Powered by Milonic</a></noscript>
<script type="text/javascript" src="mmenudom.js"></script>
<script type="text/javascript" src="menu_data.js"></script>
<noscript><a href="http://www.milonic.com/">JavaScript DHTML Menu Powered by Milonic</a></noscript>
<script type="text/javascript" src="mmenudom.js"></script>
<script type="text/javascript" src="menu_data.js"></script>
This assumes you are not supporting NS4. If you are (why?), just add a line for that.
Re: Unable to activate sample menu
Poster: Andy
Dated: Wednesday October 15 2008 - 15:26:41 BST
There's a syntax error in your html on line 12:
Code:
else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>");</script>
Should be:
Code:
else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>");</script>
Here's what it should look like:
Code:
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Milonic Menu</title>
<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>
</head>
<body>
<p><img border="0" src="Miloni1.gif" width="16" height="16"></p>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr>
<td width="50%"><img border="0" src="folder.gif" width="600" height="400"></td>
<td width="50%"> </td>
</tr>
<tr>
<td width="50%"> </td>
<td width="50%"> </td>
</tr>
</table>
</body>
</html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Milonic Menu</title>
<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>
</head>
<body>
<p><img border="0" src="Miloni1.gif" width="16" height="16"></p>
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
<tr>
<td width="50%"><img border="0" src="folder.gif" width="600" height="400"></td>
<td width="50%"> </td>
</tr>
<tr>
<td width="50%"> </td>
<td width="50%"> </td>
</tr>
</table>
</body>
</html>
Let me know if this helps or not.
Cheers,
Andy
Re: Unable to activate sample menu
Poster: John
Dated: Wednesday October 15 2008 - 15:28:41 BST
Beat ya by 1 minute, boss!

Re: Unable to activate sample menu
Poster: BrendanChandler
Dated: Wednesday October 15 2008 - 16:00:31 BST
Yes, that works, thank you.
Problem caused by Post/Paste with a foreign keyboard which causes system to substitute characters.
Now I try editing, so watch this space.
Thanks
Brendan