Displaying 1 result from an estimated 1 matches for "toggletext".
2006 May 22
13
Canceling a specific effect
Is there a way to cancel a specific effect? For instance; Effects are
added to the queue. Before actually processing the effect, I''d like to
check a condition & cancel the effect if necessary.
Here''s the code excerpt:
var menu = {
toggleText: function(element,toggle) {
var vis = $(element+''Text'').visible();
if (toggle && !vis) { // toggle text ON
new Effect.BlindDown(element+''Text'', {queue: {scope:
''headers'', position:''front''}})...