HTML Accordion

Soldato
Joined
6 Jan 2006
Posts
3,423
Location
Newcastle upon Tyne
Can anyone point me in the right direction of an example script for an accordian similar to the one here on Yoo Theme?

Im particularly after one similar to Whitespace Styling on the link above.

Thanks, Mark
 
Well Im sticking with the first one Gord posted as its working!!

Having a look at the other things on that site, I notice there is a form validation tools too. Does that incorporate the submitting of the form too or just the validating? If not any pointers on submitting forms would be great as thats next on my list :p
 
Has anyone implemented this into WordPress? Ive got it working fine on a standard php page but when I try and put it into WP it doesnt work and comes up with an error. Ive copied the same script from the working file into the WP header but no joy.

Not sure if there is too much Jquery in there or something perhaps but any help appreciated!

Working page here

WP page with error here

Thanks
 
Last edited:
Just had a look on the WP codex site and thats going to take some understanding!!

The tools library is loaded in the header section if Ive done it correctly?

Code:
<script src="http://mmassociates.co.uk/common/java/jquery.tools.min.js"></script>
 
Any pointers on where to put the code in the finctions file would be great! Everytime I try to add the following it breaks the whole thing!

Code:
<?php
function my_init_method() {
wp_deregister_script( 'jquery' );    
wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js');
}     
add_action('init', 'my_init_method');
?>
 
When you say multiple jquery libraries are you referring to the jquery.min.js and the jquery.cycle.all.js in the header?

If so how do I go about combining them?

Thanks
 
Back
Top Bottom