Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/361.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript/原型效果并行在IE10中不起作用_Javascript_Internet Explorer_Slider_Prototypejs_Internet Explorer 10 - Fatal编程技术网

Javascript/原型效果并行在IE10中不起作用

Javascript/原型效果并行在IE10中不起作用,javascript,internet-explorer,slider,prototypejs,internet-explorer-10,Javascript,Internet Explorer,Slider,Prototypejs,Internet Explorer 10,我在IE10中的JS有问题(IE7-9工作“很好”) 我有一个带有淡入/出现过渡效果的滑块。当滑动到下一张图片时,当前图片淡出,而下一张图片淡入。问题是,IE10不会产生效果,它只会隐藏当前效果并显示下一个效果(但单击“下一步”按钮和显示下一张图片之间的延迟等于在其他浏览器上效果的持续时间,所以它会做一些事情。) 没有控制台或js错误 这是我的代码: var effects = new Array(); effects.push(new Effect.Fade(this.previous, {

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

谢谢大家

我认为这种效果不支持i.e.10,正如您在文档中看到的那样 这里的演示在IE 10中也没有显示效果