Log in

View Full Version : In accordion menu, i want the current page highlighted!



rosemetal17
01-16-2009, 08:36 PM
1) Script Title:
Bullet List Accordion Menu

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-bullet.htm

3) Describe problem:
I'm currently developing a website for my schools creative writing group..

http://thingamajig.freehostia.com/

I copied and altered the above script, but it doesn't serve all my purposes as I wan't the current page higlighted when i move to that page(if you know what i mean).

I also want the "Home" link clickable, and also highlighted when we are on the "home" page.

The menu also flickers in IE, while working smoothly in FF...Can anyone tell me reasons for this?

I'll post any nessesary details, if wanted.

ddadmin
01-17-2009, 01:34 AM
There's quite a few threads in general already about getting a sub menu to open automatically based on the page the user is currently at. There is no "one" way to do this- it really depends on finding some way on your own of matching the current page with the sub menu that is supposed to be open, then either setting the "defaultexpanded" parameter of your menu, or calling one of the Accordion Menu expand/contract methods (http://www.dynamicdrive.com/dynamicindex17/ddaccordion_suppliment.htm), to expand that sub menu. I see you've enabled persistence on the menu state- that in itself should cause the sub menu that was open on the last page to be carried over to the target page containing the same menu as well. But as far as getting a particular sub menu link to be highlighted, there's no "instant" way to do this.

As far as the menu flickering in IE, try adding a valid doctype to the top of your page.