David,

It is still behaving oddly / making a good 3-5 second delay for each
effect..

Thanks for your help, here's my current script.

//////////////////////////////////////////////////////////////////////////////////////

var proj_array = new Array
("ep1","ep2","ep3","ep4","ep5","ep6","ep7","ep8","ep9");


Effect.OpenUp = function(element) {
     element = $(element);
     new Effect.BlindDown(element, { queue: { position: 'end', scope:
'toggleQueue' } });
 }

 Effect.CloseDown = function(element) {
     element = $(element);
     new Effect.BlindUp(element, { queue: { position: 'end', scope:
'toggleQueue' } });

 }

 Effect.Toggle = function(element, caller) {
     element = $(element);
         caller = $(caller);

         //This loop just runs through an array of id's for all the elements
in the \
        //toggle script and closes down all elements that aren't the one that
was just clicked
        //there may be a better way to do this.
         for (i=0;i<proj_array.length;i++){
           var my_proj = document.getElementById(proj_array[i]);
           var the_proj = proj_array[i];
          if(my_proj != element){
                        var my_caller = 
document.getElementById((the_proj+"_header"));
                        my_caller.style.backgroundImage = 
"url('/images/arrowRight.gif')";
                   new Effect.CloseDown(my_proj);
                   //new Effect.Fade(my_proj, arguments[1] || {});
           }
         }

     if(element.style.display == 'none') {
                 caller.style.backgroundImage = "url('/images/arrowDown.gif')";
          new Effect.OpenUp(element);
     }else {
                  caller.style.backgroundImage = 
"url('/images/arrowRight.gif')";
          new Effect.CloseDown(element);
     }

                          document.getElementById("ajax_area").scrollTop = 0;

 }

///////////////////////////////////////////////////////////////////////////////////////////////////////////////
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to