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

Javascript/Prototype Effect Parallel not working in IE10(Javascript/原型效果并行在 IE10 中不起作用)

本文介绍了Javascript/原型效果并行在 IE10 中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 IE10 中的 JS 遇到问题(IE7-9 运行良好)

I am having trouble with my JS in IE10 (IE7-9 works "fine")

我有一个带有淡入淡出/出现过渡效果的滑块.滑动到下一张图片时,当前一张淡出,而下一张淡入.问题是,IE10没有做效果,它只是隐藏当前一张并显示下一张(但之间的延迟单击下一步按钮,下一张图片的显示等于效果在其他浏览器上的持续时间,所以它确实做了一些事情..)

I have a slider with a fade/appear transition effect. When sliding to the next picture, the current one is faded out, while the next one is faded in. Problem is, that IE10 doesn't do the effect, it only hides the current one and shows the next one (but the delay between clicking the Next button and the showing of the next picture equals the duration of the effect on other browsers, so it does do something..)

没有控制台或js错误..

There are no console or js errors..

这是我的代码:

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

谢谢大家!

推荐答案

我不认为这个效果支持 ie 10,你可以在文档中看到 http://madrobby.github.io/scriptaculous/effect-parallel/此处的演示也没有在即 10 中显示效果.

i don't think this effect supports i.e 10 as you can see in documentation http://madrobby.github.io/scriptaculous/effect-parallel/ demo here is also not showing effect in i.e 10.

这篇关于Javascript/原型效果并行在 IE10 中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:Javascript/原型效果并行在 IE10 中不起作用

基础教程推荐