Unable to activate sample menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
BrendanChandler
Beginner
Beginner
Posts: 7
Joined: Wed Oct 15, 2008 12:00 pm

Unable to activate sample menu

Post by BrendanChandler »

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>
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Re: Unable to activate sample menu

Post by Andy »

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
BrendanChandler
Beginner
Beginner
Posts: 7
Joined: Wed Oct 15, 2008 12:00 pm

Re: Unable to activate sample menu

Post by BrendanChandler »

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
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: Unable to activate sample menu

Post by John »

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: Select all

<script type="text/javascript" src="milonic_src.js"></script>
<noscript><a href="https://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.
John
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Re: Unable to activate sample menu

Post by Andy »

There's a syntax error in your html on line 12:

Code: Select all

else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>");</script>
Should be:

Code: Select all

else _d.write("<scr"+"ipt language=JavaScript src=mmenudom.js><\/scr"+"ipt>");</script>
Here's what it should look like:

Code: Select all

<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%">&nbsp;</td>
  </tr>
  <tr>
    <td width="50%">&nbsp;</td>
    <td width="50%">&nbsp;</td>
  </tr>
</table>

</body>

</html>
Let me know if this helps or not.

Cheers,
Andy
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: Unable to activate sample menu

Post by John »

Beat ya by 1 minute, boss! :D
John
BrendanChandler
Beginner
Beginner
Posts: 7
Joined: Wed Oct 15, 2008 12:00 pm

Re: Unable to activate sample menu

Post by BrendanChandler »

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
Post Reply