PDA

View Full Version : Add more headers and content to Accordion Menu



SAS
05-05-2011, 03:38 AM
1) Script Title: Apple style Accordion Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-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

ddadmin
05-06-2011, 05:11 PM
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.

SAS
05-07-2011, 02:48 AM
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.

ddadmin
05-07-2011, 07:06 AM
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.

SAS
05-10-2011, 12:38 AM
Thank-you so much, works a treat now. :)