Results 1 to 2 of 2

Thread: In accordion menu, i want the current page highlighted!

  1. #1
    Join Date
    Dec 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default In accordion menu, i want the current page highlighted!

    1) Script Title:
    Bullet List Accordion Menu

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...enu-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.
    Last edited by rosemetal17; 01-16-2009 at 08:43 PM.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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, 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.
    DD Admin

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •