A copy of a working example together with where to get the data , perhaps on your own web pages, would help.
function dtreet_ext_setPressedItem (menuInd, itemID)
var i = <?php echo $selitem; ?>;
You should define selitem using server side script.
Q: I'm trying to position my menus inside absolutely positioned <DIV> tags. If the <DIV> tag has style="position:absolute; top:100px; left:50px;" in the actual tag, deluxe-menu seems to work correctly. If I have the "position:absolute; top:100px; left:50px;" in a <STYLE> tag or a linked stylesheet and applied using id or class selectors, then deluxe-menu does not work correctly: sub menus have a 100pixel offset in the y direction and a 50 pixel offset in the x direction. This is with no change to the .js data file (I have absolutePos=0;) Is this a known issue, and is it planned to be fixed?
A: See, the problem is that the script can't get css properties of the object if they are described in separate .css block (or file).
In other words, you can't get the value of "position" attribute of the object if the object doesn't have this property within inline style(style="position:absolute"). To get the value you should move .css style into style="" attribute.
Please, try to add your
css file -> inline css, for example:
For example, you should add style="position:absolute;"
So, you'll have:
<DIV id=head style="position:absolute;">
Now we have only such solution for this problem.
We'll try to fix this problem in the future versions.
I have a question:
Is it possible to have two icons in front of each dhtml menu item?
I need two icons in front of each menu-item that will symbolize an alarm and a sabotage-alarm.
I want to use animated gifs on these so that I can visualize alarm and sabotage on each menu-item.
But I also need an icon on the right side of the menu to show if the menu-item is expanded or not.
I want the structure to be like this:
Icon | icon а| Main menuitem1а | expandedicon
Icon | icon | sub menuitem1 | expandedicon
Icon | icon | sub menuitem1.1 | expandedicon
Icon | icon | sub menuitem1.2 | expandedicon
Icon | icon | sub menuitem2 | expandedicon
Icon | icon а| Main menuitem2а | expandedicon
Is this possible to achieve with your menu?
A: Yes, it is possible.
Actually you can use any html code within menu items.
["|<img src='default.files/icon1_so.gif' style='margin-right: 10px'>Home","testlink.htm", "default.files/icon1_s.gif","default.files/icon1_so.gif", "", "Home Page Tip", "", "", "", ],
Q: How can I get an image to be a separator in between items on my css vertical drop down menu?
A: To add a separator you should
var separatorImage=""; //for subitems (top items in vertical menu)
var separatorVImage="separator.gif"; //for the top items (subitems items in vertical menu)
You can create separators using menuItems (you can do it in DeluxeTuner, use "Add separator" button), for example:
var menuItems = [
["-"], // this item is separator