Results 1 to 6 of 6

Thread: accordian script is working kind of flacky

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

    Default accordian script is working kind of flacky

    1) Script Title: Accordian Content script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ordionmenu.htm

    3) Describe problem: I have implemented the accordian content script on a sample site and it seems to be working some of the time correctly. I can't seem to get it to work consistently so that when you click on a top page home, products, news, or contact us...it goes to that specific page as well as shows the sub slide menu. Sometimes nothing will happen and sometimes it will open the sub slide menu from the above top page...like if I click on contact us it goes to the contact us page but opens the news sub slide menu???

    http://template-08.sedonatek.com/Home.aspx

    Please any help is greatly appreciated....I am trying to get this working for a client.

    Thanks so much.

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

    Default

    It seems depending on the page, one of the headers in your Accordion Content carries the class "main1CMSListMenuLinkHighlighted". This excludes that header from being part of the group, and needs to be changed back to "main1CMSListMenuLink".
    DD Admin

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

    Default

    Thanks for you quick reply!

    Is there a way that I could put 2 css classes here...
    'headerclass: "main1CMSListMenuLink, main1CMSListMenuLinkHighlighted",' ???

    The site is developed using a content management system known as Kentico CMS...I am working on figuring out how to eliminate the word 'Highlighted' on a selected menu item as that is a default function of the CMS.

    Thanks again.

  4. #4
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Just separate them with space:

    HTML Code:
    <a class="main1CMSListMenuLink main1CMSListMenuLinkHighlighted" href="#">

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

    Default

    Thanks. I know how to put 2 classes in the <a> tag. I would like to know if I can put 2 classes as my headerclass for the accordian menu script?

    The way this cms system works only allows so much flexibility. If i could just go ahead and put 2 classes in the <a> tag then I would do that...but unfortunately it is not that easy for me.

    Thanks.

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

    Default

    Quote Originally Posted by nsmith View Post
    Thanks for you quick reply!

    Is there a way that I could put 2 css classes here...
    'headerclass: "main1CMSListMenuLink, main1CMSListMenuLinkHighlighted",' ???

    Thanks again.
    There's no easy way to do this unfortunately. You may try defining a second instance of Accordion Content script that uses "main1CMSListMenuLinkHighlighted" has the "headerclass", and try to configure it so it acts in accordance to the 1st instance on the page somehow.
    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
  •