Javascript/Prototype Effect Parallel在IE10中不起作用

Javascript/Prototype Effect Parallel not working in IE10

本文关键字:IE10 不起作用 Parallel Prototype Effect Javascript      更新时间:2023-09-26

我在IE10中的JS出现问题(IE7-9工作正常)

我有一个带有渐变/出现过渡效果的滑块。当滑动到下一张图片时,当前图片淡出,而下一张则淡出。问题是,IE10不起作用,它只隐藏当前图片并显示下一张(但单击"下一张"按钮和显示下一幅图片之间的延迟等于其他浏览器上效果的持续时间,所以它确实起到了作用。)

没有控制台或js错误。。

这是我的代码:

var effects = new Array();
effects.push(new Effect.Fade(this.previous, {
    sync: true
}));
effects.push(new Effect.Appear(this.current, {
    sync: true
}));
this.scrolling = new Effect.Parallel(effects, {
    duration: this.options.duration,
    afterFinish: (function() {
        if (this.controls) {
            this.activateControls();
        }
        if (this.options.afterMove && (typeof this.options.afterMove == 'function')) {
            this.options.afterMove();
        }
    }).bind(this)
});

谢谢大家!

我不认为这种效果支持如您在文档中看到的10http://madrobby.github.io/scriptaculous/effect-parallel/这里的演示也没有显示出效果,即10。