0

我在 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)
});

感谢大家!

4

1 回答 1

0

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

于 2013-08-21T07:46:33.620 回答