Hi austenc,

I think this a normal behaviour.

you loop through all elements and force a Effect.Close whioch will
launch an Effect.BlindUp and all this effects are queued.
As all element should already be Effect.BlindUp, you still launch an
effect to blindUp elements. So for element that are already blind up
you'll see no change, but the effect duration is still effective and
it result in a delay before launching next effect in the queue.

If still have trouble, send me the HTML code corresponding to js code,
I could do better test and give you the code that could work;

--
david.


On 28 mai, 10:18, david <david.brill...@gmail.com> wrote:
> Hi austenc,
>
> I wil try to look at lunch time if possible, otherwise, I will look
> this evening (french time).
>
> --
> david
>
> On 28 mai, 01:00, austenc <austen.came...@gmail.com> wrote:
>
> > 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