Recent Questions Javascript Tree Menu Example
Q: We are using a licensed copy of Deluxe-Menu but in Internet Explorer 7.0 it displays an incorrect copyright message even though all parameters are included and the key is correct. Help! We cannot leave our web site up in this condition!
A: JavaScript Tree Menu v2.0 works fine in IE7.
If you're using older version you should upgrade you JavaScript Tree Menu to v2.0, please, visit thefollowing page. You can find all info about the upgrade here:
http://deluxe-menu.com/rq-css-vertical-menu-v2.0-support.html.
Q: Tell us javascript code to select or highlight the tab and sub tab in javascript tabs navigation.
A: Deluxe Tabs doesn't support API functions which can return theselected tab.
You can set "bselectedItem" and " var bselectedSmItem" parametersbased on your link before you call your data file.
For example, move " var bselectedItem" and " var bselectedSmItem" parametersfrom your data file to your code.
<TD vAlign=top align=left>
/* Select Tab */
<script type="text/javascript" language="JavaScript1.2">
var bselectedItem=<?php echo $seltabs; ?>;
var bselectedSmItem=<?php echo $selsmtabs; ?>;
</script>
<SCRIPT src="data.js" type=text/javascript></SCRIPT>
</TD>
You should define seltabs and selsmtabs using server side script.
You can also set it on every page before you call data.js file, forexample:
<TD vAlign=top align=left>
/* Select Tab */
<script type="text/javascript" language="JavaScript1.2">
var bselectedItem=4;
var bselectedSmItem=3;
</script>
<SCRIPT src="data.js" type=text/javascript></SCRIPT>
</TD>
Q: I am having a difficult time trying to integrate your menu into a frame system of my clients. The url that I am testing at is...
I believe that I have followed your instructions to the letter, but can't seem to get the cross-frame system to work. Any help would be appreciated.
A: Please, check dmWorkPath parameter. You should write in the followingway:
<SCRIPT type=text/javascript> var dmWorkPath = "nav_011907_files/";</SCRIPT>
See also how you should write your dm_init function
dm_initFrame("frmSet", 1, 2, 1);
Please, notice also that JavaScript Tree Menu can work within 1 frameset only.
It can't work correctly within nested framesets. It is possible that you'll havesome errors.
Q: I have made a horizontal menu that have different colors for different pages. What I'm not figuring out is out to make the current page be the reversed color state? This page should actually have the "images" highlighted. I'm using the Deluxe Tuner plus deluxe-menu+deluxe-tree+deluxe-tabs-trial.exe.
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, but 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.