Cascading Popup Menus v2.2

by Angus Turnbull - http://gusnz.cjb.net. Updated: 10 May 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:

You'll definitely want to trim out most of the comments, to speed load time. Also, if you are going to use this script, I would be grateful if you linked to my site somewhere, even if it a comment in the source. That's 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!


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.

I'm considering ditching CSS borders entirely and colouring the background of the menu instead. The downside of this will be 'crazy' borders won't work, and items won't be able to have clear spacing between them. However, you will then have complete control over border presence/thicknesses for each item, and the background table will no longer be necessary. You could even have no borders between items except for 'separators'. Sounds like a plan? Or not?

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.

So next, I plan on improving the lightup code to remember what's already lit a little better than it does now - it should reduce the occasionaly flicker in NS4, and speed things up. It should also pave the way for adding 'changing text colours' on mouseover, which is a popular request.