Recent Questions Javascript Tree Paging
Q: I can't find anywhere in your documentation that states where
I can call function onclick other than in the menu target for dhtml menu script.
A: You can use onclick event in the following way:
var menuitems = [
["<div onClick='getLink(\'/Admin/Sales/Customers/Customers.asp\')'>Table of Contents</div>", ""]
];
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: Hello, Could you please help me with an alignnment issue with my website. If you go to mt website you will see the problem. I set the x alignment to=266 but the y alignment is left blank because I would like to keep the menu centered on the site.
A: If you want to center the menu paste itwithin the <div> or <table> with a static position and specify a center alignment for it, for example:
<DIV align=center>
<SCRIPT src="data/data.js" type=text/javascript>
</SCRIPT>
</DIV>
Please, set exact value for var menuWidth parameter, for example:
var menuWidth = "300px";
This can help to align your menu correctly in all browsers.
Try also to specify units in "px".
Set also:
var absolutePos = 0;
Try that.
Q: Is it possible to make the menuitems rightclickable in the latest version of Deluxemenu. I want to rightclick on the drop down menu in javascript item and choose open in new window.
A: No, there is no such a feature in JavaScript Tree Menu v3.2.7.
You can write your item in the following way:
["|<a href='http://www.domain.com'>test test test</a>",""],
But you should assign style for this link.
A.link {
...
}
A.link:hover {
...
}