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