There are the features that, unfortunately, cannot be done in javascript drop menu...
Return to Recent Questions
Q:
I like your product a lot. But unfortunately I cannot use some features in tree [kw].
I hope that you'll help me to fix these problems. I will place
the order right away if these are resolved:
1. Allow using a variable size icon for each item.
2. Allow attaching a customized javascript to fire up "onclick" and "onmouseover" for each individual item.
A:
1. DHTML Tree Menu uses constant icon size for all icons. If you want
to use different icons, you can try to use standard <img>
elements within [kw] items:
var tmenuitems = [
["<img src='icon.gif' width=10 height=10>item text", "index.html"]
];
2. You're able to use your own javascript code for each item, for example:
var tmenuitems = [
["item text", "javascript:your_code_here"]
];
Unfortunately, you can't assign onmouseover event to each item.
But you can achieve this by using standard html objects within
item's text, for example:
var tmenuitems = [
["<div onmouseover='your_code_here'>item text</div>", "index.html"]
];
Return to Recent Questions
|