Recent Questions Dtree Menu For Blog
Q: When I stay on one page (for example "Home") аlso must have the menu-point "home" another color or font. How can I make this?
A: You should set pressed item.
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.
JavaScript Tree Menu v2.4 has only two states normal and mouseover. Now we'repreparing new version of JavaScript Tree Menu. It saves it state after thereloading of the page. We're planing to release a new version during a month.
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.
Q: We have been using a free javascript for a couple of years but now we would like to have a functionality that our existing js is missing.
Basically, we need the ordinary tree view javascript with "+" and "-" that highlights the node clicked. No problem with that I suppose... BUT, we have a bunch of pages with internal links, linking the visitor to other pages within the site (i.e. they don't have to use the leftside tree navigation). What I want is that the navigation js recognizes that a page loads without any node has been clicked, and automagically expands the nav tree and highlights the node for that page.
No AJAX, no XML, no php or asp, just plain HTML + JS is a requirement from our customers.
Is that possible with any of your products...?
A: Yes it is possible with Javascript/DHTML Tree.
Find more info here:
http://deluxe-tree.com/highlight-selected-menu-item-sample.htmlQ: How do I get started with JavaScript Tree Menu? Do you have a link with instructions?
I designed my own website with DreamWeaver 8.0 ( www.lesvants.com ) but don't have a clue as to how to start designing with your product.
A: Unfortunately we don't have step by step tutorial now. We'll try tocreate it in the nearest time.
JavaScript Tree Menus weren't developed as Dreamweaver/Frontpage extension,BUT you can use it as standard Javascript files. To install the menuinto your html page:
1. open the page in your program
2. open html source code of the page
3. add several rows of code (<script> tags), For info see:
http://deluxe-tree.com/installation-info.html
That's all.
It is possible that Dreamweaver changes some paths, so you havean error in the preview.
On your site or in your browser there'll be no errors.
Create your menu in Deluxe Tuner application
.You can create any menu as you like in Deluxe Tuner.
Please, try to download trial package once again. We added alltemplates in Deluxe Tuner Templates window.
Unfortunately, Deluxe Tuner doesn't copy all need images forVista Template into your folder. You should do it manually.After you create your menu in Deluxe Tuner you should copy all images youneed for the menu into your folder and correct images paths.You should set the following parameter
var pathPrefix_img="";
2. You should install the menu on your page.
You can click, for example, File/Export to HTML (you can't do it inthe MAC version).
Add several rows into your html page.
<head>
...
<!-- JavaScript Tree Menu -->
<noscript><a href="http://deluxe-menu.com">Javascript Menu by Deluxe-Menu.com</a></noscript>
<script type="text/javascript"> var dmWorkPath="deluxe-menu.files/";</script>
<script type="text/javascript" src="deluxe-menu.files/dmenu.js"></script>
<script type="text/javascript" src="data-deluxe-menu.js"></script> //data-deluxe-menu.js - data file created in Deluxe Tuner.
...
</head>
<body>
...
<table>
<tr><td><script type="text/javascript" src="deluxe-menu.files/data.js"></script></td></tr>
</table>
...
</body>
You should also copy all engine files
dmenu.js
dmenu4.js
dmenu_add.js
dmenu_dyn.js
dmenu_key.js
dmenu_cf.js
dmenu_popup.js
dmenu_ajax.js
into "deluxe-menu.files/" folder. You should place this folder in thesame folder with your index. html page.
Try that.
Q: In addition, as you know commercial websites also have to comply with EU regulations regarding disabilities, and I further believe that the current menu cannot be read by screen readers for blind/partially sighted/disabled users. Could you please confirm if this is the case, or if the java pull down menu can in fact be read by screen readers?
A: Deluxe java pull down menu is 508 compliant, but we don't have the certificate at this moment.