We have status bar errors that say: "Done, but with errors on page" in pop up menu script...
Return to Recent Questions
Q:
Hello. We need some tech support regarding our pop up menu script.
All of our pages with the pop up menu script code on them are
suddenly giving status bar errors that say: "Done, but with errors on page"
The error dialog says:
Line: 2
Char: 1
Error: Syntax error
Code: 0
On pages that do not have the pop up menu script at all, we're not getting the error.
A:
Now you have such code:
<SCRIPT LANGUAGE="" type="text/javascript">
<!--
var dmWorkPath = "menu/";
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</SCRIPT>
So, your pop up menu script cannot find var dmWorkPath = "menu/"; parameter on your
page.
Try to write your code in the following way:
<SCRIPT type="text/javascript">var dmWorkPath = "menu/";</script>
<SCRIPT LANGUAGE="" type="text/javascript" src="menu/dmenu.js"></SCRIPT>
<!-- (c) 2008, http://dhtml-menu.com -->
Return to Recent Questions
Related:
- March 12, 2009 - I don't understand, how can change place of the icon in button context menu...
- March 13, 2009 - Now we are having the "Incorrect Copyright" on our css menu maker...
- March 14, 2009 - I am having a problem with css styles in the navigation menu bar.
- March 15, 2009 - I have problems with transitional effects in Firefox in the dhtml menu navigation...
- March 16, 2009 - Is there any way to keep a javascript mouse position lit up when going to another page?
- March 16, 2009 - How can I change item width in the Vista templates in the drop down horizontal menu?
- March 18, 2009 - I am getting a Javascript error, when accessing any of the menu dhtml.
- March 19, 2009 - How to get the dynamic html menu to highlight and stay on the page you're viewing?
- March 19, 2009 - I need that the click menu javascript loads pages into an iFrame.
- March 20, 2009 - Links don't work in the html form drop down menu. How can I correct this?
- March 21, 2009 - How can we increase the width of the vista style buttons of navigation web part?
|