Web Development with jQuery®

(Elliott) #1

Appendix M (^) ❘ 577
queue([queue],
function())
Manipulates the queue of functions to be executed,
once for each matched element.
The function argument refers to the new function
to add to the queue, with a function to call that will
dequeue the next item.
jQuery
show() Displays each selected element if the element is
hidden.
jQuery
show(
[duration]
[, function()]
)
Shows each selected element using an animation.
The duration is either a time in milliseconds or a
time preset: "slow", "normal", or "fast".
An optional callback function can be executed when
showing has completed. this refers to the element
being shown within the callback function.
jQuery
show(options) The show animation is carried out with the specifi ed
object of options. See the “Animation Options”
section later in this appendix.
jQuery
show(
[duration]
[, easing]
[, function()]
)
Shows each selected element using a preset
animation. The duration is either a time in mil-
liseconds or a time preset: "slow", "normal", or
"fast".
The easing can be either default easings "linear"
or "swing", or any easing documented below,
assuming you have installed the requisite additional
easings as part of jQuery UI.
The optional callback function is executed when
the animation has completed. this refers to the
element.
jQuery
slideDown(
[duration]
[, function()]
)
Slides down (shows) each selected element using an
animation. The duration is either a time in
milliseconds or a time preset: "slow", "normal", or
"fast".
An optional callback function can be executed when
sliding has completed. this refers to the element
being slid within the callback function.
jQuery
slideDown(options) The slideDown animation is carried out with the
specifi ed object of options. See the “Animation
Options” section later in this appendix.
jQuery
continues
http://www.it-ebooks.info

Free download pdf