Recent Questions Build Javascript Tree In Dreamweaver
Q: I need to be able to highlight the selected menu item of the sliding drop down menu.
A: JavaScript Tree Menu has only two states normal and mouseover.
Try to do the following things:
- delete var pressedItem=1; parameter from your data file
- set correct parameter on each page before you call data file, forexample:
<noscript><a href="http://deluxe-menu.com">Javascript Menu by Deluxe-Menu.com</a></noscript>
<script type="text/javascript"> var dmWorkPath = "menudir/";</script>
<script type="text/javascript" src="menudir/dmenu.js"></script>
<script type="text/javascript"> var pressedItem=3;</script>
...
<script type="text/javascript" src="menudir/data.js"></script>
You can also 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.
Q: I have already tried this exact same method, using and alternate "itemBackColor" and this is not what I needed. As you can see in your example putting in an item back color only give you a different bg color on the item itself, but the BG of the menu around it remains the same. In your example the lighter bg color of my menu is surrounding the item bg color making this look more like a mistake and poor design.
It do use the item bg color for the rollover in my menu, as you can see, but implementing this does not give me what I need. I need the BG color behind this item to be completely flush with the sides of the menu.
I had already checked the menu system thoroughly before contacting you and I was well aware of the option.. but as you can see this is not the solution. It is very important to me that this looks perfect, and what I need is not built into this menu by default.. I need another solution.
A: You should set the following parameter:
var itemSpacing=0;
You can also try to paste separators between items.
Q: Can I replace your button graphic with my button graphic?
Is there any problem in integrating your software into Microsoft Expression Web?
A: > Can I replace your button graphic with my button graphic?
Yes, of course. You can use your own images in the menu.
Please, try the trial version.
Use Deluxe Tuner application to create your menu.
> Is there any problem in integrating your software into Microsoft Expression Web?
JavaScript Tree Menus weren't developed as Microsoft Expression Web/Dreamweaver/Frontpage and others webdesign programs 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
Q: I just discovered your product and I think it is fabulous! I would like to buy it, but have one issue which is strange:
I have a list of 12 items, each with a submenu that is loaded using the ajax technology. The submenues are loaded correctly for the first 8 items, but not for the last 4 items. I can switch items around, always the first 8 only get loaded. Is there a limitation to 8 items?
A: No, there is no such limitation.
Please, check the following parameter:
var dmAJAXCount=0;
That variable set the maximal number of submenus that will be loadedfrom server on your page.