^ J e r e m i e
Tech
DHTML Tree Menus

This library allows the page author the ability to insert windows-like tree menus(similiar to the start menu)anywhere on their web page, simply and cleanly. These menus will display based when the users mouse passes over a designated element, and expand or colapse automatically based on the users navigation though the menu.

Samples:

Things to notice, the menus dissappear after a timed wait period when the mouse leaves a menu. Almost every aspect of each menu is configurable, and you can insert as many menus on a page as you want.

 

Documentation

You wouldn't BELIEVE how easy it is for you to put this on your page!  Follow along with the steps, choose from the various options, and add an easy to use menu to your web page!

Step 1:    Get the file library

Download version .90 Oct 1 1997

Step 2:    Insert it into your page

Place the following HTML in the <HEAD></HEAD> of your page, and make sure the src="" points to the URL for the library you just downloaded.

<SCRIPT SRC="menus.js"></SCRIPT>

Step 3:    Create a menu in your page

Menus are created by setting a property of the element that activates the menu. The configuration for the structure of the menu is placed in a hidden <DIV> tag.  A good menu with 3 elements and 2 subelements to cut and paste would be:

<A HREF="link.html" MENU="top:10;left:100;src:menusrc;">Start</A>
<DIV ID="menusrc" STYLE="display:none;">
Yahoo!http://www.yahoo.com!Just a simple link to yahoo.;
Microsoft!http://www.microsoft.com!Go ahead and visit Microsoft's Home Page;
[

    Inte et Explorer!http://www.microsoft.com/ie!Microsoft Inte et Explorer Information;
    IIS!http://www.microsoft.com/iis!Ver 4 is VERY powerful;
]
W3C!http://www.w3.org!The 'source' :);
</DIV>

Thats it! Put in as many as you want on your web page and as many web pages as you want!

Please feel free to modify the code, it is fully commented to help you lea how it works, and especially, PLEASE feel free to email me jer@jeremie.com with your comments/questions/suggestions/bugs/code enhancements, whatever!



[© Copyright 1998 Jeremie, All Rights Reserved]
[Modified Monday October 19th 1998, 10:04:49 PM CST By jer@jeremie.com]