Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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:27

Two scripts on the page menu is not working


Poster: mgjr
Dated: Wednesday November 2 2005 - 14:02:00 GMT

Whenever I put 2 javascript on a page, the menu stops working. ONly the last insert of the menu work.

Both are using <DIV>.

Please help.


Poster: Ruth
Dated: Wednesday November 2 2005 - 19:42:39 GMT

You need to give us a link to the page with the two scripts so we can see what's going on.

Ruth

Can I?


Poster: mgjr
Dated: Wednesday November 2 2005 - 22:18:41 GMT

Can I pm you as I don't want to paste URL here.

Thanks

I can be reached at mgattereau __at__ hotmail.com


Poster: Ruth
Dated: Wednesday November 2 2005 - 23:54:57 GMT

Hi,

PM is disabled here. You could post the link, without making it a link..... i.e. my site would be poems2u - dot - com then as soon as I have it I would edit it out. I check the forum about every hour up until about 10px eastern, if you want to do that. Or, if you prefer you can use the code tags and post the page html, the menu_data.js file and any css that you might have. Though it would be easier with a page.

Ruth

ok


Poster: mgjr
Dated: Thursday November 3 2005 - 0:10:55 GMT

got it, removed the info. As soon as I work it out I'll post back.

Ruth


Poster: Ruth
Dated: Thursday November 3 2005 - 1:29:25 GMT

Hi,

The html on that page is all messed up. You have two instances of calling the milonic_src.js file, one in between the closing head tag and before the opening body tag. THere is also a style code and call for the style sheet between those two tags. I'm going to post here what the top part should be up to and including the milonic files.

Code:
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" src="popup.js"></script>
<link href="commonstyle.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {
   color: #FFFFFF;
   font-weight: bold;
}
-->
</style>
</head>


<body topmargin="0" leftmargin="0">
<script type="text/javascript" src="milonic_src.js"></script>   
   <div class=milonic><a href="http://www.milonic.com/">JavaScript Menu, DHTML Menu Powered By Milonic</a></div>
   

  <script   type="text/javascript">
   if(ns4)_d.write("<scr"+"ipt type=text/javascript src=mmenuns4.js><\/scr"+"ipt>");      
     else _d.write("<scr"+"ipt type=text/javascript src=mmenudom.js><\/scr"+"ipt>");
   </script>
  <script type="text/javascript" src="menu_data.js"></script>

 
<div align="left">
  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="791" id="AutoNumber1">
    <tr>
Then down later in the page, you need to remove the call for the milonic files. There's no reason for you to have them way down the page in a div. You have the menu positioned absolutely using top=245; and left=14; so just put the call for the menu files the first thing after the opening body tag.

You need to update your menu files to version 5.734 Make sure you put your existing files someplace for backup, don't overwrite them in case there's something that doesn't work you can go back to the older version until the problem is fixed.

I'm not finding any thing that's not working. Which browser causes this?

Ruth


Poster: mgjr
Dated: Thursday November 3 2005 - 3:02:08 GMT

Both Internet Explorer and Firefox


Poster: Ruth
Dated: Thursday November 3 2005 - 5:14:56 GMT

Hi,

Well, since it is working for me on the desktop in IE and Firefox after I made the corrections to the html coding, I think that might be the problem.

Ruth


Poster: mgjr
Dated: Thursday November 3 2005 - 12:04:57 GMT

You think I need to upgrade?


Poster: John
Dated: Thursday November 3 2005 - 14:10:37 GMT

mgjr wrote:
You think I need to upgrade?

Absolutely! Support can only be provided for the current version of the menu.