Recent Questions
Q: I downloaded the trial version, so I’m doing some testing....
I can’t highlight the selected dhtml pop up menu item of the current page. The var ttoggleMode is enabled and
tpressedFontColor = "#AA0000
This is caused by the trial version?
A: 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, bu
t no items highlighted by default;
0,1,2,3,... - index of highlighted item in a top-menu.
The menu has only two states normal and mouseover. We'll try to add the pressed state in the future.
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: How to work with menus and submenus in JSP?
This e-mail message is only to be used by intended recipients and all others may kindly delete it and notify the sender. Unless expressly authorized by HPCL, the views expressed and the message itself is that of the individual sender and recipients are cautioned to check messages/ attachments for any viruses before use. Users acknowledge that messages may contain confidential, proprietary or privileged information and that HPCL neither assures nor guarantees integrity or content of messages.
A: Deluxe Menu is the Javascript product. It means that it works on aclient side only and it doesn't depend on the server which you'reusing and it doesn't work on a server side as JSP script.
So, you can create the menu using standard html page and them movemenu code within .jsp page.
Q: I was wondering if there is a way to disable links on a page for the script menu.I am creating a site where, in a certain mode, the page is in preview and Idon't want the links to work.
A: To disable your menu items you should set the following parameter to disable all items:
var itemTarget="_";
Or you can disable items individually.
["Home","testlink.html", "", "", "", "_", "", "", "", "", "", ], //disabled
["Product Info","", "", "", "", "", "", "", "", "", "", ],
["|Features","testlink.html", "", "", "", "_", "", "", "", "", "", ], //disabled
["|Installation","", "", "", "", "", "", "", "", "", "", ],
You can also use function dm_ext_changeItem (menuInd, submenuInd, itemInd, iParams)
function to disable items on-the-fly, for example:
dm_ext_changeItem (0, 2, 3, ["", "", "", "", "", "_", "", "", ""]);
Q: I'm having a major problem centering html menu navigation in a table.
No matter what I try, the menu stays on the left ofthe table.
Do you have any suggestions?
A: To center the menu on your html page you should set the following
parameter and install the menu in the following way:
var absolutePos=0;
<div align=center>
<script type="text/javascript" src="deluxe-menu/dmenu.js"></script>
</div>
<table width=800>
<tr>
<td align=center width=600><script type="text/javascript" src="data/data.js"></script></td>
</tr>
</table>