Results 1 to 5 of 5

Thread: Add more headers and content to Accordion Menu

  1. #1
    Join Date
    May 2011
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Add more headers and content to Accordion Menu

    1) Script Title: Apple style Accordion Menu

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

    3) Describe problem: Hi,

    this may sound simple but I am new to scripting and trying to add more headers and content to my menu (adding 11 instead of 5) , I tied copying the code:
    [CODE]
    <div class="silverheader"><a href="http://www.cssdrive.com">CSS Drive</a></div>
    <div class="submenu">
    Some random content here<br />
    <img src="http://i27.tinypic.com/sy7295.gif" />
    </div>
    [CODE]
    and adding it onto the next line but it does not work, any suggestions?

    Thanks in advance
    Kev
    Last edited by SAS; 05-05-2011 at 03:39 AM. Reason: missed a few words

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

    Default

    That should do it actually. Please post a link to the page on your site that contains the problematic script so we can check it out.
    DD Admin

  3. #3
    Join Date
    May 2011
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for looking into this for me, here is the (under development) page: http://sascomputing.yolasite.com/services.php


    I added a couple onto the end, the 1st time I tried it nothing came up but this time they are there but not working as expected.

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

    Default

    SAS, your last two headers and their contents are defined outside the main <div class="applemenu"> DIV, which is why they've lost their style. Simply move them back into the main "applemenu" DIV.
    DD Admin

  5. #5
    Join Date
    May 2011
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank-you so much, works a treat now.

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
  •