开发者

Scriptaculous two toggles at once

Ho开发者_如何学Cw can I toggle an element to blind and fade at once? I tried the code

   Event.observe(window,'load',function() {
    Event.observe($("delete"),'click',function() {
     Effect.toggle("entry","appear",{ duration: 2.0 });
     Effect.toggle("entry","blind",{ duration: 2.5 });
    });
   });

One will run, but not both.


Check out Effect.Parallel, although your example uses different durations, which I don't think it can do.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜