Recent Questions
Q: I am investigating why a few things have not been working for sometime on our site.
This is the error I get in the console "The requested URL /js/menudir/dtree_ss.js was not found on this server."
I update the files awhile back and removed the dtress_ss.js as I was instructed, why is it that it that the script is still trying to reference this file?
What do I have to do to remove this error from java script tree menu?
When I updated the files a few months back the new files seem to fix a problem we were having with Chrome, but broke the drop down menu in Explorer. I have yet to resolve this. The drop down menu appears to work fine in all other browsers.
The nav menu not working in IE7 (not sure about IE6 or IE8) is a bigger issue than the error in the console, but thought maybe they were related. From our analytics, the strong majority of our customers are using IE7.
A: 1) dtree_ss.js
The current version of Deluxe Tree doesn't have dtree_ss.js at all. You should deletethe following code from your page:
<script language="JavaScript1.2" src="/js/menudir/dtree_ss.js" type="text/javascript"></script>
In the body tag you should write:
<td >
<script src="/js/menudir/data-tree.js" type="text/javascript"></script>
</td>
In the HEAD tag you should write:
<!-- Deluxe Tree -->
<noscript><a href="http://deluxe-tree.com">java script tree menu by Deluxe-Tree.com</a></noscript>
<script type="text/javascript"> var tWorkPath="/js/menudir/";</script>
<script type="text/javascript" src="/js/menudir/dtree.js"></script>
<!-- (c) 2009, http://deluxe-tree.com -->
2) Error in IE7.
You're using new engine files and old data files for the menus now.
I'm sending you the example.
Use engine files for Deluxe Menu and Deluxe Tree and data files (data.js and data-tree.js)from it.
Q: I still am unable to make content show for each menu with dhtml tab.
I can make it open a new webpage, but that isnt what I want.
What I want is when the visitor clicks a tab, then content for that tab shows, on the same page, and the tab menu still there.
A: See in Deluxe Tabs there are two modes:
1. var tabMode=0;
You can create only one level of tabs and assign Object Id's of theDIV's to show when you click on the tab.
["XP Tab 1","content1", "", "", "", "", "", "", "", ],
["XP Tab 2","content2", "", "", "", "", "", "", "", ],
["XP Tab 3","content3", "", "", "", "", "", "", "", ],
["XP Tab 4","content4", "", "", "", "", "", "", "", ],
2. var tabMode=1;
You can assign only links in this mode.
You should create top level items with subitems.
["XP Tab 1","", "", "", "", "", "", "", "", ],
["|Link 1_1","http://deluxe-tabs.com", "", "", "", "", "0", "", "", ],
["|Link 1_2","testlink.htm", "", "", "", "", "0", "", "", ],
["|Link 1_3","testlink.htm", "", "", "", "", "0", "", "", ],
["|Link 1_4","testlink.htm", "", "", "", "", "0", "", "", ],
["|Link 1_5","testlink.htm", "", "", "", "", "0", "", "", ],
["XP Tab 2","", "", "", "", "", "", "", "", ],
["|Link 2_1","testlink.htm", "", "", "", "", "0", "", "", ],
["|Link 2_2","testlink.htm", "", "", "", "", "0", "", "", ],
["|Link 2_3","testlink.htm", "", "", "", "", "0", "", "", ],
["|Link 2_4","testlink.htm", "", "", "", "", "0", "", "", ],
["|Link 2_5","testlink.htm", "", "", "", "", "0", "", "", ],
["XP Tab 3","", "", "", "", "", "", "", "", ],
["|Link 3_1","testlink.htm", "", "", "", "", "0", "", "", ],
["|Link 3_2","testlink.htm", "", "", "", "", "0", "", "", ],
["|Link 3_3","testlink.htm", "", "", "", "", "0", "", "", ],
["|Link 3_4","testlink.htm", "", "", "", "", "0", "", "", ],
["|Link 3_5","testlink.htm", "", "", "", "", "0", "", "", ],
You can use Object ID as well as Link in both modes. Use the following prefixes within menu with dhtml item's link field:"object:" - means that there is object id after it;
"link:" - means that there is a link after it.
"javascript:" - means that there is a javascript code after it, for example:javascript:alert(\'Hello!\')
So, you should write for example:
["|Link 1_1","object:Content1_1", "", "", "", "", "0", "", "", ],
Q: I have noticed an issue with the menu. Dhtml pop up menu does not drop down over the frame if a pdf is being displayed. It does something weird to the browser like shortens the main frame and displays above the menu.
A: Notice that you should add your pdf inside IFRAME tag.
Try to set the following parameter to overlap .pdf files:
var useIFRAME=1;
Q: How can I use Danish characters in my menu using javascript? In normal html you would use something like this:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
What should I do in Deluxe Menu?
A: You should turn on "Tools/Use utf8 encode" property.In that case your data file will be saved in UTF-8 encode. So, youshould set UTF-8 encode on your page too
<meta http-equiv="Content-Type" content="text/html"charset="UTF-8">
If you don't want to use UTF-8 encode on your page you should turn off"Tools/Use utf8 encode" property, save your data file and manuallychange your letters in any text editor.
You can also replace your letters with special sets, for example
É - Capital E, acute accent
var menuItems = [
["É....","testlink.html", "", "", "", "", "", "", "", ],