I don’t why I can’t find a script to do this. Maybe I’m just dense (certainly likely - I’m not really a web designer, although generally I can muddle through.)
I’m hand-coding my page, cuz that’s what I’m used to, but I can’t find a script that I can get to do what I want. Sigh, the jump up from HTML 4 is a big one.
What I want is, I thought, fairly simple. It’s a vertical menu that basically looks like a definition list. I want to be able to click on the titles and for the list entries to appear. I know I’ve seen it done. I don’t want any images or submenus. I’m using this for the archive for my webcomic site. I have two comics and I’d like to be able to display the comic names separately.
The one tricky thing, is that I want the list entries to be color-coded. I already have classes set up in my stylesheet for that.
That should help. I just don’t have the knowledge base I need and I have the sneaking suspicion my teacher knows Dreamweaver and not, y’know, programming. She did appreciate that I was making the effort to do things the right way and not the way I know (honestly, what was wrong with tables? yeah, yeah, people with disabilities, fine…)
This may not serve your purposes, but I was recently browsing around CSS sites and discovered the existence of drop-down menuing systems that use absolutely no scripting to do their job – everything is CSS. It’s kind of impressive. There’s an example here: Stu Nicholls | CSS PLAY | A css only dropdown menu
ZipperJJ, your markup should make up its mind as to whether it is HTML or XHTML. It has elements of both but adheres to the standards of neither, and that’s a no-no.
I’ve used this template for a site, and it has drop-down menus implemented in CSS (and the site works in IE6 and latest versions of all other browsers.)
I would imagine that the solution is similar to what ntucker has provided.