Recent Questions Javascript Tree Widget Folder
Q: Sometime the first tab in css tab menu stay selected etc..
A: You should check the following parameter
var bselectedItem=1;
This parameter sets the selected tab.
You can set it
var bselectedItem=-2;
Q: I have 2 questions about this script I would like to find out before purchasing:
1. Does it support 3rd and 4th level java script navigation menu?
2. How customizable is it style-wise, meaning, I have images I want used for the top level navigation, and background images for the rest. Any way I can achieve this?
A: 1) Yes, you can add as many levels in the java script navigation menu as you want.
2) Actually you can create any java script navigation menu with JavaScript Tree Menu. You can use Individual Styles tocreate your menu. For example:
var itemStyles = [
["itemWidth=92px","itemHeight=21px","itemBorderWidth=0","fontStyle=normal 11px Tahoma", "fontColor=#FFFFFF,#FFFFFF","itemBackImage=data-vista-03.files/btn_magentablack.gif,data-vista-03.files/btn_magenta.gif"],
];
var menuStyles = [
["menuBackColor=transparent","menuBackImage=back.gif","menuBorderWidth=0", "itemSpacing=1","itemPadding=0px 5px 0px 5px"],
];
Please, try the trial version and check menu parameters. Use DeluxeTuner to create your menu.
Q: I need to use an iframe within the popup window.
Is there any way I can close the dhtml window from the page loaded within the iframe?
A: You can close the popup using the following function:
document.getElementById('win').hide();
Unfortunately it won't work if you use iframe as window content.
You open another page in the popup (in Iframe) so you cannot access
document.getElementById('win').hide();
element which is situated on the first page.
When you use text or object_id as window content the content of the popup will be situated
on the same page so you can access document.getElementById('win') element and hide it.
There is a workaround.
Use text as content type and add the following code inside popup:
<a onclick="document.getElementById('win').hide();">...</a><iframe></iframe>
Your link will work in that case.
Q: How do I get the sub-menus to open in the 2nd frame of a 3 vertical frameset.
The menu is in the first frame. I want the sub-menus to open in the 2nd frame. I don't see how to set that parameter.
A: You should check your dm_initFrame() function.
dm_initFrame(framesetID, mainFrameInd, subFrameInd, orientation);
framesetID - id attribute of the frameset;
mainFrameInd - index of the main frame (where the top-menu is placed), >=0;
subFrameInd - index of the subframe (where the submenus will be shown), >=0;
orientation - frame orientaion: 0 - horizontal, 1 - vertical.
You should write it, for example
dm_initFrame("frmSet", 0, 1, 0);