Recent Questions Sothink Tree Menu Onclick Innerhtml
Q: We are using the javascript drop down menu code to create an external link. The absolute path is recognised but it does not work. At the bottom of the page the browser displays an "error on page" message and nothing happens.
A: Now you have
<script type="text/javascript"> var dmWorkPath = "wdmenu.files/";</script>
<script type="text/javascript" src="wdmenu.files/dmenu.js"></script>
<script type="text/javascript"> var dmWorkPath="wdtabs.files/";</script>
<script type="text/javascript" src="wdtabs.files/wdtabs.js"></script>
The second call for dmWorkPath is incorrect. Delete it. So you'llhave:
<script type="text/javascript"> var dmWorkPath = "wdmenu.files/";</script>
<script type="text/javascript" src="wdmenu.files/dmenu.js"></script>
<script type="text/javascript" src="wdtabs.files/wdtabs.js"></script>
Your menu will work correctly.
Q: I downloaded the free trial version and so far it looks like we can do everything. I have a couple questions:
the designer wants it so that when any of the submenu choice are selected, the main main menu in java item should be highlighted when the submenu page is displayed (kind of a breadcrumb). So, is there any way to change the background image of one of the main menu items after the menu loads? I haven't tried running my main menu in java in a webpage yet so I'm not sure if you generate a separate CSS file or put all of the settings into a STYLE= attribute of each tag.
A: The main menu in java 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, forexample:
<noscript><a href="http://deluxe-menu.com">Javascript Menu by Deluxe-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.
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: I have another question concerning pop-up windows. If I do the following:
1) Use the Deluxe Tuner to create a pop-up window.
2) Change the location of the gif, css, and js files from all of them being within "deluxe-popup-window.files" to the files being in separate directories and
3) Update the "deluxe-popup-window.js" file and the "jaw_skin_windowsvista_graphite.css" file so that they contain the new directory locations
Will the html window function properly? Thanks for the help.
A: If you change all paths in jaw_skin_windowsvista_graphite.css and deluxe-popup-window.jsfiles correctly your popup window should work fine.
Q: I would like to create navigation menu where the background is transparent until you move the mouse over itwhen it turns to a color. I erased the first color number from the list and that worked, but when I scrolled the mouse over the links, the background stayed light blue even though the mouse was no longer over them. Is there a way to let the background start transparent, turn light blue when the mouse is over it, then go back to transparent after the mouse is off it?
A: You can use transparent parameter, for example:
var itemBackColor=["transparent","#4792E6"];