开发者

Scriptaculous two toggles at once

开发者 https://www.devze.com 2022-12-14 12:16 出处:网络
Ho开发者_如何学Cw can I toggle an element to blind and fade at once? I tried the code Event.observe(window,\'load\',function() {

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

精彩评论

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