Recent Questions Dotnetnuke Treeviewmenu Event Onload
Q: Can the main menu items be set so they are all the same width without specifying pixel widths?
A: You should create Individual Style and assign this style for allitems.
var itemStyles = [
["itemWidth=150"], //style 0
];
var menuItems = [
["DHTML Menus","", "images/icon1.gif", "images/icon1o.gif", , ,"0", , , , , ], // assign style 0
["Apycom products","", "images/icon1.gif", "images/icon1o.gif", , , "0", , , , , ], // assign style 0
["Contacts","http://www.apycom.com/contact.html", "images/icon1.gif", "images/icon1o.gif", , , "0", , , , , ], // assign style 0
];
Q: I have problems to show scandic letters in rollover navigation bar in ie6/7 browsers.
Every other browsers show menu correctly, but these can't show scandic letters.
A: Actually you can use any letters in the menu.
Please, check that you've set "Tools/Use utf8 encode".
When you save your data file in UTF8 you should use the same encoding on our html page.
So you should write:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
If you don't want to use UTF-8 encode on your page you should turn off
"Tools/Use utf8 encode" property, save your data file and manually
change your letters in any text editor.
Q: But given the sample on
http://deluxe-menu.com/highlighted-items-sample.html#ind
we want to delete menuentry 'Sample1' and do
dm_ext_deleteItem(2, 4, 0)
This raises an error but according to your javascript menu master manual the first argument should be the menuindex ....which is 2 in our opinion.
A: See, if you have several menus on your page they will have differentID's, for example:
<script type="text/javascript" src="menu/data1.js"></script> //ID=0
<script type="text/javascript" src="menu/data2.js"></script> //ID=1
<script type="text/javascript" src="menu/data3.js"></script> //ID=2
<script type="text/javascript" src="menu/data4.js"></script> //ID=3
So, if you have only one menu on your test page you should use ID=0Q: I want javascript navigation menu to lock into place when someone visits a page. Is there a way to do this?
A: Try to set the pressed item using the following API function:
function dm_ext_setPressedItem (menuInd, submenuInd, itemInd, recursion, parentOpen)
Sets a current pressed item.
menuInd - index of a dynamic menu on a page, >= 0.
submenuInd - index of a submenu, >= 0.
itemInd - index of an item, >=0.
recursion = true/false - highlight parent items.
parentOpen = true/false - open all submenus to show the selected item
See example here:
http://deluxe-menu.com/highlighted-items-sample.html
Try to click 'Highlight "Product Info/Installation/Description ofFiles" item'.
You can also try to use the following parameter:
var smHidePause = 1000;
A delay (in ms) between mouse is moved from submenu and its closing.
You can make submenus to stay visible till you click outside the menu or scroll your page.
To enable this feature you should set this parameter in the following way: var smHidePause = -1;