[thelist] JavaScript + CSS to Toggle Menu List

ibn Ezra ibnezra at mac.com
Fri Aug 11 14:50:04 CDT 2006


Help!
I'm trying to get JavaScript + CSS to toggle (expand / contract) a  
menu that I am serving up as an include via PHP. Unfortunately my  
programming background is just about nil and so I have resorted to  
rooting around the net for examples to work from. Here's what I have  
spliced together so far:

http://www.covenantwoods.com/beta/index.php

External JavaScript File:
http://www.covenantwoods.com/beta/_scripts/navigation.js

External CSS Stylesheet:
http://www.covenantwoods.com/beta/_stylesheets/navigation.css

Server Side Include (Served up via PHP):
http://www.covenantwoods.com/beta/_includes/navigation.html

I can't figure out why it is that the menus behave erratically.  
Clicking some links results in the appropriate list opening up...  
others open up both the appropriate list as well as other lists. I'd  
prefer that clicking on one of the anchors open the appropriate list  
(and even better close the others in the menu -- beyond the scope of  
what I have so far) and use the cookies to preserve the current state  
so that the menu doesn't close back up again when loading a new page.

What am I doing wrong?

Many thanks in advance for help!
-iE


.................................................

ibn Ezra
mailto: ibnezra at mac.com

.................................................







More information about the thelist mailing list