Addition to my previuos post.
This code seems not to be compatible with jquery version 1 alpha. Though it
is compatible with the latest version. I want it to be compatible with
version 1.0a as thickbox uses that version and i want to combine the
accordion and the thickbox in one page.



pm4 = {
  init: function(){
    active = '#pm4-a';
    running = 0;
    $('#pm4-example/div/div').not(active).hide();
    $('#pm4-example/div/a').click(function(e){
      e.preventDefault();
      var p = $('div', this.parentNode);
      if (running || !p.is(":hidden")) return false;
      running = 2;
      $(active).slideUp('fast', function(){--running;});
      active = '#' + p.slideDown('slow', function(){--running;}).get(0).id;
      return false;
    });
  }
}
pm4.init();
-- 
View this message in context: 
http://www.nabble.com/Accordion-problem-tf2240199.html#a6212583
Sent from the JQuery forum at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to