I'd like the pressed item in the dhtml expand menu to maintain its color after the refresh command?
Return to Recent Questions
Q:
I activated option "state saving" but I think there's a problem;
when I open the website and click on an item of the menu, the pressed item becomes red (up to now it's ok), but if I have to
press F5 on the keyboard or press on the refresh button to refresh the web
page, the pressed item loses its color red. I'd like the pressed item in the dhtml expand menu to
maintain its color after the refresh command. How can I solve this problem?
A:
Tree Menu doesn't save a pressed
item as it saves a tree state. It works within 1 page only and if you
reload the page you should set a pressed item using Javascript API:
function apyt_ext_setPressedItem(menuInd, itemID)
<script type="text/javascript">
var i = 4 //index of the selected item
onload=setPressed;
function setPressed()
{
dtreet_ext_setPressedItem(0,dtreet_ext_getItemIDByIndex(0, i));
}
</script>
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 26, 2006 - Why is the submenu has a different colour than menu items in the javascript menu bar?
- Sep 26, 2006 - Is there a way to change the height of the main buttons in my simple dhtml menu.
- Oct 01, 2006 - All of the items in html pull down menu are different sizes.
- Oct 03, 2006 - Do I have the ability to change colors for the menus and the sub menus in the cascade menu.
- Oct 07, 2006 - How do you change the back ground color of the javascript horizontal menus?
- Oct 20, 2006 - I want that tree menus expanded or collapsed and go to the link...
- Oct 21, 2006 - It appears that this javascript expand menu only supports IE (on the PC and Mac).
|