Javascript Tree Menu Example by
Javascript Tree Menu Example

Buy Now!  Free Trial Download

Menu Screenshots Javascript Tree Menu Example

Javascript Tree Menu Example Top Menu Tree Source

Features Javascript Tree Menu Example

Seamless Integration
  • Visible over flash, select boxes, iframes, java applets
  • Multiple menus on the same page
  • Amicable to other scripts and css styles
  • Any HTML code can be used inside menu items
Cost Effective
Menu No Tree Javascript Tree Menu Example
Professional Look-n-feel
  • Entirely customizable look-n-feel
  • A lot of pre-designed javascript tree menu example samples
  • Hundreds of visual effects
  • Custom CSS styles can be applied for all menu settings
Unrivalled Features
  • Scrollable, dragable, floating
  • Unique Java Script API for altering menu "on-the-fly", without page reloading
  • AJAX technology - loads menu data from the server "on-fly and on-demand".
  • Full cross-browser compatibility including IE, Netscape, Mozilla, Opera, Firefox, Konqueror and Safari on Windows, Mac OS and Linux
  • Menu can be populated from a database using ASP, PHP, etc.
  • Search engine friendly
  • Support for any doctypes
  • Fits for secure sites
Buy Now!  Free Trial Download

Javascript Tree Menu. Expandable Menu.

  • There can be as many submenus as you want.
  • Use a mouse to drag a menu as a usual window.
  • When the page is scrolled the menu remains visible. The Javascript/DHTML Tree can "float" along one or two coordinate axes. After clicking on menu item selected item becomes highlighted.

Recent Questions Javascript Tree Menu Example

Q: I made a html CD presentation based on cascading drop down menu but it works good only onIE and Google Chrome web browsers.

It doesn't work good on Mozilla Firefox browser. It shows menu properly but there is a problem with normal navigation.

The problem is with paths. I put the main js file in "menu" folder and I also have few folders with many html files in them.

For path I use the following "file:/(direct path to specific html file)". It works fine with IE and Google, but Mozilla/Firefox doesn't show the menu.

I tried also to use prefix "file:/" but it also doesn't show the cascading drop down menu on Mozilla/Firefox.

Is there any way to solve this problem?

Thank you for your answer.

A: It is not correct to add "file:/" in the link field.
You should write:


You can try also to write links in the following way:
But I don't think that this will help you.

This is a feature of Firefox browser, Opera and Safari. These browsers cannot determine the root folder ofthe website (D:\ in the examples below) on a local machine (as IE and Google Chrome).

IE: D:\html\other\page.html (works)
Opera: file://localhost/html/other/page.html (link doesn't work)
Google Chrome: file:///D:/html/other/page.html (works)
Safari: file:///html/other/page.html (link doesn't work)
Firefox: file:///html/other/page.html (link doesn't work)

You use relative paths (and your folders have several embedded folders), so your links won'twork correctly in Firefox, Opera and Safari. The reason is not in the menu. Standard linkswon't work too.

So I think that the unique solution in your case is to move ALL link files (1.html,2.html, a.html ...) into the same folder with your index.html file.

Q: But given the sample on
we want to delete menuentry 'Sample1' and do
dm_ext_deleteItem(2, 4, 0)

This raises an error but according to your javascript menu master manual the first argument should be the menuindex ....which is 2 in our opinion.

A: See, if you have several menus on your page they will have differentID's, for example:

<script type="text/javascript" src="menu/data1.js"></script> //ID=0

<script type="text/javascript" src="menu/data2.js"></script> //ID=1

<script type="text/javascript" src="menu/data3.js"></script> //ID=2

<script type="text/javascript" src="menu/data4.js"></script> //ID=3

So, if you have only one menu on your test page you should use ID=0

Q: We had a strange problem with the menus when the sub menus are over applet in https: the applet disappeared.

After doing some Investigation in your code we noticed that you are using in HTTPS mode div instead of Iframe.

We would be happy if you can tell us why you are using div in this mode and if we will use http mode will it cause something that can affect the menus

A: Iframes don't work on https:// websites. You'll get warning message. That's why we're using <div> tag.If for some reasons a submenu can't drop down over an object the latterwill be hidden for a time when the submenu is shown.

If you use JavaScript Tree Menu on https:// website, submenus won't drop downover select boxes within iframe objects. It works fine on a non-secureservers only.

Q: How can I add a separator to the expanding navigation bar using the dynamic functions?
It seems as though the only way to get a separator into the menu is by defining itbefore hand,
but the website I'm building will require me to reload themenus dinamically,
and I'm losing the ability to put separators on it.

A: You should add items using the following function:

function dm_ext_addItem (menuInd, submenuInd, iParams)
function dm_ext_addItemPos (menuInd, submenuInd, iParams, Pos)

Find more info:

Set the following parameter:
  var dm_writeAll=1;

So, you should write:
dm_ext_addItem(0, 4,  ["|-", "", "", "", "", "", "", ])