Is there a way to programmatical select an item in the scrolling menu without the user actual click on the item?
Return to Recent Questions
Q:
Is there a way to programmatical select an item in the scrolling menu without the user actual click on the item?
A:
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.
Return to Recent Questions
Related:
- Sep 02, 2006 - Little vertical spacers between menu items in the drop down menu.
- Sep 04, 2006 - Set a menu item to pressed when a page is loaded.
- Sep 06, 2006 - The first item of the html drop down menu stays highlighted.
- Sep 16, 2006 - I need to be able to highlight the selected menu item of the html tree menu.
- Sep 22, 2006 - Where do I add my "blahblah.htm" page links in js menu?
- Sep 26, 2006 - Why is the submenu has a different colour than menu items in the javascript menu bar?
- Oct 01, 2006 - All of the items in html pull down menu are different sizes.
- Oct 26, 2006 - I would like to load an iframe into one of the items in oncontextmenu.
- Oct 28, 2006 - Subitems of the mouseover menu don't close when the mouse goes away...
- Oct 29, 2006 - When I purchse your javascript select menu, does this include any future updates?
- Nov 03, 2006 - I want to use a Flash icon with sound next to the menu items in javascript list menu...
|