this line var children = document.getElementsByTagName("DL"); change the DL to UL so it looks for an unordered list as the parent element
and I forgot to post the CSS because it uses a classname change to flip between open and closed.
Code:
#navigation dl.closed dd {
display:none;
visibility:hidden;
}
#navigation dl.open dd {
display:block;
visibility:visible;
}
recode the CSS to be a li inside a ul.classname
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
Last edited by chrishirst; 09-07-2008 at 08:23 PM..
|