Original PDF Flash format the-basic-syntax-default-options  


The Basic Syntax Default Options

a eld guide to scriptaculous
Combination Effects
the basic syntax
effects require just a DOM ID
you can use options for customizing
Effect.EffectName('dom_id')
options are optional!
with options
Effect.EffectName('dom_id', {option:value, option:value})
highlight syntax
optional, if you don't want yellow fade to white
new Effect.Highlight('dom_id', {startcolor:'hex', endcolor:'hex'})
this bit's critical
delay: seconds, in decimals
default options
delay before starting effect
Default options are available for all fx.
Some fx have custom options (not
from: 0.0 to 1.0
to: 0.0 to 1.0
stages of the effect, 0 being no effect;
shown except for Highlight)
a Fade set to to:.5 would fade half-way
duration: seconds, in decimals
transition: transition method
how long the effect will last
controls ease in & out, can be used for special fx
in & out effects
queue: 'parallel' || 'front' || 'end'
whether the effects run simultaneously or in order
Appear / Fade
BlindUp / BlindDown
SlideUp / SlideDown

toggling
Grow / Shrink
toggle() will show an item that's hidden, or
out effects
hide an item that's shown—using the in or out
effect, respectively, from one of the in & out
DropOut
Fold

effects families shown to the left.
Puff
Squish

the basic idea:
SwitchOff
Effect.toggle('dom_id', 'fx_family')
attention effects
toggle accepts these fx families:
Highlight
appear
Without an fx family name,
Pulsate
blind
Shake
toggle() defaults to appear.
slide
more on scriptaculous: http://script.aculo.us/
cheatsheet amy hoy (www.slash7
©
.com)