Recent Questions Html Treeview JsQ: Hi, I was wondering if there is a way to leave a main java swing menu bar item highlighted when in that section. For example if I clicked on "Contact Us" and when I am on the contact us page, the "Contact us" navigation would still be highlighted. I appreciate any help you might have, thanks!
A: The java swing menu bar has only two states normal and mouseover. We'll try to add the pressed state in the future.
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 java swing menu bar 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.
Q: Is there a way to keep global nav image highlighted (rollover image) if click on subnav link?
A: You should write your own code on PHP.
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.
Q: Why is it that when we place a drop menu ina div that the droppping part is not right uner the menu? The menu on top banner is the problem.. Thesame code outside of a div futher down the page works fine.
I can place the same menu outside of the div and it works fine.When it is in a div the drop part of the menu is pushed to the far right of the screen.
A: Brian, see, the problem is that the script can't get css properties of the object if they are described in separate .css block (or file).
In other words, you can't get the value of "POSITION: absolute" attribute of the object if the object doesn't have this property within inline style (style="POSITION:absolute;"). To get the value you should move .css style into style="" attribute.
Please, try to add your
css file -> inline css, for example:
You should add style="POSITION: absolute;"
So, you'll have:
<DIV id="menu" style="POSITION: absolute;">
Q: Could you please just help me - I have been using quirks mode to create our customer sites and would now like to start using a proper doctype like:
But when I change it, all the down menus dhtml break on the sites.
A: Try to specify all units in "px":
var itemStyles = [
["fontStyle=normal 11px Lucida SansUnicode","fontColor=#FFFFFF,#FFFFFF","itemBackColor=#DE2829,#C62829","itemBorderWidth=0",
var menuStyles = [