Recent Questions Javascript Tree Onmouseover
Q: I am using the dhtml-tabs code. I have 2 tabs that I use for a basic form and an advanced form. The advanced form is on the second tab. When I submit, I get results. When I click the back button, the selected tab is the first one, and not the second. Is there a way to configure the tabs to be persistent or sticky. Such that clicking on the back button will result on being on the second tab, which was the last dynamic drop menu tab before going to a new page?
A: You can try to use the following dynamic drop menu function:
dtabs_itemClick(0,1)
To open your second tab.
Q: Is there a way to hide a menu options in the navigation menu using either CSS or the java api based on the site user?
A: JavaScript Tree Menu supports Javascript API.
You can find more info here:
http://deluxe-menu.com/dynamic-functions-sample.html
You can try to use API functions in that case:
function dm_ext_changeItemVisibility (menuInd, submenuInd, itemInd, visibility)
To disable items you should set the target parameter to "_".
You can try to use the following function
function disable() {
dm_ext_changeItem(0, 1, 1, ["", "", "", "", "", "_"]);
}
to disable your items.
Q: I installed the trail version before I want to buy it. It looks wonderfull, but I was unable to make menu items inside a PHP file.
Do you have an example(tutorial) how to at deluxe menu inside a php file ?
A: Unfortunately, we don't have such example.
You can create your menu using PHP, for example:
<?php echo " ["|Bibliografia - ksiazki","home_bibliografia_dol.php","","","",,,],"; ?>
<?php echo " ["|Bibliografia - artykuly","home_bibliografia_dol1.php","","","",,,],"; ?>
<?php echo " ["|Bibliografia - linki","home_bibliografia_dol2.php","","","",,,],"; ?>
Please, see the following link too
http://deluxe-menu.com/generate-menu-from-database-xml-php-asp-vb-support.html
Q: I downloaded the trial version, so I’m doing some testing....
I can’t highlight the selected dhtml pop up menu item of the current page. The var ttoggleMode is enabled and
tpressedFontColor = "#AA0000
This is caused by the trial version?
A: Please, check the following parameter
var pressedItem=-2;
This parameter sets an index of an item that will be highlighted by default.
-2 - the toggle mode is disabled;-1 - the toggle mode is enabled, bu
t no items highlighted by default;
0,1,2,3,... - index of highlighted item in a top-menu.
The menu has only two states normal and mouseover. We'll try to add the pressed state in the future.
You can set a pressed item using Javascript API:
function dm_ext_setPressedItem (menuInd, submenuInd, itemInd, recursion)
Sets a current pressed item.
menuInd - index of a menu on a page, >= 0.
submenuInd - index of a submenu, >= 0.
itemInd - index of an item, >=0.
recursion = true/false - highlight parent items.
But notice, to use dm_ext_setPressedItem() you should know ID of selected item and subitem.
You can't get this ID after you reload your page. That is why you should write your own code on PHP.
You can also set the correct
var pressedItem=1;
parameter on each html page.