- Nov 14, 2005
- 1,431
- 0
- 76
I have been trying to make a very specific menu for a site for a while now and in my original pursuit it was recommended I use jQuery and with my already limited knowledge of Javascript I tried to put something together but I am getting more and more lost.
Basically I am trying to make a menu that can expand each separate section on mouse click as is currently setup here but additionally if the link matches the url it will highlight that link with the class "selected" and expand the section that contains it.
Here is what I have so far, which is bits and pieces of information I could gather and attempt to combine (obviously the auto highlight link wont work in this environment):
http://jsfiddle.net/qtYX3/7/
(remember to fork the jsFiddle before you make changes so that you get a new link instead of everyone editing the same one)
Thanks,
Akhen
Basically I am trying to make a menu that can expand each separate section on mouse click as is currently setup here but additionally if the link matches the url it will highlight that link with the class "selected" and expand the section that contains it.
Here is what I have so far, which is bits and pieces of information I could gather and attempt to combine (obviously the auto highlight link wont work in this environment):
http://jsfiddle.net/qtYX3/7/
(remember to fork the jsFiddle before you make changes so that you get a new link instead of everyone editing the same one)
Thanks,
Akhen