Doing a slideup/down effect isn't really hard to program. You could
set your own events and flags inside the functions themselves to do
what you want to accomplish. I needed a slide-right, slide-left, so I
wrote a little function myself. You may want this as a starting point
to build your own. It's not very elegant but it works.
function showAdvanced(p) {
Element.show('advancedPanel')
$('advancedPanel').style.left=p+"px"
if(p>199) {
return;
}
else {
p = p + 20
x=setTimeout("showAdvanced("+p+")",10)
}
}
On Jul 5, 12:46 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi all. I'm trying to use the SlideDown/SlideUp effects to build nifty
> dropdown menus. I've run into a few stumbling blocks and wanted to run
> things by the experts. So two questions:
>
> - Is there a way to figure out the progress so far in an event? I'd
> like it so when you mouseout of menu that's in the process of sliding
> down from a mouseover, that is stop halfway and start sliding up
> immediately. This requires that I get the current percentage progress
> from the SlideDown, stop that event, and start a new SlideUp that
> starts with that value for progress. I didn't see any property in the
> effect for this.
>
> - Is there an event that fires at the end of an effect that lets me
> set a callback? Seems like that would be pretty handy.
>
> The website's article on EffectQueues was pretty handy for all
> this:http://wiki.script.aculo.us/scriptaculous/show/EffectQueues
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---