Recent Questions Jquery Osx Tree
Q: We've been using JavaScript Tree Menu for a couple of years now and we're very pleased with it. Recently, we switched to a layout heavy on CSS, and when we insert the javascript menu code into an absolutely-positioned div, the menu appears where it should, but the sub-menus drop down off to the side in both Firefox and IE. I've tried adjusting the x-offsets in the configuration file with negative values to bring them closer to the top-level menu item, but this doesn't seem to do the trick completely.
I also went through a number of sample questions in the support section of the JavaScript Tree Menu site, but I haven't been able to find any sort of resolution.
If you have any suggestions, I'd be very appreciative.
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; TOP: 0px"
to the
<div id=div_name>
So, you'll have:
<DIV id=div_name style="POSITION: absolute; TOP: 0px">aaspot_US~.Hration...M&Project Tool Configuration.Try that.
Q: I am evaluating your JavaScript Tree Menu. I see there are many different template designs. Is it possible to create a custom image to be used as the base image for the main javascript pull down menu? If, so how is it done? Or is it mandatory to use the templates available? I would like to have a larger image for the main javascript pull down menu. Most templates have very small and thin images.
A: No, it is not mandatory to use templates.
You can use your own images. Try to use the following javascript pull down menu parameters:
var menuBackImage="";
var menuBackRepeat="repeat";
var itemBackImage=["",""];
And Individual Item Style and Individual Submenu Styles.
Q: I have built a menu which will sit in a frame on the left hand side of the page.
When sub menus are selected they display in the same frame.
How do I make them appear over the adjoining frame?
A: Please, check you dm_init function. You should write it so:
dm_initFrame("frmSet", 1, 2, 1);
More info about cross-frame mode you can find here (see additional info):
http://deluxe-menu.com/cross-frame-mode-sample.html
See cross-frame vertical orientation Sample (left-to-right) here:
http://deluxe-menu.com/cross-frame-mode-sample.html
Q: I found the problem with de JavaScript Tree Menus:
When the menu is inside the <DIV> </DIV> tags, the menu is shown, but does not scroll.
A: See, you use absolute position for this <div>
<div STYLE="position:absolute;top:151px; left:0px">
But you can use absolute position for the menu. Your menu will scrollin this case.
For example, you should set:
var absolutePos=1;
var posX="0";
var posY="151px";
And install your menu
<div>
<script type="text/javascript" src="data.js"></script>
</div>
Or, write:
<noscript><a href="http://deluxe-menu.com">Javascript Menu by Deluxe-Menu.com</a></noscript>
<script type="text/javascript"> var dmWorkPath = "/";</script>
<script type="text/javascript" src="dmenu.js"></script>
<script type="text/javascript" src="data.js"></script>