Jquery

JQuery Tutorials

JQuery Resources

                                                   JQuery




ExploreJQuery.Com

 





JQuery Lightbox
 





 JQuery Accordion





JQuery Autocomplete
 

 Affiliate Marketing Recommended Products

The Affiliate Code   Profit Miracle   Maverick Money Makers
               

The Affiliate Code is an amazing training product by Michael Jones. He will teach you how he made $65,000 in one month. Michael Jones is also the creator of the extremely popular ClickBank Code.

 

Profit Miracle is a great product that will provide you with a shortcut on creating and marketing your content. This product will save you time and money with your affiliate marketing ventures

 

Maverick Money Makers was developed by millionaires and has proven to generate at least $354.97 per day from home when you are just starting out. This course is good for beginners and intermediate affiliates

Read more>>>   Read more>>>   Read more>>>
   
   
   
  Bookmark and Share
  
Jquery Multi Level Accordion
      
Mar
04
Jamal Ahmad

jam05pgs

3 Comments  |   4363 Hits
Tags:   jquery accordion, multi-level accordion
 

Jquery Multi Level Accordion script is powerful and lightweight at only 1.2kb. It now includes multi-level support, the option to allow multiple panels to expand concurrently, and a hide/show all toggle. I have reverted the markup to a div based structure to eliminate any validation issues with the definition tables in the previous version. Check back for more posts and scripts soon.

Accordion

To initialize an accordion use the following code:

1 var accordion=new TINY.accordion.slider('accordion'); 

2 accordion.init('accordion','h3',0,0,'selected');

 

You must create a new accordion object before initialization. The parameter taken by accordion.slider is the variable name used for the object. The object.init function takes 5 parameters: the id of the accordion "ul", the header element tag, whether the panels should be expandable independently (optional), the index of the initially expanded section (optional) and the class for the active header (optional).

This script has been tested in all major browsers and is available free of charge for both personal or commercial projects under the creative commons license. Community support is available. Paid support is also available, contact me for details.

Update 6/16/2009

The script has been updated with a couple bug fixes, performance tweaks, and feature requests. I also shaved off 0.2KB.

You can now expand a particular section by its index, for example parentAccordion.pr(0,1), with the second parameter being the index of the section. If you don't want any section to be expanded by default then use -1 for the initially expanded index in the initialization function, example accordion.init("accordion","h3″,0,-1,"selected"). The script is also no longer tied to a strict doctype. If you are using this along with Flash, be sure to set the wmode property on the SWF object.

Live Demo

Download Source Code

[ Stumble Upon ] [ Facebook ] [ del.icio.us ] [ furl ] [Sphinn] [ Digg ] [ Twitter ] [ Technorati ] [ Reddit ] [ Subscribe To RSS Feeds ]

3

 
 
 
pedja

Thursday, March 11, 2010 @ 01:23 PM

 

your rss feed doesn't work

 
Hussain

Tuesday, May 11, 2010 @ 10:32 PM

 

Thank you Jamal for this great script, it is just wonderful.

 
carlin

Thursday, September 2, 2010 @ 01:21 AM

 

Hi Jamal,wonderful script. But I seem to be missing something?If I would add a nested section of 3 (nested one, two three) in for example the second level "Instructions" of your demo these nested one, two three expand all at once and do not collapses anymore.

 
   
 
Leave your comments
 
  Your comments  

     
name  

     
  email  

     
website    

     
5 + 3 =    

     
   
     

 

 

Follow me on twitter

Follow me on facebook

 

 
   

   

affiliate_link

   

affiliate_link

   

Buy Now - PayPal

   
 
   
  JQuery Community
 
 
tissa
darrenrowse
amour
niculae
sassyqarla
summerzeet
electrostar
good-pens
kh
travelhotelworld
tunyalitk
masterartrep
dain22
bloggersun
jameslove4enao
thebeespace
majalahpatani
caryngf
wonkapromotions
jam05pgs
 
  View more bloggers   Join Community
   
   
  JQuery Popular Posts
 
 
JQuery Beautiful Image Slide Show in New Way
Good Pens, Saturday 18th April 2009

Ajax Animated Live Search
Tunya Litk, Monday 4th May 2009

Ajax instant edit
Jamal Ahmad, Friday 15th May 2009

JQuery Autocomplete with Ajax PHP and MySQL
Jamal Ahmad, Sunday 14th June 2009

Ajax fancy Captcha with JQuery and PHP
Majalah Patani, Friday 8th May 2009
   
   
  JQuery Poll
 
 

Would you like to have a website which will provide you all facilities listen music, friendship, photo sharing and blog?

 

Yes

No
I dont know
 

 
   
  JQuery Categories
 
 
JQuery
JQuery AJAX
JQuery Banners
JQuery Browsing
JQuery CSS
JQuery Forms
   
   
   

 

 

 

 

© Copyright Explore JQuery, all rights reserved
A company registered in north America, Europe, Asia and Middle East as Explore Group.