How to get the javascript menu dynamique to highlight and stay on the page you're viewing?
Return to Recent Questions
Q:
How do you get the javascript menu dynamique to highlight and stay on the
page you are viewing rather than highlighting home item the whole time.
A:
The javascript menu dynamique has only two states normal and mouseover.
Try to do the following things:
- delete var pressedItem=1; parameter from your data file
- set correct parameter on each page before you call data file, for
example:
<noscript><a href="http://dhtml-menu.com">javascript menu dynamique by DHTML-Menu.com</a></noscript>
<script type="text/javascript">var dmWorkPath = "menudir/";</script>
<script type="text/javascript" src="menudir/dmenu.js"></script>
<script type="text/javascript">var pressedItem=3;</script>
...
<script type="text/javascript" src="menudir/data.js"></script>
You can also 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.
Return to Recent Questions
Related:
- Apr 04, 2009 - I now have the need to introduce separators on the javascript menu dynamique.
- Apr 22, 2009 - Does this javascript menu dynamique support sound onMouseover or OnClick?
- May 09, 2009 - I am unable to see any separators when working with javascript menu dynamique...
- May 26, 2009 - How I can edit/specify the color schemes on the Glass style tabs in javascript menu dynamique maker?
- Jun 03, 2009 - Is it possible for the popup menu right to highlight selected item on the page?
- Jun 13, 2009 - How I can change the background of the top level javascript menu dynamique?
- Jun 30, 2009 - I can't find the option in your javascript menu dynamique to move submenus closer to each other...
- Jul 17, 2009 - Can I install and run this javascript menu dynamique on a server running OS X?
- Jul 24, 2009 - Is there a way to keep global css collapse item highlighted?
- Aug 03, 2009 - How does the search engine stuff work for the javascript menu dynamique?
- Aug 21, 2009 - Is there a way in the onmouseover javascript menu dynamique maker to change preview screen color?
|