Go Back   Dynamic Drive Forums > DD Scripts > Dynamic Drive scripts help
Search Dynamic Drive Forums:

Reply
 
Thread Tools Search this Thread
  #1  
Old 08-07-2008, 09:01 PM
mmc215 mmc215 is offline
New Comer (less than 5 posts)
 
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Accordion Content script - Set Default Expand Inline?

1) Script Title: Accordion Content script

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

3) Describe problem: Hey guys, I have a simple question for anyone that is familiar with how this awesome script works..

I am using this menu as a sub-menu for pages within a technical document. I'd like to set the defualt expanded List Item for each page individually based on an inline calls since the template I am using doesn't allow me to edit the universal "defaultexpanded" configuration script in the html header.

Anyone know how I can get this done?

Last edited by mmc215; 08-07-2008 at 10:48 PM. Reason: clarified description.
Reply With Quote
  #2  
Old 08-08-2008, 05:38 AM
ddadmin's Avatar
ddadmin ddadmin is offline
Administrator
 
Join Date: Aug 2004
Posts: 7,627
Thanks: 2
Thanked 639 Times in 629 Posts
Blog Entries: 13
Default

You can try calling ddaccordion.expandone() to specifically expand a header. In your case, since you want to do this automatically when the page loads, you should wrap it inside jQuery's DOM onload function:

Code:
<script type="text/javascript">

jQuery(document).ready(function($){
	ddaccordion.expandone('expandable', 2) //expand 3rd header of Header Class "expandable"
})

</script>
__________________
DD Admin
Reply With Quote
  #3  
Old 08-12-2008, 10:08 PM
mmc215 mmc215 is offline
New Comer (less than 5 posts)
 
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks! this works!
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:40 PM.

Home - Contact Us - Archives - Link to DD - Top 

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.