Recent Questions Java Tree Menu Ie8Q: 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
In the body tag you should write:
In the HEAD tag you should write:
<noscript><a href="http://deluxe-tree.com">java script tree menu by Deluxe-Tree.com</a></noscript>
<!-- (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.
Q: Looks like my submenu text is too long for the background.
How can I ensure the background is the same length as the longest word in my java edit menu submenu list.
A: Try to change the following parameter:
A: Unfortunately, you can't assign onmouseover/onClick/onContextMenu event to each item.
However, you can achieve this by using standard html objects within items, for example:
var menuitems = [
["<div onContextMenu='your_code_here'>item text</div>", ""]
Q: However, when I place it inside a CSS-defined div element (for absolute page placement) the submenu's all drop down a couple hundred pixels.
A: See, the problem is that the script can't get css properties of the object if they are described in separate .css block (or file).In other words, you can't get the value of "POSITION: absolute" attribute of the object if the object doesn't have this property within inline style (style="POSITION:absolute;"). To get the value you should move .css style into style="" attribute.
Please, try to add your
css file -> inline css, for example:
You should add style="POSITION: absolute;"
So, you'll have:
<DIV id="menu" style="POSITION: absolute;">