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

Swap Text overflow error

Poster: smersch
Dated: Tuesday January 3 2006 - 2:38:10 GMT

I copied the swap text code and it isn't working ('Point at me' button):

When I do a local preview out of Dreamweaver, I get

"Stack overflow at line: 17" shortly followed by "Out of memory at line: 17"

Help would be much appreciated...

Poster: Ruth
Dated: Tuesday January 3 2006 - 6:32:34 GMT


I'm getting 3 errors on the page.

Error: ns4 is not defined
Source File:
Line: 3

    if(ns4)_d.write("<scr"+"ipt language=JavaScript src=js.css/mmenuns4.js><\/scr"+"ipt>");
That means it can't find the mmenuns4.js file.

Error: syntax error
Source File:
Line: 26
Source Code:  }

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;-
That } at the bottom is somehow wrong.

Error: syntax error
Source File:
Line: 125
Source Code:
<span class="fontmedium">
<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 language=JavaScript src="menu_data.js" type=text/javascript></SCRIPT>
<script language="javascript">

I think the closing span and script are out of order.

The function is working on the demo site. That function will not work with your menu because you are using RC26 from 2003. That wasn't even the final release of the menu, it was beta. You are hundreds and hundreds of levels down. The menu didn't have the programming to do that function back then.