Recent Questions Create Tree Menu In Vb Studio
Q: Can you please write me, as I have the active menu button in the drop down menu software different color display?
A: The menu 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 am currently tasked with creating a large intra-type net for our company. ( knowledge base, FAQ etc. for internal use only ).
At this time I am making plain text or table based menus and getting tired of having to add the drop menus to EVERY page individually in our little intra-web. I would like to purchase software that makes groovy looking menus, but also get the information needed to have them appear on ALL pages after editing the menu once if you know what I mean.
Unfortunately my web authoring experience is best suited to circa-1996 web pages I can hash out in notepad in my sleep. However, I have been told in order to do what I am doing I need to use CSS or styles or cascading stylesheets and not sure if your software will do that.
If I purchase this software and whip up a neat little menu, would you be able to send me information on how to include it in a css as I described above? I would essentially need to know the code or commands to have it appear in all of the pages I create, once I make the menu file. If that is something you can assist me with, I can purchase this right away.
A: JavaScript Tree Menu is Javascript code only. It requires several .js files andit's generated on a client side.
If you don't want to create your drop menus on each page, you can try to useframes, the menu has a cross-frame mode. Also you can use aserver-side script (php, asp, vb, etc.) to generate html pages fromtemplates on your server.
Q: The submenus are going up instead of down in the sub navigation bar.
A: You should set the following parameter:
var subMenuVAlign="top";
Q: I need to include background images for my navigation, so I put them in the same folder where the "data.js" file can be found. I am using the deluxe tuner in order to call these files and it looks great in the preview. As soon as I save the file and load it in the browser, the background images are missing.
Your solution refers to creating absolute paths using
var pathPrefix_img = "http://domain.com/images/";
I have implemented this solution but I still think the problem persists.
A: Now you set pathPrefix parameter:
var pathPrefix_img = "http://www.domain/folder/menudir/dataAlumni.files/";
And you have such images paths, for example:
var arrowImageSub=["dataAlumni.files/submenuIconOff.gif","dataAlumni.files/submenuIconOn.gif"];
So you have such paths for arrows:
http://www.domain/folder/menudir/dataAlumni.files/dataAlumni.files/submenuIconOff.gif
It is not right.
You should write your paths so:
var arrowImageSub=["submenuIconOff.gif","submenuIconOn.gif"];
Please, correct it.