Cascading Popup Menus v3.0

by Angus Turnbull - http://gusnz.cjb.net. Updated: 26 June 2001.



Sets up a system of multilevel popup menus on a page. Be sure to check my site regularly for compatibility and updates, this is heavily under development. Features include:

Usage Instructions:

Most of the instructions are already in the source -- open this up with your favourite text editor and start customising. Before deploying this on your site, be sure to remove the comments! You can double or treble loading speed that way -- there's a handy utility in the Zip file to assist with this as well.

See my site for conditions of use, Frequently Asked Questions if you're stuck, compatibility information and new versions. If you are going to use this script, I would be grateful if you linked to my site somewhere, and left the comment in at the top of the source. My site is where I'll keep the most recent commented version. Also, try to employ a better sense of colour than I've used in this demonstration :)

Basically, to use this script cut and paste the script element and stylesheet into your page. You may wish to make the script element at least an external .JS file, which should speed loading times as people navigate; possibly do the same with the stylesheet.

Good luck! -- Gus


Version History:


Known Issues / Future Plans:

At the moment, NS6 and IE5 have a major disagreement as to whether borders are rendered inside or outside items. I've implemented a fix that adjusts spacing for NS6, but be aware that with CSS borders you can't have pixel-perfect positioning. Of course, you should definitely test in as many browsers as possible when deploying this menu - at least NS4 and IE.

Text style changes may induce a little flicker in Netscape 4 as the layer contents have to be rewritten -- other browsers are OK for this as they allow manipulation of classes through the DOM. Also, the cursor changes from a hand to a pointer over the menus in NS4. This isn't a bug as such, you can still click anywhere to activate them. You just can't specify stylesheet cursors in NS4.

Future plans: Well, check back to my site and see! None as yet, this release is pretty thorough. Maybe I'll add the last Much Requested Feature: better frames support, with triggers and menus in different frames. But this would add quite a bit of overhead to the script... perhaps a whole new script would be the order of the day.